Menu

Output a graph without the plot command

2022-11-12
2023-07-28
  • Roberto Ramirez Cervantes

    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

     
  • Tatsuro MATSUOKA

    Workaround
    plot 0, 0 -> plot 2

     

    Last edit: Tatsuro MATSUOKA 2022-11-13
    • Roberto Ramirez Cervantes

      Thank you Tatsuro

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.