[yt-svn] commit/yt: jwise77: Updating eps_writer to handle PlotWindow that have the plots as a dict
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Nov 21 16:04:17 PST 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/9373defa8ed5/
Changeset: 9373defa8ed5
Branch: yt
User: jwise77
Date: 2016-11-20 13:45:19+00:00
Summary: Updating eps_writer to handle PlotWindow that have the plots as a dict
instead of a list. Also fixing y-axis labeling after the reordering
of plots in a previous changeset.
Affected #: 1 file
diff -r 9f4dc27f7c8fd399a35e04d0423298753b2994c9 -r 9373defa8ed5e8c707b5d36a1dc3568885807ea6 yt/visualization/eps_writer.py
--- a/yt/visualization/eps_writer.py
+++ b/yt/visualization/eps_writer.py
@@ -1110,9 +1110,9 @@
else:
this_plot = yt_plots
if j == nrow-1:
+ xaxis = 0
+ elif j == 0:
xaxis = 1
- elif j == 0:
- xaxis = 0
else:
xaxis = -1
if i == 0:
@@ -1177,6 +1177,10 @@
for i in range(ncol):
xpos0 = i*(figsize[0] + margins[0])
index = j*ncol + i
+ if isinstance(yt_plots, list):
+ this_plot = yt_plots[index]
+ else:
+ this_plot = yt_plots
if (not _yt and colorbars is not None) or (_yt and not yt_nocbar):
if cb_flags is not None:
if not cb_flags[index]:
@@ -1228,7 +1232,7 @@
if fields[index] is None:
fields[index] = d.return_field(yt_plots[index])
- d.colorbar_yt(yt_plots[index],
+ d.colorbar_yt(this_plot,
field=fields[index],
pos=[xpos,ypos],
shrink=shrink_cb,
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