hi, which option is that? I know the length can be set
> there, but the width? trying e.g. xtick.linewidth : 1.0
> does not seem to work.
These aren't covered by default params (well they use the same width
as lines.linewidth
You can customize them with
for line in ax.get_xticklines():
line.set_linewidth(2.0)
JDH
Thanks !
I have try this as in examples/axes_props.py but it doesn't work for me
from pylab import *
t = arange(0.0, 2.0, 0.01)
s = sin(2*pi*t)
ax = subplot(111)
ax.plot(t, s)
ax.grid(True)
ticklines = ax.get_xticklines()
ticklines.extend( ax.get_yticklines() )
for line in ticklines:
line.set_linewidth(4)
show()
any ideas ? I use matplotlib-0.87.5 and Python 2.4.3
Is there a way to do this in matplotlibrc like for tick length ?
···
Le Vendredi 6 Octobre 2006 19:59, John Hunter a écrit :
for line in ax.get_xticklines():
line.set_linewidth(2.0)
--
François BEAUBERT
ENSIAME/LME
Bureau A9
Université de Valenciennes - Le Mont Houy - 59313 Valenciennes Cedex 9
Téléphone: (0/33)3 27 51 19 72
Télécopie: (0/33)3 27 51 19 61
Mel: francois.beaubert@...1286...
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Bonjour Fran�ois!
Take it easy.
rc("lines", markeredgewidth=4)
There is no reasons to put cycle inside you code.
Regards,
···
On Sunday 08 October 2006 12:08, Fran�ois Beaubert wrote:
Le Vendredi 6 Octobre 2006 19:59, John Hunter a �crit�:
> for line in ax.get_xticklines():
> � � line.set_linewidth(2.0)
Thanks !
I have try this as in examples/axes_props.py but it doesn't work for me
from pylab import *
t = arange(0.0, 2.0, 0.01)
s = sin(2*pi*t)
ax = subplot(111)
ax.plot(t, s)
ax.grid(True)
ticklines = ax.get_xticklines()
ticklines.extend( ax.get_yticklines() )
for line in ticklines:
line.set_linewidth(4)
show()
any ideas ? I use matplotlib-0.87.5 and Python 2.4.3
Is there a way to do this in matplotlibrc like for tick length ?
Thanks for the tips zack !
It works like a dream ...
Is there a way to specify only major or minor ticks marks ?
···
Le Lundi 9 Octobre 2006 19:11, Zack a écrit :
Bonjour François!
Take it easy.
rc("lines", markeredgewidth=4)
There is no reasons to put cycle inside you code.
Regards,
--
François BEAUBERT
ENSIAME/LME
Bureau A9
Université de Valenciennes - Le Mont Houy - 59313 Valenciennes Cedex 9
Téléphone: (0/33)3 27 51 19 72
Télécopie: (0/33)3 27 51 19 61
Mel: francois.beaubert@...1286...
--
Ce message a été vérifié par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a été trouvé.
MailScanner remercie transtec pour son soutien.