Skip to content

Commit fcd4fff

Browse files
authored
fix some stuff (#3358)
1 parent 57eb603 commit fcd4fff

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

Exec/science/xrb_spherical/analysis/inset_slice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def single_slice(ds, field:str,
6767

6868

6969
# Plot each field parameter
70-
sp = yt.SlicePlot(ds, 'phi', field, width=box_widths, fontsize=28)
70+
sp = yt.SlicePlot(ds, 'phi', field, width=box_widths, fontsize=24)
7171
sp.set_center(center)
7272

7373
sp.set_cmap(field, "viridis")
@@ -186,7 +186,7 @@ def single_slice(ds, field:str,
186186
)
187187

188188
# Increase inset ax tick label size
189-
inset_ax.tick_params(labelsize=16)
189+
inset_ax.tick_params(labelsize=14)
190190

191191
# Add back annotation lines, i.e. latitude lines
192192
for line in fig_zoom.axes[0].lines:

Exec/science/xrb_spherical/analysis/planar_slice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def planar_slice(fnames:list[str], fields:list[str],
347347
if ymin is None:
348348
ymin = r[0].value
349349
if ymax is None:
350-
ymax = 0.5*(r[1].value - r[0].value)
350+
ymax = 0.5*(r[1].value + r[0].value)
351351
if xmin is None:
352352
xmin = theta[0].value
353353
if xmax is None:

Exec/science/xrb_spherical/analysis/slice.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,12 @@ def extract_info(ds,
9696
if show_full_star:
9797
# If we want to show the full domain in the background.
9898
# Change box_widths and center to full star
99-
center = [r[1]*np.sin(theta_center), r[1]*np.cos(theta_center)]
10099
if thetar < 0.5 * np.pi:
101100
box_widths = (r[2]*np.sin(thetar), r[2]*np.cos(thetal))
101+
center = [0.5*box_widths[0], 0.5*box_widths[1]]
102102
else:
103103
box_widths = ( r[2], r[2]*(np.abs(np.cos(thetar)) + np.cos(thetal)) )
104+
center = [r[1]*np.sin(theta_center), r[1]*np.cos(theta_center)]
104105

105106
elif theta is None:
106107
# Preset centers for the Top, Mid and Bot panels

0 commit comments

Comments
 (0)