#ifndef _HLM_GRAPH_H_
#define _HLM_GRAPH_H_
#include
class hlm_temp_Graph : public QWidget
{
public:
explicit hlm_temp_Graph(QWidget *parent = 0);
~hlm_temp_Graph();
bool set_XY_Vector_value(QVector &, QVector &);
private:
QCustomPlot *customplot;
};
#endif // HLM_GRAPH_H#include "hlm_graph.h"
#include
hlm_temp_Graph::hlm_temp_Graph(QWidget *parent) : QWidget(parent)
{
customplot = new QCustomPlot(this);
this->resize(800, 480);
customplot->resize(350, 130);
customplot->move(440, 310);
}
bool hlm_temp_Graph::set_XY_Vector_value(QVector &X_Vectorcount, QVector &Y_Vectortemp)
{
QVector Y_tempTickVertor(7); //y轴温度大刻度数组
for ( int i = 0; i
{
Y_tempT