I want to draw a gauge (speedometer) by hand without using any functions or data, just using the set object commands.
the only way I have found to get the drawing displayed on the terminal is to issue a plot command, but this command puts a line on my drawing.
Is there a way to get my drawing displayed without the need for the plot command, or at least, without the extra line that the plot command outputs?
Script:
set datafile separator comma
set style data circles
set terminal windows enhanced background rgb "0xE6E6FA" size 768, 768
set size square
set grid noxtics
set grid noytics
set xrange [-1.5:1.5]
set yrange [-1.5:1.5]
unset xtics; unset ytics; unset x2tics; unset y2tics
set border 0
set title "This is the tilte" font "Tahoma,22" textcolor rgb "0xE25822" rotate by 0
unset key
set object 1 circle at 0,0 size 1.205 fillstyle solid fc rgb "black"
set object 2 circle at 0,0 size 1.2 fillstyle solid fc rgb "grey"
set object 3 circle at 0,0 size 1.1 fillstyle solid fc rgb "white"
set arrow 1 from 0,0 to -0.8090,-0.5877 lw 1 lc rgb "black" nohead
set object 4 circle at 0,0 size 0.9 fillstyle solid fc rgb "white"
set object 99 circle at 0,0 size 0.10 fillstyle solid fc rgb "blue" front
plot 0,0
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I want to draw a gauge (speedometer) by hand without using any functions or data, just using the set object commands.
the only way I have found to get the drawing displayed on the terminal is to issue a plot command, but this command puts a line on my drawing.
Is there a way to get my drawing displayed without the need for the plot command, or at least, without the extra line that the plot command outputs?
Script:
set datafile separator comma
set style data circles
set terminal windows enhanced background rgb "0xE6E6FA" size 768, 768
set size square
set grid noxtics
set grid noytics
set xrange [-1.5:1.5]
set yrange [-1.5:1.5]
unset xtics; unset ytics; unset x2tics; unset y2tics
set border 0
set title "This is the tilte" font "Tahoma,22" textcolor rgb "0xE25822" rotate by 0
unset key
set object 1 circle at 0,0 size 1.205 fillstyle solid fc rgb "black"
set object 2 circle at 0,0 size 1.2 fillstyle solid fc rgb "grey"
set object 3 circle at 0,0 size 1.1 fillstyle solid fc rgb "white"
set arrow 1 from 0,0 to -0.8090,-0.5877 lw 1 lc rgb "black" nohead
set object 4 circle at 0,0 size 0.9 fillstyle solid fc rgb "white"
set object 99 circle at 0,0 size 0.10 fillstyle solid fc rgb "blue" front
plot 0,0
Workaround
plot 0, 0 -> plot 2
Last edit: Tatsuro MATSUOKA 2022-11-13
Thank you Tatsuro