Back to demo index

gnuplot demo script: keyentry.dem

autogenerated by webify.pl on Sat Mar 11 15:38:50 2023
gnuplot version gnuplot 5.4 patchlevel 7alpha
#
# Demonstrate use of "keyentry" elements to build a key
#
save_encoding = GPVAL_ENCODING
set encoding utf8

set key title "Key made with explicit \n{/:Italic keyentry} elements"
set key box reverse Left right samplen 2

plot keyentry with points pt '¶' title "points", \
     keyentry with lp title "lp", \
     keyentry with yerrorbars title "yerrorbars", \
     keyentry with xyerrorlines title "xyerrorlines", \
     keyentry with circles fs solid fc "dark-red" title "circles", \
     keyentry with ellipses title "ellipses", \
sin(x)/x lc "grey" dt '.-' lw 3 title "normal plot", \
     keyentry with boxerrorbars title "boxerrorbars", \
     keyentry with boxplot fs pattern 1 title "boxplot", \
     keyentry with labels point pt 4 title "labels", \
     keyentry with vectors title "vectors"


Click here for minimal script to generate this plot




#
# Same for 3D plots
#
set hidden3d
set key title "Key made with explicit \n{/:Italic keyentry} elements"
set key box reverse Left right opaque
unset colorbox

splot keyentry with points pt '¶' title "points", \
     keyentry with lp title "lp", \
     keyentry with zerrorfill title "zerrorfill", \
     keyentry with circles fs solid fc "grey" title "circles", \
(1.-(x**2+y**2)/100.) title "normal plot" lc "grey", \
     keyentry with boxes title "boxes", \
     keyentry with labels point pt 4 title "labels", \
     keyentry with vectors title "vectors", \
     keyentry with pm3d title "pm3d"


Click here for minimal script to generate this plot




set encoding save_encoding