[yt-users] Colorbar Limit Error With Particle Annotations

Joseph Tomlinson jmtomlinson95 at gmail.com
Thu Nov 2 12:18:56 PDT 2017


yt-users,

I am trying to set the colorbar limits for a plot that has particle
annotations but it is throwing an error.

Here is a brief snippet to show what I mean

cut = yt.SlicePlot(ds,'x','HI_Density')
cut.set_zlim('HI_Density',1e-8,1e-2)
cut.annotate_particles((30,'kpc'),marker='o',ptype='DM')
cut.save()

This plot was working fine before I added the zlim statement.
Now it is throwing the error
Could not find field '('DM', 'HI_density')' in redshift0058.

Is this just a bug or is there some other reason why I can't set the
colorbar limits.

Thanks,
Joe Tomlinson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20171102/e5630046/attachment.html>


More information about the yt-users mailing list