Python - Matplotlib

From Torben's Wiki
Jump to: navigation, search

http://matplotlib.sourceforge.net/classdocs.html

Von Thomas:

self.ax ist vom Typ matplotlib.axes
das heißt, es kennt den Befehl clf() nicht, dafür aber cla()

http://matplotlib.sourceforge.net/matplotlib.axes.html

def cleanIt (self):
  self.ax.cla() # loeschen des Graphen
  self.draw() # Fenster neu zeichnen

die Funktion xlabel() heißt hier übrigens: set_xlabel()

Personal tools