Skip to content

Commit

Permalink
updated Out-of-box outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Mesinger committed Oct 4, 2018
1 parent dd590c6 commit b546639
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Pics/sliceplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ def load_binary_data(filename, dtype=np.float32):
# check if it is a 21cm brightness temperature box
if basename(filename)[0:3]=='del':
if args.min > 1e4:
minrange = -150
minrange = -120
if args.max < -1e4:
maxrange = 30
maxrange = 20
cmap = LinearSegmentedColormap.from_list('mycmap', ['yellow','red','black','green','blue'])
norm = MidpointNormalize(midpoint=0)
frame1 = plt.gca()
Expand All @@ -153,7 +153,7 @@ def load_binary_data(filename, dtype=np.float32):
c_dens.set_clim(vmin=minrange,vmax=maxrange)
c_bar = fig.colorbar(c_dens, orientation='vertical')
c_bar.set_label(r'${\rm \delta T_b [\mathrm{mK}]}$', fontsize=24, rotation=-90, labelpad=32)
tick_array = np.linspace(minrange, maxrange, 7)
tick_array = np.linspace(minrange, maxrange, 8)

# check if it is a neutral fraction box
elif basename(filename)[0:3]=='xH_':
Expand Down

0 comments on commit b546639

Please sign in to comment.