Revision: 7981
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7981&view=rev
Author: jdh2358
Date: 2009-11-23 21:16:15 +0000 (Mon, 23 Nov 2009)
Log Message:
-----------
make IndexFormatter derive from Formatter
Modified Paths:
--------------
branches/v0_99_maint/doc/_templates/indexsidebar.html
branches/v0_99_maint/doc/users/image_tutorial.rst
branches/v0_99_maint/lib/matplotlib/ticker.py
Modified: branches/v0_99_maint/doc/_templates/indexsidebar.html
===================================================================
--- branches/v0_99_maint/doc/_templates/indexsidebar.html 2009-11-23
20:26:44 UTC (rev 7980)
+++ branches/v0_99_maint/doc/_templates/indexsidebar.html 2009-11-23
21:16:15 UTC (rev 7981)
@@ -3,10 +3,8 @@
<p>Please <a
href="http://sourceforge.net/project/project_donations.php?group_id=80706">donate</a>
to support matplotlib development.</p>
-<p>We have a release candidate of matplotlib 0.99.1 <a
href="http://drop.io/xortel1">available</a> for testing. Please report any
problems on the <a
href="http://sourceforge.net/tracker2/?group_id=80706">tracker</a> and <a
href="http://sourceforge.net/mail/?group_id=80706">mailing list</a>.
-</p>
-<p>matplotlib 0.99.0 is available for <a
href="http://sourceforge.net/projects/matplotlib">download</a>. See <a
href="{{ pathto('users/whats_new') }}">what's new</a> and tips on <a href="{{
+<p>matplotlib 0.99.1 is available for <a
href="https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/">download</a>.
See <a href="{{ pathto('users/whats_new') }}">what's new</a> and tips on <a
href="{{
pathto('users/installing') }}">installing</a>
</p>
Modified: branches/v0_99_maint/doc/users/image_tutorial.rst
===================================================================
--- branches/v0_99_maint/doc/users/image_tutorial.rst 2009-11-23 20:26:44 UTC
(rev 7980)
+++ branches/v0_99_maint/doc/users/image_tutorial.rst 2009-11-23 21:16:15 UTC
(rev 7981)
@@ -274,7 +274,7 @@
.. sourcecode:: ipython
- In[10]: plt.hist(lum_img)
+ In[10]: plt.hist(lum_img.flatten(), 256, range=(0.0,1.0), fc='k', ec='k')
.. plot::
@@ -283,7 +283,7 @@
import numpy as np
img = mpimg.imread('_static/stinkbug.png')
lum_img = img[:,:,0]
- plt.hist(lum_img, range=(0.0,1.0))
+ plt.hist(lum_img.flatten(), 256, range=(0.0,1.0), fc='black', ec='black')
Most often, the "interesting" part of the image is around the peak,
and you can get extra contrast by clipping the regions above and/or
Modified: branches/v0_99_maint/lib/matplotlib/ticker.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/ticker.py 2009-11-23 20:26:44 UTC
(rev 7980)
+++ branches/v0_99_maint/lib/matplotlib/ticker.py 2009-11-23 21:16:15 UTC
(rev 7981)
@@ -206,7 +206,7 @@
"""
return s
-class IndexFormatter:
+class IndexFormatter(Formatter):
"""
format the position x to the nearest i-th label where i=int(x+0.5)
"""
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
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-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins