[yt-users] Colorbar Limit Error With Particle Annotations

Nathan Goldbaum nathan12343 at gmail.com
Thu Nov 2 12:20:45 PDT 2017


This is likely a bug. Can you file an issue on our github?

https://github.com/yt-project/yt/issues/new

If you can, please include a full runnable script that triggers the error
you're seeing.

On Thu, Nov 2, 2017 at 2:18 PM, Joseph Tomlinson <jmtomlinson95 at gmail.com>
wrote:

> 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
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20171102/7c9f9d99/attachment-0002.html>


More information about the yt-users mailing list