[yt-users] Colorbar Limit Error With Particle Annotations

Joseph Tomlinson jmtomlinson95 at gmail.com
Thu Nov 2 15:01:34 PDT 2017


Nathan,

While trying to create a minimal runnable script based off the yt datasets
I discovered that the issue was with an earlier part of the code and was
not a yt bug.

Joe Tomlinson


On Thu, Nov 2, 2017 at 3:20 PM, Nathan Goldbaum <nathan12343 at gmail.com>
wrote:

> 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
>>
>>
>
> _______________________________________________
> 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/4fc70e46/attachment-0002.html>


More information about the yt-users mailing list