Skip to content

Latest commit

 

History

History
100 lines (50 loc) · 2.27 KB

functions.rst

File metadata and controls

100 lines (50 loc) · 2.27 KB

Pyqtgraph's Helper Functions

Simple Data Display Functions

pyqtgraph.plot

pyqtgraph.image

pyqtgraph.dbg

Color, Pen, and Brush Functions

Qt uses the classes QColor, QPen, and QBrush to determine how to draw lines and fill shapes. These classes are highly capable but somewhat awkward to use. Pyqtgraph offers the functions ~pyqtgraph.mkColor, ~pyqtgraph.mkPen, and ~pyqtgraph.mkBrush to simplify the process of creating these classes. In most cases, however, it will be unnecessary to call these functions directly--any function or method that accepts pen or brush arguments will make use of these functions for you. For example, the following three lines all have the same effect:

pg.plot(xdata, ydata, pen='r')
pg.plot(xdata, ydata, pen=pg.mkPen('r'))
pg.plot(xdata, ydata, pen=QPen(QColor(255, 0, 0)))

pyqtgraph.mkColor

pyqtgraph.mkPen

pyqtgraph.mkBrush

pyqtgraph.hsvColor

pyqtgraph.intColor

pyqtgraph.colorTuple

pyqtgraph.colorStr

pyqtgraph.glColor

Data Slicing

pyqtgraph.affineSlice

Coordinate Transformation

pyqtgraph.transformToArray

pyqtgraph.transformCoordinates

pyqtgraph.solve3DTransform

pyqtgraph.solveBilinearTransform

SI Unit Conversion Functions

pyqtgraph.siFormat

pyqtgraph.siScale

pyqtgraph.siEval

Image Preparation Functions

pyqtgraph.makeARGB

pyqtgraph.makeQImage

pyqtgraph.applyLookupTable

pyqtgraph.rescaleData

pyqtgraph.imageToArray

Mesh Generation Functions

pyqtgraph.isocurve

pyqtgraph.isosurface

Miscellaneous Functions

pyqtgraph.pseudoScatter

pyqtgraph.systemInfo