[Yt-svn] commit/yt: jwise77: Adding format argument to yt_multiplot to tell multiplot whether we
Bitbucket
commits-noreply at bitbucket.org
Wed Sep 7 12:36:57 PDT 2011
1 new changeset in yt:
http://bitbucket.org/yt_analysis/yt/changeset/05770f8459dc/
changeset: 05770f8459dc
branch: yt
user: jwise77
date: 2011-09-07 21:36:46
summary: Adding format argument to yt_multiplot to tell multiplot whether we
want an EPS or PDF.
affected #: 1 file (105 bytes)
--- a/yt/visualization/eps_writer.py Sat Sep 03 11:48:19 2011 -0600
+++ b/yt/visualization/eps_writer.py Wed Sep 07 15:36:46 2011 -0400
@@ -719,7 +719,7 @@
def multiplot(ncol, nrow, yt_plots=None, images=None, xranges=None,
yranges=None, xlabels=None, ylabels=None, colorbars=None,
shrink_cb=0.95, figsize=(8,8), margins=(0,0), titles=None,
- savefig=None, yt_nocbar=False, bare_axes=False,
+ savefig=None, format="eps", yt_nocbar=False, bare_axes=False,
cb_flags=None):
r"""Convenience routine to create a multi-panel figure from yt plots or
JPEGs. The images are first placed from the origin, and then
@@ -756,6 +756,8 @@
Titles that are placed in textboxes in each panel.
savefig : string
Name of the saved file without the extension.
+ format : string
+ File format of the figure. eps or pdf accepted.
yt_nocbar : boolean
Flag to indicate whether or not colorbars are created.
bare_axes : boolean
@@ -908,7 +910,7 @@
shrink=shrink_cb)
if savefig != None:
- d.save_fig(savefig)
+ d.save_fig(savefig, format=format)
return d
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