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

Skip to content

Commit b1d3d91

Browse files
committed
fixed collection demo to remove deprecated dpi
svn path=/trunk/matplotlib/; revision=5401
1 parent e5584d1 commit b1d3d91

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

doc/_static/toolbar.png

5.6 KB
Loading

doc/users/navigation_toolbar.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
Interactive navigation
44
======================
55

6+
.. image:: ../_static/toolbar.png
7+
:scale: 100
8+
69
All figure windows come with a navigation toolbar, which can be used
710
to navigate through the data set. Here is a description of each of
811
the buttons at the bottom of the toolbar

examples/api/collections_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686

8787
a = fig.add_subplot(2,2,3)
8888

89-
col = collections.RegularPolyCollection(fig.dpi, 7,
89+
col = collections.RegularPolyCollection(7,
9090
sizes = N.fabs(xx)*10.0, offsets=xyo,
9191
transOffset=a.transData)
9292
trans = transforms.Affine2D().scale(fig.dpi/72.0)

0 commit comments

Comments
 (0)