Equivalent of Axes.set_ylim(bottom=0) in pyqtgraph?

33 views
Skip to first unread message

William Holden

unread,
Apr 22, 2021, 7:10:54 PM4/22/21
to pyqtgraph
I was looking for a way to set the bottom of the yrange to 0 permanently, but let the top auto-scale to the data as the data is updated.

In matplotlib, "bottom" and "top" can be set independently:
e.g. matplotlib.axes.Axes.set_ylim(bottom=0)

In pyqtgraph I found setYRange(min, max), but you have to specify both. Is there perhaps a simple workaround to only specify the bottom of the yrange, but allow the max to autoscale?

William Holden

unread,
Apr 22, 2021, 7:18:40 PM4/22/21
to pyqtgraph
Apologies for the duplicate question, I had searched for it but not with the proper keyword. I will refer to the post with subject " autoscale ymax only"
Reply all
Reply to author
Forward
0 new messages