[yt-users] Plot Callbacks for OffAxis Plots

Nathan Goldbaum nathan12343 at gmail.com
Fri Oct 20 07:02:22 PDT 2017


In principle it’s possible to add these but no one has yet done it. There’s
a longstanding open issue about this:

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

On Fri, Oct 20, 2017 at 7:56 AM Joseph Tomlinson <jmtomlinson95 at gmail.com>
wrote:

> Hey yt-users,
>
> I am trying to use OffAxis Slice and Projection plots using planes defined
> by two light rays in Enzo data.
> I have recently tried added callbacks for visualization of the clumps of
> gas and star particles but whenever I use annotate_clumps and
> annotate_particles with OffAxis plots I always get an error saying that
> they do not have the method.
> I assume that this is a consequence of how the OffAxis plots are made and
> there is no easy way around this but I wanted to check to make sure before
> I give up on OffAxis plots.
>
> If you don't understand what I mean here is a short bit of pseudo code to
> explain.
> L=[1,1,0]
> cut = SlicePlot(ds, L, 'Density')
> cut.annotate_particles((300,'kpc'), ptype=2)
> AttributeError: 'OffAxisSlicePlot' object has no attribute
> 'annotate_particles'
>
> 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/20171020/977e966a/attachment.html>


More information about the yt-users mailing list