[Yt-svn] yt: Changing phase plots to be rasterized in the pcolormesh; thi...
hg at spacepope.org
hg at spacepope.org
Tue Sep 21 12:28:45 PDT 2010
hg Repository: yt
details: yt/rev/aa3179f8fd19
changeset: 3403:aa3179f8fd19
user: Matthew Turk <matthewturk at gmail.com>
date:
Tue Sep 21 09:55:14 2010 -0700
description:
Changing phase plots to be rasterized in the pcolormesh; this improves file
size for EPS and PDF substantially.
diffstat:
yt/visualization/plot_types.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r c0273aa7b0c9 -r aa3179f8fd19 yt/visualization/plot_types.py
--- a/yt/visualization/plot_types.py Fri Sep 17 15:21:35 2010 -0700
+++ b/yt/visualization/plot_types.py Tue Sep 21 09:55:14 2010 -0700
@@ -804,7 +804,8 @@
self.norm = matplotlib.colors.Normalize()
self.image = self._axes.pcolormesh(self.x_bins, self.y_bins,
temparray, shading='flat',
- norm=self.norm, cmap=self.cmap)
+ norm=self.norm, cmap=self.cmap,
+ rasterized=True)
self.colorbar = self._figure.colorbar(self.image,
extend='neither', shrink=0.95,
format="%0.2e" )
@@ -887,7 +888,8 @@
self._axes.set_yscale("linear")
self.image = self._axes.pcolormesh(self.x_bins, self.y_bins, \
vals, shading='flat', \
- norm=self.norm, cmap=self.cmap)
+ norm=self.norm, cmap=self.cmap,
+ rasterized=True)
self._axes.set_xscale({0:"linear",1:"log"}[int(self._log_x)])
self._axes.set_yscale({0:"linear",1:"log"}[int(self._log_y)])
if self._xlim is not None: self._axes.set_xlim(*self._xlim)
More information about the yt-svn
mailing list