Plot -- 画板
QwtPlot is a widget for plotting two-dimensional graphs. An unlimited number of plot items can be displayed on its canvas. Plot items might be curves (QwtPlotCurve), markers (QwtPlotMarker), the grid (QwtPlotGrid), or anything else derived from QwtPlotItem. A plot can have up to four axes, with each plot item attached to an x- and a y axis. The scales at the axes can be explicitely set (QwtScaleDiv), or are calculated from the plot items, using algorithms (QwtScaleEngine) which can be configured separately for each axis.
Plot拥有4个axes(轴线),
元素:
QwtPlotCurve -- 曲线
QwtPlotMarker -- 标记
QwtPlotGrid -- 网格
QwtPlotHistogram -- 直方图
或者从QwtPlotItem继承
相关类
QwtPlotItem -- plot能显示的类,如果想要实现自己绘画图形,要继承此类实现rtti和draw接口
QwtPlotPanner -- 平移器 (用鼠标左键平移)
QwtPlotMagnifier -- 放大器 (用鼠标滚轮缩放)
QwtPlotCanvas -- 画布
QwtScaleMap -- 比例图---可以提供一个逻辑区域到实际区域的坐标转换
QwtScaleWidget -- 比例窗口
QwtScaleDiv -- 比例布局
QwtLegent -- 标注
QwtPlotLayout -- 布局管理器
QwtScaleDraw -- 自画坐标轴
实现接口 label
QwtPlot is a widget for plotting two-dimensional graphs. An unlimited number of plot items can be displayed on its canvas. Plot items might be curves (QwtPlotCurve), markers (QwtPlotMarker), the grid (QwtPlotGrid), or anything else derived from QwtPlotItem. A plot can have up to four axes, with each plot item attached to an x- and a y axis. The scales at the axes can be explicitely set (QwtScaleDiv), or are calculated from the plot items, using algorithms (QwtScaleEngine) which can be configured separately for each axis.
Plot拥有4个axes(轴线),
元素:
QwtPlotCurve -- 曲线
QwtPlotMarker -- 标记
QwtPlotGrid -- 网格
QwtPlotHistogram -- 直方图
或者从QwtPlotItem继承
相关类
QwtPlotItem -- plot能显示的类,如果想要实现自己绘画图形,要继承此类实现rtti和draw接口
QwtPlotPanner -- 平移器 (用鼠标左键平移)
QwtPlotMagnifier -- 放大器 (用鼠标滚轮缩放)
QwtPlotCanvas -- 画布
QwtScaleMap -- 比例图---可以提供一个逻辑区域到实际区域的坐标转换
QwtScaleWidget -- 比例窗口
QwtScaleDiv -- 比例布局
QwtLegent -- 标注
QwtPlotLayout -- 布局管理器
QwtScaleDraw -- 自画坐标轴
实现接口 label
常用函数接口
setAxisTitle --设置轴标题
enableAxis --主要是显示xTop,yRight坐标轴
setAxisMaxMajor --
setAxisMaxMinor -- 以上两个暂时不知道是什么意思,但是能理解效果
setAxisScaleEngine --同样不知道作什么用的,但是在例子bode中能看见效果
insertLegend -- 添加图例(标注)
QwtPlotCure -- 曲线
常见接口
setRenderHint --设置渲染样式
setPen --设置画笔颜色
setLegendAttribute --设置标注
setYAxis --设置Y轴
setSample
相关类
QwtSeriesDate --数据
size()
sample()
boundingRect()现在还不知道他的实现有什么意思!
QwtPlotHistogram -- 直方图
常见接口
setColor
setStyle
setSymbol
setSample
相关类
QwtColumnSymbol
QwtInterval
QwtIntervalSample