[yt-users] Labels on plot

Jean-Claude Passy jcpassy at gmail.com
Tue Mar 30 08:40:26 PDT 2010


Hi,

try the LaTex syntax:

p = pc.add_projection("Dark\_Matter\_Density", 0, source=reg1)


Jean-Claude

Agarwal, Shankar a écrit :
> Hi,
>
> http://drop.io/Dark_Matter_Density
>
> In the above plot, the label is Dark_Matter_Density. But the "M" in matter and "D" in Density do not print correctly.
>
> How can I correct "M" and "D" ?
>
>
> Here is the script I am using...
>
> from yt.mods import *
>
> fn = "RedshiftOutput0001"
> pf = load(fn)
> reg = pf.h.region([0.5, 0.5, 0.5], [0.45, 0.0, 0.0], [0.55, 1.0, 1.0])
> pf.h.save_object(reg, "region")
> reg1 = pf.h.load_object("region")
>
> pc = PlotCollection(pf,center=[0.5, 0.5, 0.5])
> p = pc.add_projection("Dark_Matter_Density", 0, source=reg1)
> p.set_zlim(1e-8, 5e-3)
> pc.save("%s" % pf)
>
>
> Shankar
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>   



More information about the yt-users mailing list