
QCustomplot
小邓吖
这个作者很懒,什么都没留下…
展开
-
QCustomPlot图例
一、QCustomPlot图例设置ui.plot_->legend->setVisible(true); //设置可见ui.plot_->axisRect()->insetLayout()->setInsetAlignment(0, Qt::AlignTop | Qt::AlignRight);//设置位置ui.plot_->graph(i)->setName(“小笨蛋”); //设置图例名字ui.plot_->legend->addE原创 2021-05-25 15:44:28 · 4284 阅读 · 2 评论 -
QCustomPlot使用技巧
QCustomPlot使用技巧(一)一、QCustomPlot坐标轴一个QCustomPlot里有四个坐标轴,其中xAxis、yAxis、xAxis2和yAxis2分别表示如图所示的4个方向的坐标轴,xAxis2和yAxis2默认隐藏,可以通过语句显示出来。 yAxis2->setVisible(true); //显示y轴2 即右侧坐标轴 xAxis2->setVisible(true); //显示x轴2 即上方坐标轴下面是坐标轴的常用操作,每一个坐标轴都可单独原创 2021-05-25 15:27:12 · 3163 阅读 · 0 评论