转载自:https://blog.csdn.net/yxy244/article/details/100311112

QCustomPlot 笔记 -—坐标轴设置QCustomPlot 笔记 -—坐标轴设置

1、坐标轴显示

customplot->yAxis2->setVisible(true);    //显示y轴2   即右侧坐标轴

customplot->xAxis2->setVisible(true);    //显示x轴2   即上方坐标轴

customplot->axisRect()->setupFullAxesBox();  //显示所有坐标轴即四面坐标轴都显示

customplot->xAxis->setBasePen(QPen(Qt::red,4));     //设置坐标轴颜色

2、坐标轴的网格

 

QCustomPlot 笔记 -—坐标轴设置

QCustomPlot 笔记 -—坐标轴设置

3、坐标轴背景填充

QCustomPlot 笔记 -—坐标轴设置

QCustomPlot 笔记 -—坐标轴设置

QCustomPlot 笔记 -—坐标轴设置

QCustomPlot 笔记 -—坐标轴设置

QCustomPlot 笔记 -—坐标轴设置

QCustomPlot 笔记 -—坐标轴设置

QCustomPlot 笔记 -—坐标轴设置

QCustomPlot 笔记 -—坐标轴设置

QCustomPlot 笔记 -—坐标轴设置

 

QCustomPlot 笔记 -—坐标轴设置

QCustomPlot 笔记 -—坐标轴设置

 

 

相关文章:

  • 2021-10-09
  • 2021-06-11
  • 2022-12-23
  • 2021-11-27
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
猜你喜欢
  • 2022-12-23
  • 2021-11-18
  • 2021-06-13
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2021-05-11
相关资源
相似解决方案