Revision: 5894
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5894&view=rev
Author: jdh2358
Date: 2008-07-26 23:11:54 +0000 (Sat, 26 Jul 2008)
Log Message:
-----------
fixed a couple of examples
Modified Paths:
--------------
trunk/matplotlib/examples/pylab_examples/barcode_demo.py
trunk/matplotlib/examples/tests/backend_driver.py
trunk/matplotlib/lib/matplotlib/backends/backend_wxagg.py
Modified: trunk/matplotlib/examples/pylab_examples/barcode_demo.py
===================================================================
--- trunk/matplotlib/examples/pylab_examples/barcode_demo.py 2008-07-26
22:23:06 UTC (rev 5893)
+++ trunk/matplotlib/examples/pylab_examples/barcode_demo.py 2008-07-26
23:11:54 UTC (rev 5894)
@@ -15,6 +15,7 @@
ax = fig.add_axes([0.1, 0.3, 0.1, 0.6], **axprops)
ax.imshow(x, **barprops)
+x = x.copy()
# a horizontal barcode
x.shape = 1, len(x)
ax = fig.add_axes([0.3, 0.1, 0.6, 0.1], **axprops)
Modified: trunk/matplotlib/examples/tests/backend_driver.py
===================================================================
--- trunk/matplotlib/examples/tests/backend_driver.py 2008-07-26 22:23:06 UTC
(rev 5893)
+++ trunk/matplotlib/examples/tests/backend_driver.py 2008-07-26 23:11:54 UTC
(rev 5894)
@@ -34,6 +34,7 @@
'bar_stacked.py',
'barchart_demo.py',
'barb_demo.py',
+ 'barcode_demo.py ',
'boxplot_demo.py',
'broken_barh.py',
'barh_demo.py',
Modified: trunk/matplotlib/lib/matplotlib/backends/backend_wxagg.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_wxagg.py 2008-07-26
22:23:06 UTC (rev 5893)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_wxagg.py 2008-07-26
23:11:54 UTC (rev 5894)
@@ -41,7 +41,7 @@
toolbar = None
return toolbar
-class FigureCanvasWxAgg(FigureCanvasWx, FigureCanvasAgg):
+class FigureCanvasWxAgg(FigureCanvasAgg, FigureCanvasWx):
"""
The FigureCanvas contains the figure and does event handling.
@@ -95,11 +95,11 @@
self.gui_repaint()
filetypes = FigureCanvasAgg.filetypes
-
+
def print_figure(self, filename, *args, **kwargs):
FigureCanvasAgg.print_figure(self, filename, *args, **kwargs)
self.draw()
-
+
class NavigationToolbar2WxAgg(NavigationToolbar2Wx):
def get_canvas(self, frame, fig):
return FigureCanvasWxAgg(frame, -1, fig)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins