Secondary axis plotting || Gnuplot Tutorial-3

Publié le: 04 juin 2020
sur la chaîne: NextZenStudent
2,930
31

Gnuplot detailed tutorial on Secondary axis plotting

Github: https://github.com/NextZenStudent/Gnu...

note: the importance of ’set ytics nomirror’ command

Twitter:   / nextzenstudent  

Instagram:   / nextzenstudent  

Website: https://nextzenstudent.com



Gnuplot code:

reset
set terminal svg size 1300,900 enhanced font 'TimesNewRoman,30’
set output '1.svg’
set border linewidth 2

set style line 1 linecolor 2 linetype 3 linewidth 3 pointtype 20 pointsize 0.5
set style line 2 linecolor rgb 'red' linetype 1 linewidth 2 pointtype 15 pointsize 0.4

set errorbars 0.5

Axes label
set xlabel '{/:Bold number }' offset 0,0.5,0
set ylabel '{/:Bold Primary data}' offset 2,0,0
set y2label '{/:Bold Secondary data}' offset -2.5,0,0 rotate by 270

set xrange [0:1]
set x2range [0:1]
set yrange [0:150]
set y2range [0:1130]

set tics scale 0.75
set grid ytics
set grid xtics

set ytics nomirror
set y2tics

plot '1.txt' using 3:1:2 notitle with yerrorbars linestyle 1 dashtype '__' axes x1y1, \
'2.txt' using 3:1:2 notitle with yerrorbars linestyle 2 axes x2y2


Sur cette page du site, vous pouvez voir la vidéo en ligne Secondary axis plotting || Gnuplot Tutorial-3 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur NextZenStudent 04 juin 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 2,930 fois et il a aimé 31 téléspectateurs. Bon visionnage!