Error plotting radial velocity
Hey everyone, I am using Python 3.6.4 and yt 3.4.1 from conda-forge. I get errors when I try and save a slice plot of radial velocity. For example, if I download the tiny cosmology dataset [1], and run this script: -------- import yt # Load in tiny cosmology dump fn = "enzo_tiny_cosmology/DD0015/DD0015" ds = yt.load(fn) # load data # Make slice plot of radial_velocity p = yt.SlicePlot(ds, 'z', 'radial_velocity') p.save() ------- I get the following error [2]. This only happens when I save the plot for the radial_velocity field. Other fields like density and temperature work just fine. Let me know if anyone else gets this error and if there is an obvious fix. Thanks. [1] http://yt-project.org/data/enzo_tiny_cosmology.tar.gz [2] https://pastebin.com/EJkGxQXM -- ------------------------------------------------------------------------ Joseph Smidt <josephsmidt@gmail.com> Theoretical Division P.O. Box 1663, Mail Stop B283 Los Alamos, NM 87545 Office: 505-665-9752 Fax: 505-667-1931
Thanks for the report! This seems like a bug. I will try to reproduce it tomorrow. Which matplotlib version do you have installed? On Wed, Mar 7, 2018 at 8:22 PM Joseph Smidt <josephsmidt@gmail.com> wrote:
Hey everyone,
I am using Python 3.6.4 and yt 3.4.1 from conda-forge. I get errors when I try and save a slice plot of radial velocity. For example, if I download the tiny cosmology dataset [1], and run this script:
--------
import yt
# Load in tiny cosmology dump fn = "enzo_tiny_cosmology/DD0015/DD0015" ds = yt.load(fn) # load data
# Make slice plot of radial_velocity p = yt.SlicePlot(ds, 'z', 'radial_velocity') p.save()
-------
I get the following error [2]. This only happens when I save the plot for the radial_velocity field. Other fields like density and temperature work just fine. Let me know if anyone else gets this error and if there is an obvious fix. Thanks.
[1] http://yt-project.org/data/enzo_tiny_cosmology.tar.gz
[2] https://pastebin.com/EJkGxQXM
-- ------------------------------------------------------------------------ Joseph Smidt <josephsmidt@gmail.com>
Theoretical Division P.O. Box 1663, Mail Stop B283 Los Alamos, NM 87545 Office: 505-665-9752 Fax: 505-667-1931 _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
Hi Joseph, This seems to be a new behavior in matplotlib 2.2.0, which just came out officially this week. I'm going to report it as a bug upstream to matplotlib but we will likely need to work around this on the yt side. For now you can avoid this error by downgrading to matplotlib 2.1.2. -Nathan On Wed, Mar 7, 2018 at 8:48 PM, Joseph Smidt <josephsmidt@gmail.com> wrote:
I am using matplotlib 2.2.0. _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
participants (2)
-
Joseph Smidt
-
Nathan Goldbaum