SourceForge logo
SourceForge logo
Menu

matplotlib-checkins

Revision: 3714
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3714&view=rev
Author: dsdale
Date: 2007年08月16日 14:57:58 -0700 (2007年8月16日)
Log Message:
-----------
revert changes that cause embedding_in_qt4 to fail
Modified Paths:
--------------
 trunk/matplotlib/examples/embedding_in_qt4.py
Modified: trunk/matplotlib/examples/embedding_in_qt4.py
===================================================================
--- trunk/matplotlib/examples/embedding_in_qt4.py	2007年08月16日 21:48:52 UTC (rev 3713)
+++ trunk/matplotlib/examples/embedding_in_qt4.py	2007年08月16日 21:57:58 UTC (rev 3714)
@@ -64,13 +64,11 @@
 
 def compute_initial_figure(self):
 self.axes.plot([0, 1, 2, 3], [1, 2, 0, 4], 'r')
- self.axes.set_yscale('log')
 
 def update_figure(self):
 # Build a list of 4 random integers between 0 and 10 (both inclusive)
 l = [ random.randint(0, 10) for i in xrange(4) ]
 
- l[l<=0]=1
 self.axes.plot([0, 1, 2, 3], l, 'r')
 self.draw()
 
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 5115
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5115&view=rev
Author: dsdale
Date: 2008年05月05日 11:54:59 -0700 (2008年5月05日)
Log Message:
-----------
minor fix to embedding_in_qt4 demo
Modified Paths:
--------------
 trunk/matplotlib/examples/embedding_in_qt4.py
Modified: trunk/matplotlib/examples/embedding_in_qt4.py
===================================================================
--- trunk/matplotlib/examples/embedding_in_qt4.py	2008年05月05日 17:06:08 UTC (rev 5114)
+++ trunk/matplotlib/examples/embedding_in_qt4.py	2008年05月05日 18:54:59 UTC (rev 5115)
@@ -23,14 +23,15 @@
 class MyMplCanvas(FigureCanvas):
 """Ultimately, this is a QWidget (as well as a FigureCanvasAgg, etc.)."""
 def __init__(self, parent=None, width=5, height=4, dpi=100):
- self.fig = Figure(figsize=(width, height), dpi=dpi)
- self.axes = self.fig.add_subplot(111)
+ fig = Figure(figsize=(width, height), dpi=dpi)
+ self.axes = fig.add_subplot(111)
 # We want the axes cleared every time plot() is called
 self.axes.hold(False)
 
 self.compute_initial_figure()
 
- FigureCanvas.__init__(self, self.fig)
+ #
+ FigureCanvas.__init__(self, fig)
 self.setParent(parent)
 
 FigureCanvas.setSizePolicy(self,
@@ -38,14 +39,10 @@
 QtGui.QSizePolicy.Expanding)
 FigureCanvas.updateGeometry(self)
 
- def sizeHint(self):
- w, h = self.get_width_height()
- return QtCore.QSize(w, h)
+ def compute_initial_figure(self):
+ pass
 
- def minimumSizeHint(self):
- return QtCore.QSize(10, 10)
 
-
 class MyStaticMplCanvas(MyMplCanvas):
 """Simple canvas with a sine plot."""
 def compute_initial_figure(self):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /