[Matplotlib-users] tick sizes

2011-07-28 Thread Andre' Walker-Loud
Hi All, I am trying to modify tick sizes and labels. Reading documents and examples, I have found an easy way to modify the labels, import matplotlib.pyplot as plt ax = plt.axes() font_size = 24 plt.setp(ax.get_xticklabels(),fontsize=font_size) but I am struggling to find such a nice

Re: [Matplotlib-users] tick sizes

2011-07-28 Thread Ben Breslauer
Hi Andre, You should be able to set the size with the following: params = {'length': 10} axis = plt.axes().xaxis axis.set_tick_params(which='major', **params) You can also use 'minor' instead of 'major' to set the minor ticks. There are a number of different valid values for the params dict,

Re: [Matplotlib-users] tick sizes

2011-07-28 Thread Andre' Walker-Loud
Hi Ben, Would you expect this to work on Matplotlib 0.99.3? I get the following error AttributeError: 'XAxis' object has no attribute 'set_tick_params' Thanks, Andre On Jul 28, 2011, at 12:18 PM, Ben Breslauer wrote: Hi Andre, You should be able to set the size with the following:

Re: [Matplotlib-users] tick sizes

2011-07-28 Thread Ben Breslauer
Hmm, no, it looks like the tick_params were added in 1.0. I can also get it to work using plt.setp(ax.xaxis.get_ticklines(minor=False), markersize=10) but I'm using matplotlib 1.0.1. I'm not sure if neither of those solutions work. Ben On Thu, Jul 28, 2011 at 3:30 PM, Andre' Walker-Loud

Re: [Matplotlib-users] tick sizes

2011-07-28 Thread Andre' Walker-Loud
well I knew there was a better solution, thanks. I guess I'll just have to upgrade my installation. Andre On Jul 28, 2011, at 12:44 PM, Ben Breslauer wrote: Hmm, no, it looks like the tick_params were added in 1.0. I can also get it to work using

[Matplotlib-users] Using comma as decimal separator

2011-07-28 Thread José Alexandre Nalon
Hello, Sorry if this question was answered before. I did a search in the mailing list archives but couldn't find any answer. Is there an easy way to use comma as a decimal separator in texts, especially in tick labels? I know that it is possible to user formatters to do that, but I was

[Matplotlib-users] Small tutorial omission

2011-07-28 Thread Joseph Costlow
This is a small omission, and I think most people would figure it out, but I thought it might be worth mentioning: Page: http://matplotlib.sourceforge.net/users/pyplot_tutorial.html#working-with-multiple-figures-and-axes The code example, both on the page, and the link is missing: plt.show()