<div dir="ltr">Hi Shankar,<div><br></div><div>1. You can set range of the colorbar by doing, for example:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>p.set_zlim('particle_mass', 1e6, 1e8)</div><div><br></div></blockquote>2. Calling it "Particle Mass" follows the yt convention for phase plots, but you're right that "mass per pixel" or something like that might make more sense. At any rate, you can change the label to whatever you want using, e.g.:<div><br></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>p.set_colorbar_label('particle_mass', 'Particle mass per pixel')</div></div><div><br></div></blockquote>3. Currently, contour callbacks are disabled for particle plots. I think they could be made to work, although the results might look like a mess if the plot pixels are sparsely populated. Is this an important feature for you? If so, you could add a ticket about it <a href="https://bitbucket.org/yt_analysis/yt/issues/new">here</a>, and we'll see about enabling this feature. </div><div><br></div><div>Thanks,</div><div>Andrew<br><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><br></div></blockquote></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 29, 2015 at 8:11 AM, Shankar Agarwal <span dir="ltr"><<a href="mailto:agarwalshankar@gmail.com" target="_blank">agarwalshankar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>I have a few plotting questions:<br><br></div>1. <a href="http://yt-project.org/docs/3.2/cookbook/simple_plots.html#simple-particle-plot" target="_blank">http://yt-project.org/docs/3.2/cookbook/simple_plots.html#simple-particle-plot</a><br><br>p.set_unit('particle_mass', 'Msun')<br><br>In the above plot, Colorbar range is approximately Mass=10^5-10^9. When making a plot using ParticlePlot or ParticleProjectionPlot, can I manually force the range on the colorbar?<br><br></div>2. The label on the colorbar says "Particle Mass". Instead, shouldn't it be saying something like mass_per_pixel, since the plot is showing the total number of particles projected along the z-axis? How can we rename the colorbar?<br><br></div>3. Can contours of mass be added to the above plot, using annotate?<br><br></div>Regards,<br></div>Shankar<br><div><div><br></div></div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>