-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Code to reproduce
import pyqtgraph as pg
pg.mkQApp()
p1 = pg.plot([1,2])
ax2 = pg.AxisItem("right")
p1.addItem(ax2)
pg.QAPP.exec_()Expected behavior
You should be able to add an AxisItem to a PlotItem
Real behavior
Traceback (most recent call last):
File "/home/vieler/issue.py", line 8, in <module>
p1.addItem(ax2)
File "/home/vieler/.virtualenvs/general/lib/python3.7/site-packages/pyqtgraph/graphicsItems/PlotItem/PlotItem.py", line 526, in addItem
item.setLogMode(self.ctrl.logXCheck.isChecked(), self.ctrl.logYCheck.isChecked())
TypeError: setLogMode() takes 2 positional arguments but 3 were given
Tested environment(s)
- PyQtGraph version: 0.10.0
- Qt Python binding: PyQt5 5.12.1 Qt 5.12.2
- Python version: 3.7.3
- NumPy version: 1.16.4
- Operating system: Arch Linux x64
- Installation method: pip
Reactions are currently unavailable