Skip to content
Snippets Groups Projects
Commit 0dedb857 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Clean MatplotlibWidget

parent 803281f2
No related branches found
No related tags found
No related merge requests found
from matplotlib.figure import Figure
import matplotlib.pyplot as plt
from pythonqt.matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg, NavigationToolbar2QT
from PythonQt import QtGui, Qt
from gepetto.corbaserver import Client
import numpy as np
from PythonQt.QtGui import QWidget, QVBoxLayout
### Python QWidget that allows to draw matplotlib figures within the interface.
###
### Create an instance and populate member MatplotlibWidget.figure.
class MatplotlibWidget (QtGui.QWidget):
class MatplotlibWidget (QWidget):
def __init__(self, parent, withToolbar = False):
super(MatplotlibWidget, self).__init__ (parent)
box = QtGui.QVBoxLayout(self)
box = QVBoxLayout(self)
## The matplotlib figure
self.figure = Figure(figsize=(5,5), dpi=96)
## The figure canvas
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment