Bugfix: don't create extra AxisItem when user provides them

Committed old changelog updates
This commit is contained in:
Luke Campagnola 2015-04-04 11:20:11 -04:00
parent 7ee37b93e2
commit 9df4df55c4
2 changed files with 10 additions and 3 deletions

View File

@ -3,12 +3,16 @@ pyqtgraph-0.9.11 [unreleased]
Bugfixes:
- Fixed git version string generation on python3
- Fixed setting default values for out-of-bound points in pg.interpolateArray
- Fixed adding Docks to DockArea after all Docks have been removed
- Fixed plot downsampling bug on python 3
- DockArea:
- Fixed adding Docks to DockArea after all Docks have been removed
- Fixed DockArea save/restoreState when area is empty
New Features:
- Preliminary PyQt5 support
- Dock titles can be changed
- DockArea:
- Dock titles can be changed after creation
- Added Dock.sigClosed
pyqtgraph-0.9.10

View File

@ -170,7 +170,10 @@ class PlotItem(GraphicsWidget):
axisItems = {}
self.axes = {}
for k, pos in (('top', (1,1)), ('bottom', (3,1)), ('left', (2,0)), ('right', (2,2))):
axis = axisItems.get(k, AxisItem(orientation=k, parent=self))
if k in axisItems:
axis = axisItems[k]
else:
axis = AxisItem(orientation=k, parent=self)
axis.linkToView(self.vb)
self.axes[k] = {'item': axis, 'pos': pos}
self.layout.addItem(axis, *pos)