[yt-users] Using plot modifications on SlicePlots

Nathan Goldbaum nathan12343 at gmail.com
Mon Nov 2 21:59:18 PST 2015


On Mon, Nov 2, 2015 at 11:57 PM, Nathan Goldbaum <nathan12343 at gmail.com>
wrote:

> Hi Anna,
>
> Which yt version are you using? If you're not on yt 3.2.1 or later you
> should update. There was a bugfix related to plot annotations in multipanel
> plots that you might need.
>
> For your second issue, you should be able to specify the axes units using
> the 'set_axes_units' method. I just tried it and unfortunately when you
> make a unit like 1000*AU, the default unit labels aren't great, so I also
> had to manually override the unit labels.
>
> Take a look at this notebook for an example:
> http://nbviewer.ipython.org/gist/ngoldbaum/56bbcfb832dfa1fe6db1
>
> I used 1000 kpc because of the scales in my notebook, but 1000 AU should
> work as well. I'll think more about how to make the default unit labels
> nicer for units like '1000*AU'. Hopefully in future yt versions it won't be
> necessary to manually create the labels.
>

Oops, typo, i mean the scales in the dataset.


>
> -Nathan
>
> On Mon, Nov 2, 2015 at 11:33 PM, Anna Rosen <alrosen at ucsc.edu> wrote:
>
>> Hi all,
>>
>> I am trying to annotate star particles in a slice plot. My code creates a
>> two panel plot of a slice in the yz-plane and a slice in the xy-plane.
>> If I make a single slice plot I can annotate the particles just fine but
>> when I try to do it in a multi panel plot the annotations don’t appear.
>>
>> The code is attached here, the relevant code is between if MULTI_SLICE:
>> and if OFF_AXIS:.
>> http://paste.yt-project.org/show/6018/
>>
>> My question is is it possible to use plot annotations when trying to make
>> multipanel slice plots or will I have to make those manually?
>>
>> Another concern I had was axis labeling. I’ve attached an example of one
>> of my slice plots here:
>>
>> http://i.imgur.com/1SvaQMN.png
>>
>> The numbering is confusing because of the 1e3 on the x and y axes in odd
>> places. Is there a way I can choose to plot in units of 1000 AU instead of
>> AU? Or change the axis labeling?
>>
>> Thanks,
>>
>> Anna
>>
>> _______________________________________________
>> 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/20151102/88a1ff0d/attachment.html>


More information about the yt-users mailing list