Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gepetto-viewer-corba
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gepetto
gepetto-viewer-corba
Commits
0dedb857
Commit
0dedb857
authored
7 years ago
by
Joseph Mirabel
Committed by
Joseph Mirabel
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Clean MatplotlibWidget
parent
803281f2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyplugins/gepetto/gui/matplotlibwidget.py
+3
-8
3 additions, 8 deletions
pyplugins/gepetto/gui/matplotlibwidget.py
with
3 additions
and
8 deletions
pyplugins/gepetto/gui/matplotlibwidget.py
+
3
−
8
View file @
0dedb857
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment