8000 check freetype version also specifies what is wrong by prhbrt · Pull Request #6403 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

check freetype version also specifies what is wrong #6403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from
Closed
Prev Previous commit
Next Next commit
removed subplots_iterator, as not really part of this PR
  • Loading branch information
Herbert Kruitbosch committed Jul 19, 2016
commit b97e741d9d688418c37d6e345cfa92ae4bf407d7
1 change: 0 additions & 1 deletion lib/matplotlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1530,7 +1530,6 @@ def _jupyter_nbextension_paths():
'matplotlib.tests.test_streamplot',
'matplotlib.tests.test_style',
'matplotlib.tests.test_subplots',
'matplotlib.tests.test_subplots_iterator',
'matplotlib.tests.test_table',
'matplotlib.tests.test_text',
'matplotlib.tests.test_texmanager',
Expand Down
27 changes: 0 additions & 27 deletions lib/matplotlib/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1145,33 +1145,6 @@ def subplots(self, nrows=1, ncols=1, sharex=False, sharey=False,
# Returned axis array will be always 2-d, even if nrows=ncols=1.
return axarr

def subplots_iterator(self, nrows=1, ncols=1, show_in_between=False,
sharex=False, sharey=False, squeeze=True,
subplot_kw=None, gridspec_kw=None):
""" Iteratively yields the axis object of a rows x cols subplot and
creates new subplots when needed"""
while True:
axes = self.subplots(
nrows=nrows,
ncols=ncols,
sharex=sharex,
sharey=sharey,
squeeze=False,
subplot_kw=subplot_kw,
gridspec_kw=gridspec_kw
)
if axes.shape != (nrows, ncols):
raise AssertionError("Matplotlib panic: the returned shape of"
"subplots() is not what was expected:"
"{0} != {1}"
.format(axes.shape, (nrows, ncols))
)
for row in range(nrows):
for col in range(ncols):
yield axes[row, col]
if show_in_between:
self.show(block=False)

def __remove_ax(self, ax):
def _reset_loc_form(axis):
axis.set_major_formatter(axis.get_major_formatter())
Expand Down
18 changes: 0 additions & 18 deletions lib/matplotlib/pyplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1156,24 +1156,6 @@ def subplots(nrows=1, ncols=1, sharex=False, sharey=False, squeeze=True,
gridspec_kw=gridspec_kw)
return fig, axs

def subplots_iterator(nrows=1, ncols=1, show_in_between=False, sharex=False,
sharey=False, squeeze=True, subplot_kw=None,
gridspec_kw=None, **fig_kw):
""" Iteratively yields the axis object of a rows x cols subplot and creates new subplots when needed"""
for axis in (
figure(**fig_kw).subplots_iterator(
nrows=nrows,
ncols=ncols,
sharex=sharex,
sharey=sharey,
squeeze=squeeze,
subplot_kw=subplot_kw,
gridspec_kw=gridspec_kw
)
):
yield axis


def subplot2grid(shape, loc, rowspan=1, colspan=1, fig=None, **kwargs):
"""
Create a subplot in a grid. The grid is specified by *shape*, at
Expand Down
Binary file not shown.
Binary file not shown.
Loading
0