<div dir="ltr">Hi Shankar,<div class="gmail_extra"><br><div class="gmail_quote"><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><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></div></div></div></div></blockquote><div>You can use the .set_zlim() function to set the colorbar range in any PlotWindow object (e.g. ProjectionPlot, ParticlePlot, etc).  In this instance, try: p.set_zlim('particle_mass', 1e6, 1e7).</div><div><br></div><div> </div><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>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></div></div></div></div></blockquote><div> </div><div>I think you'll have to modify the MPL labels of the p.cax y-axis label. </div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><br></div>3. Can contours of mass be added to the above plot, using annotate?<br></div></div></div></blockquote><div><br></div><div>Unfortunately, the annotate_contour() callback I don't think is working with ParticlePlots yet.  </div><div><br></div><div>Cameron</div><div><br></div></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Cameron Hummels<div><span style="font-size:12.8000001907349px">NSF Postdoctoral Fellow</span></div><div><span style="font-size:12.8000001907349px">Department of Astronomy</span></div><div><span style="font-size:12.8000001907349px">California Institute of Technology</span><br></div><div><a href="http://chummels.org" style="font-size:12.8000001907349px" target="_blank">http://chummels.org</a><br></div></div></div></div>
</div></div>