Ticks

I am looking to change the size/style of the tick markers. Not the labels
associated with each tick, the dashes. How do i go about this?

Cheers,

Jon.

···

--
View this message in context: http://www.nabble.com/Ticks-tp23253405p23253405.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

There are several options in matplotlib config file (on Debian it's
/etc/matplotlibrc, but you can have also a user specific one) you can
use to configure the ticks style, for example:

#xtick.major.size : 4 # major tick size in points
#xtick.minor.size : 2 # minor tick size in points
#xtick.major.pad : 4 # distance to major tick label in points
#xtick.minor.pad : 4 # distance to the minor tick label in points
#xtick.color : k # color of the tick labels
#xtick.labelsize : medium # fontsize of the tick labels
#xtick.direction : in # direction: in or out

You can access them also with rcParam dictionary provided by matplotlib module.

Regards,

···

On Mon, Apr 27, 2009 at 12:15, D2Hitman <j.m.girven@...831...> wrote:

I am looking to change the size/style of the tick markers. Not the labels
associated with each tick, the dashes. How do i go about this?

--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

Hi Jon,

the dashed associated with each tick are actually line instances and therefore
hold information about the used marker, markersize, color, ...

For example you could do the following:

import matplotlib.pyplot as plt
ax = plt.gca() # get the current axes

for l in ax.get_xticklines() + ax.get_yticklines():
    l.set_markersize(10)

plt.show()

best regards Matthias

···

On Monday 27 April 2009 12:15:24 D2Hitman wrote:

I am looking to change the size/style of the tick markers. Not the labels
associated with each tick, the dashes. How do i go about this?

Cheers,

Jon.

Thanks both of you. Works nicely.

I was also looking for line thickness, so:

for l in ax.get_xticklines() + ax.get_yticklines():
    l.set_markersize(10)
    l.set_markeredgewidth(10)

Has a slightly blurry edge at that size, but does the job.

Cheers,

Jon.

Matthias Michler wrote:

···

Hi Jon,

the dashed associated with each tick are actually line instances and
therefore
hold information about the used marker, markersize, color, ...

For example you could do the following:

import matplotlib.pyplot as plt
ax = plt.gca() # get the current axes

for l in ax.get_xticklines() + ax.get_yticklines():
    l.set_markersize(10)

plt.show()

best regards Matthias

On Monday 27 April 2009 12:15:24 D2Hitman wrote:

I am looking to change the size/style of the tick markers. Not the labels
associated with each tick, the dashes. How do i go about this?

Cheers,

Jon.

------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
View this message in context: http://www.nabble.com/Ticks-tp23253405p23254032.html
Sent from the matplotlib - users mailing list archive at Nabble.com.