Fixed documentation for 'uver/under' in DockArea
Configure matplotlib to use PySide in MatplotlibWidget
This commit is contained in:
parent
ee0825d677
commit
7a7288b6b3
@ -2,10 +2,16 @@ PyQtGraph - A pure-Python graphics library for PyQt/PySide
|
||||
Copyright 2012 Luke Campagnola, University of North Carolina at Chapel Hill
|
||||
http://www.pyqtgraph.org
|
||||
|
||||
Authors:
|
||||
Maintainer:
|
||||
Luke Campagnola ('luke.campagnola@%s.com' % 'gmail')
|
||||
|
||||
Contributors:
|
||||
Megan Kratz
|
||||
Paul Manis
|
||||
Ingo Breßler
|
||||
Christian Gavin
|
||||
Michael Cristopher Hogg
|
||||
Ulrich Leutner
|
||||
|
||||
Requirements:
|
||||
PyQt 4.7+ or PySide
|
||||
|
@ -40,11 +40,11 @@ class DockArea(Container, QtGui.QWidget, DockDrop):
|
||||
Arguments:
|
||||
dock The new Dock object to add. If None, then a new Dock will be
|
||||
created.
|
||||
position 'bottom', 'top', 'left', 'right', 'over', or 'under'
|
||||
position 'bottom', 'top', 'left', 'right', 'above', or 'below'
|
||||
relativeTo If relativeTo is None, then the new Dock is added to fill an
|
||||
entire edge of the window. If relativeTo is another Dock, then
|
||||
the new Dock is placed adjacent to it (or in a tabbed
|
||||
configuration for 'over' and 'under').
|
||||
configuration for 'above' and 'below').
|
||||
=========== =================================================================
|
||||
|
||||
All extra keyword arguments are passed to Dock.__init__() if *dock* is
|
||||
@ -316,4 +316,4 @@ class DockArea(Container, QtGui.QWidget, DockDrop):
|
||||
DockDrop.dropEvent(self, *args)
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,5 +1,9 @@
|
||||
from pyqtgraph.Qt import QtGui, QtCore
|
||||
from pyqtgraph.Qt import QtGui, QtCore, USE_PYSIDE
|
||||
import matplotlib
|
||||
|
||||
if USE_PYSIDE:
|
||||
matplotlib.rcParams['backend.qt4']='PySide'
|
||||
|
||||
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
|
||||
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg as NavigationToolbar
|
||||
from matplotlib.figure import Figure
|
||||
|
Loading…
Reference in New Issue
Block a user