Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

searborn adaptation need for Matptotlib-2.2.0rc1 #10585

Closed
@stonebig

Description

@stonebig

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.htmlimportseabornassnssns.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"] = FalseC:\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:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp