Some questions about text

Hi Everyone,

I have been using matplotlib for quite some time now.
However I have a few questions regarding the handling of text in title
and axis labels.
When creating an image using subplot the title and axis label text
tends to overlap.
Is there an option to prevent this.
Of course one can do this manually but this requires inspection of the
image and adjustment.
It would be very helpful if this is done automatically (even better
when it would be the default option).
Furthermore the x-, y-axis ticks are automatically displayed with some
part stripped which is displayed separately as a number to be added.
I would really like to have the following options.
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).
2. option to specify the number to be subtracted manually (to make it
a round number).
3. option to specify the precision or scientific notation of both the
ticks and the number to be added.
Is this currently possible?
And if not would you be willing to add these options?
In my humble opinion the first option should at least be part of the
pyplot commands as it is needed often by me and my colleagues.

Kind regards,

Pim Schellart

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

···

On Tue, Aug 4, 2009 at 8:16 AM, Pim Schellart<P.Schellart@...2547...> wrote: