On Tue, Sep 15, 2009 at 1:24 AM, redrum <jvande...@hotmail.com> wrote:

>
> Hi,
>
> I have a few questions about the loglog plot :
>
> 1- Is there a way to a have axis format with real numbers rather than
> numbers with exponent ?
>
>
import matplotlib.pyplot as plt
ax1 = plt.gca()
ax1.yaxis.set_major_formatter(ticker.FormatStrFormatter("%.2f"))

You can check formatting options from
http://docs.python.org/library/stdtypes.html#string-formatting-operations




> 2- I would like to have a grid not only for 10^2, 10^3, 10^4, 10^5 ... but
> also for the minor axis ticks. is it possible ?
>

You can use plt.yticks() to get new ticks as well as grids. Do you know how
to make ticklabels like 5x10^2 etc...? This I couldn't figure yet.



> 3- I use loglog to plot parallel lines. How can I have the function label
> directly displaid next to the plotted straight lines ?
>
> Thanks for your tips.
>

plt.text and some fine-tuning?

-- 
Gökhan
------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to