[yt-dev] Issue #1253: offset text not in tex mode (yt_analysis/yt)

Michael Zingale issues-reply at bitbucket.org
Tue Jul 26 12:37:53 PDT 2016


New issue 1253: offset text not in tex mode
https://bitbucket.org/yt_analysis/yt/issues/1253/offset-text-not-in-tex-mode

Michael  Zingale:

The follow script (on some castro data):

```
import yt

ds = yt.load("smallplt16623")

s = yt.SlicePlot(ds, "z", "density")
s.save()
```

produces an image with the axes in 'km' and the offset text rendered as '1e4' instead of as $10^4$.

![smallplt16623_Slice_z_density.png](https://bitbucket.org/repo/BXbAb/images/1447452790-smallplt16623_Slice_z_density.png)

a related issue is that if you try to use `axes_unit='1e9*cm'`, you get a spurious `(1+z)` factor -- that is meaningless except possibly for cosmology codes, and should probably be suppressed by default.

![smallplt16623_Slice_z_density.png](https://bitbucket.org/repo/BXbAb/images/697522556-smallplt16623_Slice_z_density.png)




More information about the yt-dev mailing list