Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4dcb9a8

Browse files
committed
Merged revisions 7981 via svnmerge from
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_99_maint ........ r7981 | jdh2358 | 2009-11-23 13:16:15 -0800 (Mon, 23 Nov 2009) | 1 line make IndexFormatter derive from Formatter ........ svn path=/trunk/matplotlib/; revision=7982
1 parent 78ef1df commit 4dcb9a8

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

doc/_templates/indexsidebar.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ <h3>News</h3>
44
<p>Please <a href="http://sourceforge.net/project/project_donations.php?group_id=80706">donate</a>
55
to support matplotlib development.</p>
66

7-
<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>.
8-
</p>
97

10-
<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="{{
8+
<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="{{
119
pathto('users/installing') }}">installing</a>
1210
</p>
1311

doc/users/image_tutorial.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ image data, we use the :func:`~matplotlib.pyplot.hist` function.
274274

275275
.. sourcecode:: ipython
276276

277-
In[10]: plt.hist(lum_img)
277+
In[10]: plt.hist(lum_img.flatten(), 256, range=(0.0,1.0), fc='k', ec='k')
278278

279279
.. plot::
280280

@@ -283,7 +283,7 @@ image data, we use the :func:`~matplotlib.pyplot.hist` function.
283283
import numpy as np
284284
img = mpimg.imread('_static/stinkbug.png')
285285
lum_img = img[:,:,0]
286-
plt.hist(lum_img, range=(0.0,1.0))
286+
plt.hist(lum_img.flatten(), 256, range=(0.0,1.0), fc='black', ec='black')
287287

288288
Most often, the "interesting" part of the image is around the peak,
289289
and you can get extra contrast by clipping the regions above and/or

0 commit comments

Comments
 (0)