On Tue, Aug 4, 2009 at 8:16 AM, Pim
Schellart<p.schell...@student.science.ru.nl> wrote:

> 1. option to force display of the full number on each tick (with the
> option to display the numbers at an angle to prevent overlapping).

This is controlled by the "set_scientific" method of the ScalarFormatter

  
http://matplotlib.sourceforge.net/api/ticker_api.html#matplotlib.ticker.ScalarFormatter

For example::

    In [101]: ax = gca()

    In [102]: ax.plot(np.arange(10)*2e20)
    Out[102]: [<matplotlib.lines.Line2D object at 0x99532ac>]

    In [103]: draw()

    In [104]: formatter = ax.yaxis.get_major_formatter()

    In [105]: formatter.set_scientific(False)

    In [106]: draw()

> 2. option to specify the number to be subtracted manually (to make it
> a round number).

I don't think there is support for this, but it would be a nice feature::

  http://matplotlib.sourceforge.net/faq/howto_faq.html#contributing-howto

> 3. option to specify the precision or scientific notation of both the
> ticks and the number to be added.

You can control at what level the fallover to scientific notation
occurs with the set_power_limits method of the formatter::

  
http://matplotlib.sourceforge.net/api/ticker_api.html#matplotlib.ticker.ScalarFormatter.set_powerlimits

This is also exposed as an rc param::

   axes.formatter.limits : -7, 7 # use scientific notation if log10
                                          # of the axis range is
smaller than the
                                          # first or larger than the second

See http://matplotlib.sourceforge.net/users/customizing.html

Hope this helps!
JDH

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to