[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue May 20 07:34:16 PDT 2014
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/9addd0f61985/
Changeset: 9addd0f61985
Branch: yt-3.0
User: jzuhone
Date: 2014-05-20 16:32:07
Summary: Fixing broken doc builds
Affected #: 2 files
diff -r 5c2d8110d05a0b7efc6e7194302ac0f2939e30eb -r 9addd0f6198551c14be25bf1c51d93ab27a5e9c3 doc/source/cookbook/fits_radio_cubes.ipynb
--- a/doc/source/cookbook/fits_radio_cubes.ipynb
+++ b/doc/source/cookbook/fits_radio_cubes.ipynb
@@ -1,7 +1,7 @@
{
"metadata": {
"name": "",
- "signature": "sha256:af10462a2a656015309ffc74e415bade3910ba7c7ccca5e15cfa98eca7ccadf4"
+ "signature": "sha256:40add63976fd633e0542cf7674b166507985aa14685be6b4e4e53bd9a23befc2"
},
"nbformat": 3,
"nbformat_minor": 0,
@@ -116,7 +116,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "import astropy.units as u\n",
+ "import yt.units as u\n",
"new_center = ds.domain_center\n",
"new_center[2] = ds.spec2pixel(-250000.*u.m/u.s)"
],
@@ -154,7 +154,6 @@
"collapsed": false,
"input": [
"new_center[2] = ds.spec2pixel(-100000.*u.m/u.s)\n",
- "print new_center[2]\n",
"slc = yt.SlicePlot(ds, \"z\", [\"intensity\"], center=new_center, origin=\"native\")\n",
"slc.show()"
],
@@ -210,7 +209,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "slc = yt.SlicePlot(ds, \"x\", [\"intensity\"], origin=\"native\")\n",
+ "slc = yt.SlicePlot(ds, \"x\", [\"intensity\"], origin=\"native\", window_size=(8,8))\n",
"slc.show()"
],
"language": "python",
@@ -221,7 +220,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "slc = yt.SlicePlot(ds, \"y\", [\"intensity\"], origin=\"native\")\n",
+ "slc = yt.SlicePlot(ds, \"y\", [\"intensity\"], origin=\"native\", window_size=(8,8))\n",
"slc.show()"
],
"language": "python",
@@ -232,7 +231,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "In these cases, we needed to set `aspect=\"auto\"` and explicitly declare a square `window_size` to get a figure that looks good. "
+ "In these cases, we needed to explicitly declare a square `window_size` to get a figure that looks good. "
]
},
{
diff -r 5c2d8110d05a0b7efc6e7194302ac0f2939e30eb -r 9addd0f6198551c14be25bf1c51d93ab27a5e9c3 yt/frontends/fits/misc.py
--- a/yt/frontends/fits/misc.py
+++ b/yt/frontends/fits/misc.py
@@ -14,6 +14,8 @@
from yt.fields.derived_field import ValidateSpatial
from yt.utilities.on_demand_imports import _astropy
from yt.funcs import mylog, get_image_suffix
+from yt.visualization._mpl_imports import FigureCanvasAgg
+
import os
def _make_counts(emin, emax):
@@ -177,8 +179,8 @@
def show(self):
from IPython.core.display import display
for k, v in sorted(self.plots.iteritems()):
- canvas = FigureCanvasAgg(v.figure)
- display(v.figure)
+ canvas = FigureCanvasAgg(v)
+ display(v)
def save(self, name=None, mpl_kwargs=None):
if mpl_kwargs is None:
https://bitbucket.org/yt_analysis/yt/commits/c7a7d5937310/
Changeset: c7a7d5937310
Branch: yt-3.0
User: jzuhone
Date: 2014-05-20 16:34:09
Summary: Merged in jzuhone/yt-3.x/yt-3.0 (pull request #914)
Fixing broken FITS doc builds
Affected #: 2 files
diff -r 8ce1487c06c6efc8041f9c8bd4e6f80b5782a08d -r c7a7d59373100ec97b0bb8e263f1c24c0ca2c8ff doc/source/cookbook/fits_radio_cubes.ipynb
--- a/doc/source/cookbook/fits_radio_cubes.ipynb
+++ b/doc/source/cookbook/fits_radio_cubes.ipynb
@@ -1,7 +1,7 @@
{
"metadata": {
"name": "",
- "signature": "sha256:af10462a2a656015309ffc74e415bade3910ba7c7ccca5e15cfa98eca7ccadf4"
+ "signature": "sha256:40add63976fd633e0542cf7674b166507985aa14685be6b4e4e53bd9a23befc2"
},
"nbformat": 3,
"nbformat_minor": 0,
@@ -116,7 +116,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "import astropy.units as u\n",
+ "import yt.units as u\n",
"new_center = ds.domain_center\n",
"new_center[2] = ds.spec2pixel(-250000.*u.m/u.s)"
],
@@ -154,7 +154,6 @@
"collapsed": false,
"input": [
"new_center[2] = ds.spec2pixel(-100000.*u.m/u.s)\n",
- "print new_center[2]\n",
"slc = yt.SlicePlot(ds, \"z\", [\"intensity\"], center=new_center, origin=\"native\")\n",
"slc.show()"
],
@@ -210,7 +209,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "slc = yt.SlicePlot(ds, \"x\", [\"intensity\"], origin=\"native\")\n",
+ "slc = yt.SlicePlot(ds, \"x\", [\"intensity\"], origin=\"native\", window_size=(8,8))\n",
"slc.show()"
],
"language": "python",
@@ -221,7 +220,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "slc = yt.SlicePlot(ds, \"y\", [\"intensity\"], origin=\"native\")\n",
+ "slc = yt.SlicePlot(ds, \"y\", [\"intensity\"], origin=\"native\", window_size=(8,8))\n",
"slc.show()"
],
"language": "python",
@@ -232,7 +231,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "In these cases, we needed to set `aspect=\"auto\"` and explicitly declare a square `window_size` to get a figure that looks good. "
+ "In these cases, we needed to explicitly declare a square `window_size` to get a figure that looks good. "
]
},
{
diff -r 8ce1487c06c6efc8041f9c8bd4e6f80b5782a08d -r c7a7d59373100ec97b0bb8e263f1c24c0ca2c8ff yt/frontends/fits/misc.py
--- a/yt/frontends/fits/misc.py
+++ b/yt/frontends/fits/misc.py
@@ -14,6 +14,8 @@
from yt.fields.derived_field import ValidateSpatial
from yt.utilities.on_demand_imports import _astropy
from yt.funcs import mylog, get_image_suffix
+from yt.visualization._mpl_imports import FigureCanvasAgg
+
import os
def _make_counts(emin, emax):
@@ -177,8 +179,8 @@
def show(self):
from IPython.core.display import display
for k, v in sorted(self.plots.iteritems()):
- canvas = FigureCanvasAgg(v.figure)
- display(v.figure)
+ canvas = FigureCanvasAgg(v)
+ display(v)
def save(self, name=None, mpl_kwargs=None):
if mpl_kwargs is None:
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list