<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">yeah, I was doing that -- it doesn't have an effect.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 20, 2014 at 11:33 AM, Chris Malone <span dir="ltr"><<a href="mailto:chris.m.malone@gmail.com" target="_blank">chris.m.malone@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 dir="ltr"><div>Hey Mike,<br><br></div>I'm not sure if this is the issue or not, but after you apply your formatter to the colorbar, you need to call cbar.update_ticks() for them to actually change.<br>
<br>Chris<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Wed, Aug 20, 2014 at 9:12 AM, Michael Zingale <span dir="ltr"><<a href="mailto:michael.zingale@stonybrook.edu" target="_blank">michael.zingale@stonybrook.edu</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Does anyone know how to make a SlicePlot colorbar from yt use mathtext in the tick labels?  I am doing the following in a loop over x, y, z planes:<div>

<br></div><div><br><div><div><div>        p = yt.SlicePlot(ds, d, var, center=(center[0], center[1], center[2]),</div>
<div>                         origin="native", fontsize=10)</div><div>        p.set_log(var, log)</div><div><br></div><div>        plot = p.plots[var]</div><div>        plot.figure = fig</div><div>        plot.axes = grid[i].axes</div>


<div>        plot.cax = grid.cbar_axes[i]</div></div><div><br></div><div>I can get at the colorbar object via cb = plot.cb, but I can't seem to turn on mathtext.  I can modify the axes to use my formatter so they look pretty, but I've tried to set a colorbar formatter with no success.</div>


<div><br></div><div>Here's my image:</div><div><br></div><div><a href="http://bender.astro.sunysb.edu/random/test.png" target="_blank">http://bender.astro.sunysb.edu/random/test.png</a><br></div><div><br></div><div>Notice that the offset text for the colorbar is "1.e6" instead of in latex (I still have to remove the offset text for the two rightmost y-axes later, but I know how to do that).</div>


<div><br></div><div>Mike</div><span><font color="#888888"><div><br></div>-- <br><div>Michael Zingale</div><div>Associate Professor</div><div><br></div><div>Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY 11794-3800</div>

<div>
<i>phone</i>:  <a href="tel:631-632-8225" value="+16316328225" target="_blank">631-632-8225</a></div><div><i>e-mail</i>: <a href="mailto:Michael.Zingale@stonybrook.edu" target="_blank">Michael.Zingale@stonybrook.edu</a></div>

<div><i>web</i>: <a href="http://www.astro.sunysb.edu/mzingale" target="_blank">http://www.astro.sunysb.edu/mzingale</a></div>

</font></span></div></div></div>
<br></div></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>
<br></blockquote></div><br></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><br clear="all"><div><br></div>-- <br><div>Michael Zingale</div><div>Associate Professor</div><div><br></div><div>Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY 11794-3800</div>
<div><i>phone</i>:  631-632-8225</div><div><i>e-mail</i>: <a href="mailto:Michael.Zingale@stonybrook.edu" target="_blank">Michael.Zingale@stonybrook.edu</a></div><div><i>web</i>: <a href="http://www.astro.sunysb.edu/mzingale" target="_blank">http://www.astro.sunysb.edu/mzingale</a></div>

</div>