You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seaborn 0.13 is getting more friendly towards wide form data. With a scatter plot, the index (if available) is used as x=, and the columns are used both as hue= and style=. If the user wants to remove the effects of style, markers=False gives an error : "KeyError: 'marker'".
Code tested with seaborn 0.13.2 and also the latest dev version:
With markers=['.'], there is a warning about not having enough markers. (The more convoluted markers=['.']*len(flights_wide.columns) works without problem.)
On the other hand, marker='.' is completely ignored.
PS: trace of the error with markers=False (seaborn 0.13.2):
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2023.3.2\plugins\python\helpers\pydev\pydevconsole.py", line 364, in runcode
coro = func()
^^^^^^
File "<input>", line 1, in <module>
File "C:\...\venv\Lib\site-packages\seaborn\relational.py", line 636, in scatterplot
p.plot(ax, kwargs)
File "C:\...\venv\Lib\site-packages\seaborn\relational.py", line 425, in plot
example_marker = self._style_map(example_level, "marker")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\...\venv\Lib\site-packages\seaborn\_base.py", line 85, in __call__
return self._lookup_single(key, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\...\venv\Lib\site-packages\seaborn\_base.py", line 588, in _lookup_single
value = self.lookup_table[key][attr]
~~~~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: 'marker'
The text was updated successfully, but these errors were encountered:
Seaborn 0.13 is getting more friendly towards wide form data. With a scatter plot, the index (if available) is used as
x=
, and the columns are used both ashue=
andstyle=
. If the user wants to remove the effects of style,markers=False
gives an error : "KeyError: 'marker'".Code tested with seaborn 0.13.2 and also the latest dev version:
With
markers=['.']
, there is a warning about not having enough markers. (The more convolutedmarkers=['.']*len(flights_wide.columns)
works without problem.)On the other hand,
marker='.'
is completely ignored.PS: trace of the error with
markers=False
(seaborn 0.13.2):The text was updated successfully, but these errors were encountered: