Closed
Description
Bug report
Bug summary
My historic Seaborn example doesn't seem to work anymore with Matplotlib-2.2.0rc1. is it a volontary change ?
# Seaborn
# for more examples, see http://stanford.edu/~mwaskom/software/seaborn/examples/index.html
import seaborn as sns
sns.set()
df = sns.load_dataset("iris")
sns.pairplot(df, hue="species", size=1.5)
Actual outcome
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-9-78e2f3db95aa> in <module>()
4 sns.set()
5 df = sns.load_dataset("iris")
----> 6 sns.pairplot(df, hue="species", size=1.5)
C:\WinPython\bd35\buildQt5\winpython-32bit-3.5.x.2\python-3.5.4\lib\site-packages\seaborn\axisgrid.py in pairplot(data, hue, hue_order, palette, vars, x_vars, y_vars, kind, diag_kind, markers, size, aspect, dropna, plot_kws, diag_kws, grid_kws)
2058 if grid.square_grid:
2059 if diag_kind == "hist":
-> 2060 grid.map_diag(plt.hist, **diag_kws)
2061 elif diag_kind == "kde":
2062 diag_kws["legend"] = False
C:\WinPython\bd35\buildQt5\winpython-32bit-3.5.x.2\python-3.5.4\lib\site-packages\seaborn\axisgrid.py in map_diag(self, func, **kwargs)
1333 diag_ax = ax._make_twin_axes(sharex=ax,
1334 sharey=diag_axes[0],
-> 1335 frameon=False)
1336 else:
1337 diag_ax = ax._make_twin_axes(sharex=ax, frameon=False)
C:\WinPython\bd35\buildQt5\winpython-32bit-3.5.x.2\python-3.5.4\lib\site-packages\matplotlib\axes\_subplots.py in _make_twin_axes(self, *kl, **kwargs)
174 from matplotlib.projections import process_projection_requirements
175 if 'sharex' in kwargs and 'sharey' in kwargs:
--> 176 raise ValueError("Twinned Axes may share only one axis.")
177 kl = (self.get_subplotspec(),) + kl
178 projection_class, kwargs, key = process_projection_requirements(
ValueError: Twinned Axes may share only one axis.
Matplotlib version
- Operating system: windows10
- Matplotlib version: 2.2.0rc1 of feb 18th cgohlke
- Matplotlib backend (
print(matplotlib.get_backend())
):module://ipykernel.pylab.backend_inline - Python version: 3.5.4
- Jupyter version (if applicable): Jupyterlab-0.31.8
- Other libraries: