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

The markers are not hollow when I use ax.scatter() and set markers.MarkerStyle()'s fillstyle to 'none'. My usage is wrong? #17527

Closed
@NoahFeng

Description

@NoahFeng

I want to set markers hollow. So I make a costomedmarkers.MarkerStyle and set the paramterfillstyle='none'. But I don't get what I want.

Code for reproduction

frommatplotlibimportpyplotaspltfrommatplotlibimportmarkersimportnumpyasnpxy=np.random.rand(10,2)fig,ax=plt.subplots()style=markers.MarkerStyle(marker='o',fillstyle='none')ax.scatter(xy[:,0],xy[:,1],marker=style)plt.show()

Actual outcome

Snipaste_2020-05-28_18-17-01

Expected outcome
This is what I want.
Snipaste_2020-05-28_18-20-13

When I check out the source code about thematplotlib.markers.MarkerStyle, I find:
Snipaste_2020-05-28_18-27-40
It seems that it doesn't processfillstyle='none'.
I don't know why. Maybe my usage is wrong. Could anyone help me?

Matplotlib version

  • Operating system: Win10
  • Matplotlib version: 3.1.1
  • Python version: 3.6.6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp