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

Sizes of different markers are not perceptually uniform #15703

Open
@HDembinski

Description

@HDembinski

Bug summary

Markers of different types ("o", "s", "*" ...) do not visually appear to be of the same size when their marker size (e.g. ms=8) is equal (matplotlib 3.1.1).

Details

Matplotlib has a great selection of markers, but the relative sizes of these markers are not perceptually uniform, see
https://matplotlib.org/3.1.1/api/markers_api.html
or this example script:

from matplotlib import pyplot as pltplt.style.use("default")import numpy as npx = np.arange(4)y = np.ones(4)for imarker, marker in enumerate("os*pv^<>PDdX"):    plt.plot(x, y + 0.1 * imarker, marker=marker)plt.show()

The square "s" and the diamond "D" appear larger than the other markers. The star "*" is the smallest, followed by the pentagon "p" and the plus "P".

image

Expected outcome

Markers should appear uniform in size. I think for the star this is very obviously not the case. The area of the star is much smaller than for the circle, and largest for the square and the diamond.

Nevertheless, I don't think an objective geometric criterion like area can be used to make them perceptually uniform in size. I think this needs to be hand-tuned by a human to take into account how humans perceive the relative size of objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp