Hello,
I am making an application that adds plots from data selected in a QListWidget.
Each time that I press plot, a new subplot is added to the GraphicsLayoutwidget
I define the axis configuration in this function:
def FormatAxis(self):
global frVec3rdOct
global frXAxis
global frYAxis
global rpmXAxis
global rpmYAxis
frXAxis=pg.AxisItem(orientation='bottom')
frYAxis=pg.AxisItem(orientation='left')
frXAxis.setLabel(text='Freq 1/3 Oct',units='Hz')
frYAxis.setLabel(text='SPL',units='dB(A)')
frXAxis.setGrid(255)
frYAxis.setGrid(255)
rpmXAxis=pg.AxisItem(orientation='bottom')
rpmYAxis=pg.AxisItem(orientation='left')
rpmXAxis.setLabel(text='Engine Speed',units='RPM')
rpmYAxis.setLabel(text='SPL',units='dB(A)')
rpmXAxis.setGrid(255)
rpmYAxis.setGrid(255)
And each time that I add a nex plot I do it in this way:
self.wm2=self.pg.GraphicsLayoutWidget.addPlot(row=1, col=0, title = 'Group 2',axisItems={'bottom':rpmXAxis,'left':rpmYAxis})
self.wm2.addLegend()
The strange behaviour is:
- It appears two small axes in the corner of the plots
- In some of them the grid is plotted, In some of the dont
- Some liked axis stop working (not all!)
- In the plots in log format the plot is replotted on top when I change from one tab to other...
Any ideas??? Is a bug or I am doing somethinh wrong??