[yt-users] Plot Callbacks for OffAxis Plots

Joseph Tomlinson jmtomlinson95 at gmail.com
Fri Oct 20 05:56:09 PDT 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20171020/ec6e9b94/attachment.html>


More information about the yt-users mailing list