Hi
How do I make the tick size bigger as in thicker/bolder?
matplotlib.rc(‘ytick.major’, size=5) makes it longer but ‘not’ thicker.
Ted
Hi
How do I make the tick size bigger as in thicker/bolder?
matplotlib.rc(‘ytick.major’, size=5) makes it longer but ‘not’ thicker.
Ted
I[1]: plt.plot(range(100))
O[1]: [<matplotlib.lines.Line2D object at 0xb84f8ec>]
I[2]: xticks = getp(gca(), 'xticklines')
I[3]: xgrids = getp(gca(), 'xgridlines')
I[4]: setp(xgrids, linewidth=2)
O[4]: [None, None, None, None, None, None]
I[5]: setp(xticks, linewidth=5)
O[55]: [None, None, None, None, None, None, None, None, None, None, None, None]
This should be the solution. However xgrids are finely set to a bigger
linewidth whereas xticks doesn't change.
I[6]: xticks
O[6]: <a list of 12 Text xtickline objects>
I[6]: xgrids
O[6]: <a list of 6 Line2D xgridline objects>
I[7]: xticks[0]
O[7]: <matplotlib.lines.Line2D object at 0xb8b560c>
I[8]: xgrids[1]
O[8]: <matplotlib.lines.Line2D object at 0xb8626ec>
Interestingly xticks is returned as a list of Text objects, while each
element of this list looks like a Line2D (which really supposed to
be.)
Can you try these on your side?
On Mon, Oct 18, 2010 at 12:46 PM, Ted Kord <teddy.kord@...287...> wrote:
Hi
How do I make the tick size bigger as in thicker/bolder?
matplotlib.rc('ytick.major', size=5) makes it longer but 'not' thicker.
Ted
--
Gökhan
setp(xticks, markeredgewidth=4)
Ticks are markers.
Eric
On 10/18/2010 09:42 AM, Gökhan Sever wrote:
On Mon, Oct 18, 2010 at 12:46 PM, Ted Kord<teddy.kord@...287...> wrote:
Hi
How do I make the tick size bigger as in thicker/bolder?
matplotlib.rc('ytick.major', size=5) makes it longer but 'not' thicker.
Ted
I[1]: plt.plot(range(100))
O[1]: [<matplotlib.lines.Line2D object at 0xb84f8ec>]I[2]: xticks = getp(gca(), 'xticklines')
I[3]: xgrids = getp(gca(), 'xgridlines')
I[4]: setp(xgrids, linewidth=2)
O[4]: [None, None, None, None, None, None]I[5]: setp(xticks, linewidth=5)
O[55]: [None, None, None, None, None, None, None, None, None, None, None, None]
Good catch. Thanks for the fix.
On Mon, Oct 18, 2010 at 5:36 PM, Eric Firing <efiring@...202...> wrote:
setp(xticks, markeredgewidth=4)
Ticks are markers.
Eric
--
Gökhan
Thanks all. That fixed the problem.
Ted
On 19 October 2010 00:02, Gökhan Sever <gokhansever@…287…> wrote:
On Mon, Oct 18, 2010 at 5:36 PM, Eric Firing <efiring@…202…> wrote:
setp(xticks, markeredgewidth=4)
Ticks are markers.
Eric
Good catch. Thanks for the fix.
–
Gökhan
Download new Adobe(R) Flash(R) Builder™ 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder™ 4 (formerly
Flex(R) Builder™) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users