<div dir="ltr">Hi Semyeong,<div><br></div><div>I think the problem is that the labels automatically get wrapped in LaTeX mathmode characters ("$"), and so your underscore is indicating a subscript --- at least this is what I see in yt 3.0 at the moment. There should probably be a more clever way of handling this.</div>
<div><br></div><div>For now, I think what you can do (but have not tested) is the following</div><div><br></div><div>myprojection = pc.add_projection('H_NumberDensity', 2, data_source=reg, center=center)</div><div>
myprojection.set_label("H_NumberDensity")</div><div><br></div><div>It looks like the set_label() method of the projection plot uses the Matplotlib colorbar.set_label() method, which doesn't do any automatic LaTeX'ing.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 8, 2013 at 8:44 AM, Semyeong Oh <span dir="ltr"><<a href="mailto:semyeong.oh@gmail.com" target="_blank">semyeong.oh@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
Hi Britton,</div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
I see. But it seems like I still need to use PlotCollection for phase plots (Is there equivalent things for phase plots?),</div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
and the problem persists. For example, ‘H_NumberDensity’ shows ’N’ as a subscript.</div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
My instinfo is 6f28a1477055 in case it helps.</div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
Semyeong</div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div> <div style="color:gray"><hr>From: <span style="color:black">Britton Smith</span> <a href="mailto:brittonsmith@gmail.com" target="_blank">Britton Smith</a><br>
Reply: <span style="color:black">Discussion of the yt analysis package</span> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>Date: <span style="color:black">November 8, 2013 at 2:52:44 AM</span><br>
To: <span style="color:black">Discussion of the yt analysis package</span> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>Subject: <span style="color:black"> Re: [yt-users] plot collection labels etc <br>
</span></div> <blockquote type="cite"><span><div><div>
<div dir="ltr">Hi Semyeong,
<div><br></div>
<div>The PlotCollection is in the process of being phased out.
For Slices and Projections, it has been completely replaced
by the functions SlicePlot and ProjectionPlot. I suggest you
have a look here: <a href="http://yt-project.org/docs/dev/visualizing/plots.html" target="_blank">http://yt-project.org/docs/dev/visualizing/plots.html</a></div>
<div><br></div>
<div>Britton</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Nov 8, 2013 at 6:32 AM, Semyeong
Oh <span dir="ltr"><<a href="mailto:semyeong.oh@gmail.com" target="_blank">semyeong.oh@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
Hi, I have a couple of questions on PlotCollection</div>
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<br></div>
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
First, the labels on plot collection appear funny
like <a href="https://www.dropbox.com/s/jud8ekprajryykk/prob.png" target="_blank"><span style="color:rgb(0,0,0)">this</span></a></div>
<div><br></div>
<div>Here’s the code:</div>
<div>pc = PlotCollectionInteractive(pf)</div>
<div><br></div>
<div>pc.add_projection('H_NumberDensity', 2, data_source=reg,
center=center)</div>
<div>pc.set_width(width, 'unitary’)</div>
<div><br></div>
<div>There seem to be a couple of mailing list discussions, but is
it something that</div>
<div>wasn’t fixed for PlotCollectionInteractive?</div>
<div><br></div>
<div>Also, if I am making multiple plots using the same
data_source,</div>
<div>it seems that I have to do set_width every time I add a new
plot.</div>
<div>I’m wondering</div>
<div><br></div>
<div>1. if there is some way to set global width of a
PlotCollection?</div>
<div>2. when is the fixed resolution buffer actually made? Is it
when I save/show the plots?</div>
<div><br></div>
<div>Thanks for your help.</div>
<div><span><font color="#888888">Semyeong</font></span></div>
<div><span><font color="#888888"><br></font></span></div>
</div>
<br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote>
</div>
<br></div>
_______________________________________________
<br>yt-users mailing list
<br><a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a>
<br><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a>
<br></div></div></span></blockquote> <div><br><br><span style="font-family:helvetica,arial;font-size:13px"></span><span></span></div></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>