Plot Callbacks for OffAxis Plots
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
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
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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Joseph Tomlinson
-
Nathan Goldbaum