Qcustomplot如何设置柱子多种颜色 您所在的位置:网站首页 条形图不同颜色怎么设置 Qcustomplot如何设置柱子多种颜色

Qcustomplot如何设置柱子多种颜色

2024-07-06 00:37| 来源: 网络整理| 查看: 265

Groups multiple QCPBars together so they appear side by side.

 

When showing multiple QCPBars in one plot which have bars at identical keys, it may be desirable to have them appearing next to each other at each key. This is what adding the respective QCPBars plottables to a QCPBarsGroup achieves. (An alternative approach is to stack them on top of each other, see QCPBars::moveAbove.)

QVector datax1 = QVector() moveAbove(group1->bars(0)); group1->bars(2)->moveAbove(group1->bars(1)); customPlot->xAxis->setRange(0, 15); customPlot->yAxis->setRange(0, 0.7);

效果图如下:

    



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有