pyqtgraph
0.12.4
Introduction
Mouse Interaction
How to use pyqtgraph
Installation
Qt Crash Course
Plotting in pyqtgraph
Displaying images and video
3D Graphics
Line, Fill, and Color
Interactive Data Selection Controls
Exporting
Rapid GUI prototyping
Parameter Trees
Visual Programming with Flowcharts
Internals - Extensions to Qt’s GraphicsView
API Reference
Global Configuration Options
PyQtGraph’s Helper Functions
PyQtGraph’s Graphics Items
PlotDataItem
PlotItem
ImageItem
ColorBarItem
PColorMeshItem
GraphItem
ViewBox
LinearRegionItem
InfiniteLine
ROI
GraphicsLayout
MultiPlotItem
PlotCurveItem
ScatterPlotItem
IsocurveItem
AxisItem
TextItem
ErrorBarItem
BarGraphItem
ArrowItem
FillBetweenItem
CurvePoint
CurveArrow
GridItem
ScaleBar
ScaleBar
LabelItem
VTickGroup
LegendItem
GradientEditorItem
TickSliderItem
HistogramLUTItem
GradientLegend
ButtonItem
GraphicsObject
GraphicsWidget
GraphicsItem
UIGraphicsItem
GraphicsWidgetAnchor
DateAxisItem
TargetItem
TargetLabel
PyQtGraph’s Widgets
PyQtGraph’s 3D Graphics System
Color Maps
ParameterTree API Reference
Dock Area Module
GraphicsScene and Mouse Events
Visual Programming with Flowcharts
Deprecated Window Classes
pyqtgraph
API Reference
PyQtGraph’s Graphics Items
ScaleBar
View page source
ScaleBar
class
pyqtgraph.
ScaleBar
(
size
,
width
=
5
,
brush
=
None
,
pen
=
None
,
suffix
=
'm'
,
offset
=
None
)
[source]
Displays a rectangular bar to indicate the relative scale of objects on the view.
__init__
(
size
,
width
=
5
,
brush
=
None
,
pen
=
None
,
suffix
=
'm'
,
offset
=
None
)
[source]