matplotlib/matplotlib — Issue #543: lines.markeredgewidth changes tick width
Author: enicklas
Created: 2011-10-20 16:12:09+00:00
State: open

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