Search code examples
gnuplot

Gnuplot: arc circles with no line


I am trying to plot an arc segment using Gnuplot this circle command:

set obj 1 circle at 9 size 3 arc [0:180] fc rgb "blue" lw 1

And I'm getting Image

But I would like to get Modified

Is there a simple way to do that? Or do I need to draw the arc and then "erase" the part I don't need?


Solution

  • Just for the records. Actually, since gnuplot 5.0.0 (Jan. 2015) there seems to be the option {no{wedge}}, however, not documented in help circle. It seems to appear the first time in help circle in gnuplot 5.2.7 (May 2019).

    Script: (works with gnuplot>=5.0.0, Jan. 2015)

    ### circle/arc object with/without wedge
    reset session
    
    set obj 1 circle at -4,60  size 3 arc [0:180] fc "red"
    set obj 2 circle at  4,60  size 3 arc [0:180] fc "web-green" nowedge
    
    plot x**2
    ### end of script
    

    Result:

    enter image description here