Hi there,
I'm in trouble two axes are apart from each other.
Please check it and let me know.
[image: pygraph.jpg]
And the code is below.
# layout
w = pg.PlotWidget(title='Basic Plot')
self.vl_Graph.addWidget(w)
# data
x = [0, 1, 2, 3, 4]
y = [0, 1, 2, 3, 4]
# style
w.setBackground('w')
w.setTitle('Title')
w.setLabel('left', 'y-axis')
w.setLabel('bottom', 'x-axis')
w.showGrid(x=True, y=True)
w.addLegend()
# w.setXRange(0, 10, padding=0)
# plot
w.plot(x, y, pen=pg.mkPen('r'), name='default plot', skipFiniteCheck=True)
Thanks.
--
You received this message because you are subscribed to the Google Groups
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyqtgraph/123c5804-610a-41e2-9b34-e64d7187222fn%40googlegroups.com.