On Wednesday 09 September 2009 17:10:43 Jorge Scandaliaris wrote:
> Hi,
> I think I found a bug, but I am not sure if it's in the doc or in a method
> name. In the doc, there is reference to a method *suptitle* in class
> mpl.figure.Figure. The name sounds strange, but the method exists and
> works. The example given, though, makes reference to *subtitle*, so either
> the example or the method name are wrong. Here's the link to the doc:
> http://matplotlib.sourceforge.net/api/figure_api.html?highlight=legend#matp
>lotlib.figure.Figure.suptitle
>
> jorge
Hi list,
I can confirm this difference for current SVN (Last Changed Rev: 7802, see
attachement), too.
Maybe some of the developers could correct the subtle error.
Kind regards,
Matthias
$ svn info
Path: .
URL: https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib
Repository Root: https://matplotlib.svn.sourceforge.net/svnroot/matplotlib
Repository UUID: f61c4167-ca0d-0410-bb4a-bb21726e55ed
Revision: 7802
Node Kind: directory
Schedule: normal
Last Changed Author: jdh2358
Last Changed Rev: 7802
Last Changed Date: 2009-09-21 00:10:07 +0200 (Mon, 21 Sep 2009)
SUBTITLE :
-----------
./lib/matplotlib/figure.py:303: fig.subtitle('this is the figure
title', fontsize=12)
./build/lib.linux-i686-2.5/matplotlib/figure.py:302:
fig.subtitle('this is the figure title', fontsize=12)
SUPTITLE :
-----------
./doc/pyplots/text_commands.py:5:fig.suptitle('bold figure suptitle',
fontsize=14, fontweight='bold')
./lib/matplotlib/pyplot.py:392:@docstring.copy_dedent(Figure.suptitle)
./lib/matplotlib/pyplot.py:393:def suptitle(*args, **kwargs):
./lib/matplotlib/pyplot.py:394: ret = gcf().suptitle(*args, **kwargs)
./lib/matplotlib/pylab.py:83: suptitle - add a figure title
./lib/matplotlib/figure.py:280: def suptitle(self, t, **kwargs):
./examples/event_handling/figure_axes_enter_leave.py:28:fig1.suptitle('mouse
hover over figure or axes to trigger events')
./examples/event_handling/figure_axes_enter_leave.py:38:fig2.suptitle('mouse
hover over figure or axes to trigger events')
./examples/pylab_examples/custom_cmap.py:165:plt.suptitle('Custom Blue-Red
colormaps')
./examples/pylab_examples/figure_title.py:19:suptitle('This is a somewhat long
figure title', fontsize=16)
./examples/pylab_examples/image_nonuniform.py:20:fig.suptitle('NonUniformImage
class')
./build/lib.linux-i686-2.5/matplotlib/pyplot.py:398:def suptitle(*args,
**kwargs):
./build/lib.linux-i686-2.5/matplotlib/pyplot.py:399: ret =
gcf().suptitle(*args, **kwargs)
./build/lib.linux-i686-2.5/matplotlib/pyplot.py:402:if Figure.suptitle.__doc__
is not None:
./build/lib.linux-i686-2.5/matplotlib/pyplot.py:403: suptitle.__doc__ =
dedent(Figure.suptitle.__doc__)
./build/lib.linux-i686-2.5/matplotlib/pylab.py:83: suptitle - add a figure
title
./build/lib.linux-i686-2.5/matplotlib/figure.py:279: def suptitle(self, t,
**kwargs):
------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users