<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><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">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><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></div></div>