Created
April 7, 2022 19:54
-
-
Save esctabcapslock/2d907303bc3b5118f287b2a1a383b522 to your computer and use it in GitHub Desktop.
gnuplot 사용하기
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set datafile separator ',' | |
set title "HPLC data by substance at 270nm" | |
FILE = 'ex1.csv' | |
stats FILE using 2 nooutput name 'Y_' | |
stats FILE using 1 every ::Y_index_max::Y_index_max nooutput | |
X_max = STATS_max | |
set label 2 sprintf("(%.1f,%.3f)", X_max+0.1,Y_max) center at first X_max,Y_max point pt 7 ps 1 offset 0,1 | |
stats FILE using 3 nooutput name 'Y_' | |
stats FILE using 1 every ::Y_index_max::Y_index_max nooutput | |
X_max = STATS_max | |
set label 3 sprintf("(%.1f,%.3f)", X_max+0.1,Y_max) center at first X_max,Y_max point pt 7 ps 1 offset 0,1 | |
set xrange [:] | |
set xlabel "Time (sec)" | |
set yrange[-50:] | |
set ylabel "Voltage (mV)" | |
set grid | |
show grid | |
plot FILE using 1:2 with lines title 'Adenine (300 µM)', '' using 1:3 with lines title 'Caffeine (500 µM)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment