[yt-users] ProjectionPlot, annotate_marker & annotate_point
Britton Smith
brittonsmith at gmail.com
Mon Apr 15 04:39:48 PDT 2013
Hi Francia,
You can supply dictionaries to the annotate_marker and annotate_point
functions with keywords to do what you want. For example,
p.annotate_marker((0.402647,0.471724,0.461609),'x',
plot_args=dict(color='white'))
p.annotate_point((0.402862,0.472019,0.461895), "c1",
text_args=dict(color='white'))
Note, that this is called "plot_args" for annotate_marker and "text_args"
for annotate_point. To the yt-devs, is there a reason that these are named
differently?
Finally, I found it helpful to do help(p.annotate_marker) or
help(p.annotate_point). This showed to suggested syntax for calling these
functions. When I run into similar issues, I will first do something like
this to see the existing documentation on the function.
Britton
On Mon, Apr 15, 2013 at 7:24 AM, Francia Riesco <ff2214 at columbia.edu> wrote:
> Hello Everybody,
> I am writing you because I am using ProjectionPlot with annotate_marker &
> annotate_point and I want them come in white. Right now, the
> annotate_marker x is coming in blue and annotate_point in black. Do you
> know how can changes them both to come in color white.
> Thank in Advance
>
> p = ProjectionPlot(pf,2,'Density',**'max',(100,'kpc'))
> p.annotate_marker((0.402647,0.**471724,0.461609),'x')
> p.annotate_point((0.402862,0.**472019,0.461895), "c1")
> p.save('sliceplot')
>
> Best Regards
>
>
> ______________________________**_________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/**listinfo.cgi/yt-users-**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/20130415/a59f8852/attachment.html>
More information about the yt-users
mailing list