[Matplotlib-users] font for errorbar plot

2013-05-30 Thread Sudheer Joseph
Dear Users,
    Is there a way to set font size of error bar plot axis? I tried 
below one but get error that "'ErrorbarContainer' object has no attribute 
'xaxis'"
any help??

ax=plt.errorbar(y,x,err,label='STDV')
plt.xlim(0,110)
for tick in ax.xaxis.get_major_ticks():
    tick.label.set_fontsize(14)

 
***
Sudheer Joseph 
Indian National Centre for Ocean Information Services
Ministry of Earth Sciences, Govt. of India
POST BOX NO: 21, IDA Jeedeemetla P.O.
Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55
Tel:+91-40-23886047(O),Fax:+91-40-23895011(O),
Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile)
E-mail:[email protected];[email protected]
Web- http://oppamthadathil.tripod.com
***--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] font for errorbar plot

2013-05-30 Thread Paul Hobson
On Thu, May 30, 2013 at 6:28 PM, Sudheer Joseph wrote:

> Dear Users,
> Is there a way to set font size of error bar plot axis? I
> tried below one but get error that "'ErrorbarContainer' object has no
> attribute 'xaxis'"
> any help??
>
> ax=plt.errorbar(y,x,err,label='STDV')
> plt.xlim(0,110)
> for tick in ax.xaxis.get_major_ticks():
> tick.label.set_fontsize(14)
>
>
Use ax.tick_params (
http://matplotlib.org/api/axes_api.html?highlight=tick_params#matplotlib.axes.Axes.tick_params
).

Hope that helps,
-paul
--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] font for errorbar plot

2013-05-30 Thread Eric Firing
On 2013/05/30 3:42 PM, Paul Hobson wrote:
>
>
>
> On Thu, May 30, 2013 at 6:28 PM, Sudheer Joseph
> mailto:[email protected]>> wrote:
>
> Dear Users,
>  Is there a way to set font size of error bar plot
> axis? I tried below one but get error that "'ErrorbarContainer'
> object has no attribute 'xaxis'"
> any help??
>

Paul is correct ("plt.tick_params(labelsize=14)"), but in addition, the 
error you are making is that errorbar does not return an Axes.  To get a 
reference to the Axes you could follow the call to plt.errorbar() with 
"ax = plt.gca()".

> ax=plt.errorbar(y,x,err,label='STDV')
> plt.xlim(0,110)
> for tick in ax.xaxis.get_major_ticks():
>  tick.label.set_fontsize(14)
>
>
> Use ax.tick_params
> (http://matplotlib.org/api/axes_api.html?highlight=tick_params#matplotlib.axes.Axes.tick_params).
>
> Hope that helps,
> -paul
>
>
>
> --
> Get 100% visibility into Java/.NET code with AppDynamics Lite
> It's a free troubleshooting tool designed for production
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap2
>
>
>
> ___
> Matplotlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>


--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
___
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users