QWT-PLOT总结

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

常用函数接口


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


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值