Skip to content

lines.markeredgewidth changes tick width #543

Closed
@enicklas

Description

@enicklas

Hi all,

I am trying to set the markeredgewidth to zero in rcParams (since used by many scripts).

However, there are two problems:

  1. The width of the ticks changes with the setting for the markeredgewidth

  2. When saving the figure to pdf, the markeredge is still visible if markeredgewidth=0. However, it works correctly, if markeredgewidth is set to a small value, e.g. 0.0001

Here is a sample script:

import matplotlib as mpl
import matplotlib.pyplot as plt

mpl.rcParams['lines.markersize'] = 10
mpl.rcParams['lines.markeredgewidth'] = 0

plt.plot([1, 2, 3], [2, 4, 3], 'o-')
plt.xlim([0.9, 3.1])
plt.ylim([1.9, 4.1])
plt.savefig('testfig.pdf', format='pdf')
plt.show()

I am running mpl 1.1.0 with python2.7 on Debian linux.

Thanks a lot for your help,

Eike

Metadata

Metadata

Assignees

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