thelfer / tfel-plot

This project defines a C++11 library for generating plots based on TFEL and Qt and an executable called `tplot` which can be used as a drop-in replacement of `gnuplot` but also have a lot of other functionalities.
GNU General Public License v3.0
1 stars 0 forks source link

get strings in first line as legend name #2

Closed pgoldbronn closed 6 years ago

pgoldbronn commented 6 years ago

With a csv file type, tplot don't take care of first line column name if they are presient. It does only ifline begin with comment symbol '#'.

For exemple

TIME RADIUS TEMPERATURE
1 2.5 300
2 2.6 400
3 2.8 550
4 3.0 600
5 3.5 620

tplot exemple.txt -u 1:2 exemple.txt -u 1:3

We must see RADIUS and TEMPERATURE as legend key

thelfer commented 6 years ago

This shall be good now.