On 02/04/2010 02:02 AM, Sourav K. Mandal wrote:
> On Wed, 2010-02-03 at 22:04 -0800, Michael Cohen wrote:
>
>>> One of the most persistent problems I have with matplotlib is finding
>>> out which kwargs and args are available for some commands.
>>> For instance, I am looking at manipulating axis ticks and labels in
>>> mplot3d, so I went to the mplot3d api page, and looked for useful
>>> commands and found:
>>>
>>> set_xlabel(xlabel, fontdict=None, **kwargs)¶
>>>        Set xlabel.
>>>
>>> set_xlim3d(*args, **kwargs)¶
>>>        Set 3D x limits.
>>>
>>> However, there is no information that I can find about "args" and
>>> "kwargs" that I can use to figure out how to make my changes.
>
> Don't these unbound methods just take the same arguments as the bound
> methods "xlabels" and "xlim", as given in
>
> http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.xlabel
>
> and
>
> http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.xlim
>
> ?
>

Ok, then I guess I am still not seeing how to accomplish what I'm 
looking to do.
I have a yaxis which has ticks every 0.2, and I need it to be every 0.4.
which function do I use to change that?  Can I use that function to 
change the font size of the tick labels?
It turns out there's an (undocumented) function called set_xticks in the 
mplot3d api (I deduced its existence from the existence of xticks in 
pyplot) but I'm not sure how to work it.  I thought it would set the 
values to place the tickmarks at, so I tried:
ax.set_xticks([-0.4,0.0,0.4,0.8])
but that just squashed up the plot.

I also need to move the labels around on the 3d plot so they can be 
clearly seen in the figure.  How can I tell the axis label where to be 
in reference to the axis itself?

Cheers
Michael

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to