Tick line linewidth and linestyle don't work

Hi,

In the following script:

···

---

import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as mpl

fig = mpl.figure()

ax = fig.add_subplot(1,1,1)

for line in ax.xaxis.get_ticklines():
    line.set_markersize(20)
    line.set_linewidth(10)
    line.set_linestyle('dashed')

fig.savefig('test.png')

---

It looks as though the set_linewidth and set_linestyle commands are silently ignored. Is this normal? I have submitted a bug report here:

https://sourceforge.net/tracker/?func=detail&aid=2981829&group_id=80706&atid=560720

Thanks,

Thomas

linewidth and linestyle are (or looks) ignored because ticklines are
actually "markers".
To change width of the ticklines, you should use set_mew.
A change of the linestyle should also be possible, but I'm not sure if
there is a handy way to do that.

Regards,

-JJ

···

On Sun, Apr 4, 2010 at 11:55 AM, Thomas Robitaille <thomas.robitaille@...287...> wrote:

It looks as though the set_linewidth and set_linestyle commands are silently ignored. Is this normal? I have submitted a bug report here: