File: ViewLimits.py

package info (click to toggle)
python-pyqtgraph 0.13.7-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 8,068 kB
  • sloc: python: 54,043; makefile: 129; ansic: 40; sh: 2
file content (9 lines) | stat: -rw-r--r-- 235 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
import numpy as np

import pyqtgraph as pg

plt = pg.plot(np.random.normal(size=100), title="View limit example")
plt.centralWidget.vb.setLimits(xMin=-20, xMax=120, minXRange=5, maxXRange=100)

if __name__ == '__main__':
    pg.exec()