On Mon, Jun 2, 2008 at 12:32 PM, Berit Hinnemann <[EMAIL PROTECTED]> wrote:
> There is one thing, which I cannot get to work, namely to change the
> linewidth of the tick lines.
>
> I have tried
>
> ticklines = ax.get_xticklines()
> ticklines.extend(ax.get_yticklines())
>
> for line in ticklines:
> line.set_linewidth(10)
>
> but nothing changes. I can change the color and other properties, but no
> matter what I set for the linewidth, it does not change. I have also tried
> to go in and
This is the correct approach but it is a tricky one. In matplotlib,
the ticks are *markers*. All Line2D objects support a line (solid,
dashed, etc) and a marker (circle, square, tick). The tick linewidth
is controlled by the "markeredgewidth" property.
from pylab import figure, show
fig = figure()
ax = fig.add_subplot(111)
ax.plot(range(10))
for line in ax.get_xticklines() + ax.get_yticklines():
line.set_markeredgewidth(10)
show()
BTW -- this is covered in the somewhat new artist api tutorial at
http://matplotlib.sf.net/pycon/artist_api_tut.pdf
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users