Search code examples
gnuplotpolar-plot

Position circles in polar grid in Gnuplot


I am trying to understand how Gnuplot places the circles when using a polar grid.

In the below example I would like to change the number and positioning of the circular dotted lines.

I am using gnuplot 5.4 patchlevel 8 on Windows.

Here is what I tried:

  1. Setting and unsetting {xyzcb}tics in different ways. None of these changed anything about the horizontal axis with labels "0 500 1000 1500" that cane be seen in the plot that seems to be the base for the circles.
  2. Adding different combinations of {no}{xyzcb}tics to the "set grid" command. This resulted in a second, non-polar grid overlayed to the polar grid.

Also, I cannot understand why the horizontal axis is always there although I have specified to unset each and every *tics below.

This is my result: Minimal example result

Here is a minimal script that I used:

reset session
unset terminal

set polar
set angles degrees
set size square 

set lmargin 5

unset label
unset border

unset xtics
unset x2tics
unset ytics
unset y2tics
unset cbtics
unset ztics

set grid polar 10

plot "-" using 1:2:3 with points pt 5 ps 5 palette notitle
90 100 2
80 500 3
70 1200 4
EOF

Solution

  • You forgot one type of tics: rtics.
    Please check help rtics. Also check help raxis.

    So, probably you are looking for something like:

    set rtics 250
    unset raxis