<div dir="ltr">Dear All,<div>I am trying to plot a multi plot of temperatures at different red-shifts with following script.</div><div><br></div><div><div><font face="georgia, serif">from yt.mods import * # set up our namespace</font></div>
<div><font face="georgia, serif">import matplotlib.colorbar as cb</font></div><div><br></div><div><font face="georgia, serif">fig, axes, colorbars = get_multi_plot( 3, 1, colorbar='vertical', bw = 4)</font></div><div>
<font face="georgia, serif"><br></font></div><div><font face="georgia, serif">file1="/app/run/csarkar/surajit/simulation_shock/simulation5/RD00"</font></div><div><font face="georgia, serif">file2="/RedshiftOutput00"</font></div>
<div><font face="georgia, serif">list = [11,13,22]</font></div><div><font face="georgia, serif">m=0</font></div><div><font face="georgia, serif">#for kk in range(20,37):</font></div><div><font face="georgia, serif">for kk in list:</font></div>
<div><font face="georgia, serif"> fn_i=str(kk)</font></div><div><font face="georgia, serif"> fn=file1+fn_i+file2+fn_i # parameter file to load</font></div><div><font face="georgia, serif"> print fn</font></div><div>
<font face="georgia, serif"> pf = load(fn) # load data</font></div><div><font face="georgia, serif"> pc = PlotCollection(pf, center=[0.5,0.5,0.5]) # defaults to center at most dense point#dd = pf.h.all_data()</font></div>
<div><font face="georgia, serif"> p = pc.add_slice("Temperature", 1, figure = fig, axes = axes[0][m], use_colorbar=False)</font></div><div><font face="georgia, serif"> p.set_log_field(False)</font></div><div>
<font face="georgia, serif"> p.set_zlim(1e4,5e7)</font></div><div><font face="georgia, serif"> #p.set_cmap("jet")# a different colormap</font></div><div><font face="georgia, serif"> p.modify["contour"]("Density", ncont=9, plot_args = {'colors':'w'},clim=(5e-30,5e-25))</font></div>
<div><font face="georgia, serif"> #p.modify["contour"]("Temperature", ncont=10, plot_args = {'colors':'k'},clim=(3e7,1e8))</font></div><div><font face="georgia, serif"> pc.set_width(15, 'mpc') # change width of all plots in pc</font></div>
<div><font face="georgia, serif"> m=m+1</font></div><div><font face="georgia, serif"> #pc.save("%s_p.png" % pf) # save all plots</font></div><div><font face="georgia, serif"> for p, cax in zip(pc.plots, colorbars):</font></div>
<div><font face="georgia, serif"><span class="" style="white-space:pre"> </span> cbar = cb.Colorbar(cax, p.image, orientation='vertical')</font></div><div><font face="georgia, serif"><span class="" style="white-space:pre"> </span> p.colorbar = cbar</font></div>
<div><font face="georgia, serif"><span class="" style="white-space:pre"> </span> p._autoset_label()</font></div><div><font face="georgia, serif"><span class="" style="white-space:pre"> </span> fig.savefig("Temperature_at_rd00_11,13,22" % pf)</font></div>
<div><br></div><div>The problem is that I am getting the temperature in log scale, even-though I used <font face="georgia, serif"> p.set_log_field(False)</font></div><div>in my script. </div><div><br></div><div>Please suggest me how to get-rid of this problem.</div>
<div> </div><div><br></div>-- <br><div dir="ltr">Reju Sam John</div>
</div></div>