
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

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@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@lists.spacepope.org http://lists.spacepope.org/**listinfo.cgi/yt-users-**spacepope.org<http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org>

On Mon, Apr 15, 2013 at 7:39 AM, Britton Smith <brittonsmith@gmail.com> wrote:
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?
There probably is, but I doubt it's a good one. Let's fix that in 3.0; ship has sailed for 2.x. I've filed a bug.
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@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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (3)
-
Britton Smith
-
Francia Riesco
-
Matthew Turk