8000 [Bug]: Small Scatter Plot Marker Size Results in Circles · Issue #25410 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
[Bug]: Small Scatter Plot Marker Size Results in Circles #25410
Closed
@suuuehgi

Description

@suuuehgi

Bug summary

Using marker sizes s smaller than 1 on scatter plots result in hollow circles:

ax.scatter(X, Y, s=.05, c='white', marker='.')

screenshot-2023-03-08-16:39:50

Code for reproduction

from matplotlib import pyplot as plt

S = [4, 3, 2, 1, .5, .1, .01, .001]
N = len(S)

fig, ax = plt.subplots( figsize=(1,.2), layout='constrained')

ax.scatter(range(N), N*[0], s=S)
ax.axis('off')

Actual outcome

so

Expected outcome

Solid circles

Additional information

I want to plot streamlines on pyplot.tricontourf and for reasons beyond me s=1 is already way to big (compare above).
I can't easily use the lines of pyplot.plot as Comsol just gives me a chunk of (x, y)-pairs.

Operating system

Arch

Matplotlib Version

3.5.3

Matplotlib Backend

module://matplotlib_inline.backend_inline

Python version

Python 3.10.9

Jupyter version

3.6.1

Installation

Linux package manager

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0