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
IPython Notebook: irregular marker edge for 'o' #4421
Comments
Actually this may be either a regression in what |
I would suggest using It looks like fig, ax = plt.subplots(dpi=72)
ax.plot([1,2,3,4], [3,1,2,4], 'o', ms=7) will reproduce this. I am in the process a PR to address this issue. |
@tacaswell thanks for fixing this issue. Regarding switching to |
Woah I had always assumed was an unavoidably annoyance, not a bug. Thanks for jumping on it, @tacaswell |
It is a fun deep one too related to conditional snapping of the path used to draw the markers. Ended up reading some c++ to sort this out. @tritemio Why do you want to close the figures? If you do that they are no longer interactive. It is better to add fig, ax = plt.subplots() when you want a new figure. There is a PR in the works to make interactive OO work much nicer (#4091) |
Set the _snap_threshold for 'o' markers to `np.inf` which effectively turns it off. This makes 'o' markers look more circular at all sizes at all dpi. This change subtly changed several tests. Closes matplotlib#4421
@tacaswell, questions, can there be more 2 interactive figures in the notebook? Is it the rule that the procedural interface is interactive while the OO is not? Examples or docs to get started on this? |
There can be as many interactive figures open as you want, |
In the notebook, using
%matplotlib inline
, plotting circle markers ('o'
) with size of 7 results in a rendering error:The problem is present also in the png produced by
savefig
.Changing the marker size to 6 or 8 results in correct rendering.
This rendering issue is very annoying also because the
ms=7
happens to be the default marker size in seaborn. In fact, I reported the bug there first (mwaskom/seaborn#557).The text was updated successfully, but these errors were encountered: