Plot with gnuplot

How I can to export data in graphical format, demonstrating temperature and connection limits of resistor and fan over time with my list
_temperatura:temperature;
_dataHora: Date and time;
_vent: bool of fan;
_res: bool of resistor;
1
2
3
4
5
6
7
8
 	Estado getEstado() {
		string _leitura = _s.enviaSerial(0);
		replace(_leitura.begin(), _leitura.end(), '.', ',');
		_temperatura = atof(_leitura.c_str());
		cout << _temperatura << endl;
		Controle();
		return Estado(_temperatura, _dataHora, _vent, _res);
	}

Code in the main for insert in chained list:

1
2
			Estado _estado = _interface.getEstado();
			lista.insereF(_estado);



gnuplot will plot just about any data in columnar format.

Just make sure that there are the same number of items per line and that they are separated by (e.g.) spaces. Data items don't actually have to line up.
I usually export a CSV and let excel draw pretty pictures for me for small projects.
Registered users can post here. Sign in or register to post.