question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Seaborn appears to set the marker edge width to below 0.1 in matplotlib

See original GitHub issue

When I import seaborn into a python session it appears to reset the default marker edge width to below 0.1 such that non-filled markers e.g. ‘x’ do not show up.

If I do the following:

import numpy as np
import matplotlib.pyplot as plt
plt.plot(np.arange(0, 100), np.random.rand(100), 'x')
plt.show()

I get the expected plot:

plotwithmatplotlib

However If i import seaborn in the same session:

import numpy as np
import matplotlib.pyplot as plt
import seaborn
plt.plot(np.arange(0, 100), np.random.rand(100), 'x')
plt.show()

I get the following:

plotwithseaborn

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mwaskomcommented, May 31, 2017

Maybe a comment in the documentation would help people solve this issue when it occurs?

http://seaborn.pydata.org/installing.html?highlight=markeredgewidth#known-issues

Just because something is written in the documentation doesn’t mean everyone is going to read it…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Marker edge width - Scipy Lecture Notes
Marker edge width ¶. Demo the marker edge widths of matplotlib's markers. ../../../../_images/sphx_glr_plot_mew_001. import matplotlib.pyplot as plt.
Read more >
Chapter 4. Visualization with Matplotlib - O'Reilly
plot is that it can be used to create scatter plots where the properties of each individual point (size, face color, edge color,...
Read more >
Customizing Matplotlib with style sheets and rcParams
Another way to change the visual appearance of plots is to set the rcParams in a so-called style sheet and import that style...
Read more >
to_rgba in Seaborn stripplot - Set different transparency for ...
Actually, I want to set alpha = 0.3 for the green and red filling color, but keep the black edge color to be...
Read more >
Visualization with Matplotlib and Seaborn - Kaggle
import matplotlib.pyplot as plt import seaborn as sns %matplotlib inline ... size, color and other aesthetic elements of the markers and lines for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found