X Tutup
Skip to content

Can't plot with empty markers #8514

@naught101

Description

@naught101

Bug report

Why trying to plot with empty markers, markers are not plotted at all. Example:

plot([1,2,3,4,5], [1, 1.5, 3, 4.2, 5], 'ks-',color='black', markerfacecolor='none', markeredgecolor='black')
# Out[22]: [<matplotlib.lines.Line2D at 0x7f3db3c11ac8>]
savefig('/tmp/figure1.png')

Should produce a plot with a black line, with empty squares ar each of the 5 points, but instead it produces this:

figure1

I'm not sure if I've tried this before, but I think it works for others, so it could be a specific version problem, I guess.

Running on KDE Neon/ubuntu xenial, with python/MPL from conda:

# packages in environment at /home/naught101/miniconda3/envs/science:
libpng                    1.6.27                        0  
matplotlib                2.0.0               np111py36_0  
pyqt                      5.6.0                    py36_2  
python                    3.6.1                         0  

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

      X Tutup