[yt-dev] [yt_analysis/yt] Plotting 'TotalEnergy' with Enzo frontend results in error (issue #525)

Kacper Kowalik issues-reply at bitbucket.org
Thu Mar 14 22:40:34 PDT 2013


--- you can reply above this line ---

New issue 525: Plotting 'TotalEnergy' with Enzo frontend results in error
https://bitbucket.org/yt_analysis/yt/issue/525/plotting-totalenergy-with-enzo-frontend

Kacper Kowalik:

As reported by @devinsilvia on #yt, following code:

```
#!python
from yt.mods import *

pf = load("IsolatedGalaxy/galaxy0030/galaxy0030")
slc = SlicePlot(pf, 'z', 'TotalEnergy')
slc.save()
```

yields

```
#!bash

Traceback (most recent call last):
  File "simple_plot.py", line 6, in <module>
    slc = SlicePlot(pf, 'z', 'TotalEnergy')
  File "/home/xarth/codes/yt-my/yt/visualization/plot_window.py", line 1205, in __init__
    PWViewerMPL.__init__(self, slc, bounds, origin=origin, fontsize=fontsize)
  File "/home/xarth/codes/yt-my/yt/visualization/plot_window.py", line 805, in __init__
    PWViewer.__init__(self, *args, **kwargs)
  File "/home/xarth/codes/yt-my/yt/visualization/plot_window.py", line 579, in __init__
    if setup: self._setup_plots()
  File "/home/xarth/codes/yt-my/yt/visualization/plot_window.py", line 939, in _setup_plots
    parser.parse(colorbar_label)
  File "/usr/lib64/python2.7/site-packages/matplotlib/mathtext.py", line 3010, in parse
    box = self._parser.parse(s, font_output, fontsize, dpi)
  File "/usr/lib64/python2.7/site-packages/matplotlib/mathtext.py", line 2344, in parse
    str(err)]))
ValueError: 
m{Energy}$$\/\/(\rm{ergs}/\rm{g})$
^
Expected end of text (at char 0), (line:1, col:1)
```


--

This is an issue notification from bitbucket.org. You are receiving
this either because you are the owner of the issue, or you are
following the issue.



More information about the yt-dev mailing list