• Radiaton Characteristics using Gnuplot

    From lennart.ripke@gmail.com@21:1/5 to All on Mon Jul 27 01:00:23 2020
    Hello,

    I would like to draw a mixed Polar an linear plot with gnuplot like it is done in this image:

    https://image.slidesharecdn.com/howtoreadadatasheetpart1of2-typical-maximumcharacteristicsandbinning-151105205853-lva1-app6892/95/how-to-read-a-datasheet-part-1-of-2-typicalmaximum-characteristics-binningled-fundamentals-12-638.jpg?cb=1446757276

    The data comes from a data file (angle vs value) and is the same for positive and negative angles.

    Data:
    ---------------
    -100 0.01
    -90 0.04
    -80 0.07
    -70 0.15
    -60 0.18
    -50 0.3
    -40 0.5
    -30 0.65
    -20 0.82
    -10 0.95
    0 1
    10 0.95
    20 0.82
    30 0.65
    40 0.5
    50 0.3
    60 0.18
    70 0.15
    80 0.07
    90 0.04
    100 0.01
    --------------

    So far I did come up with this script, but I do not know how to rotate the plot to have 0° at the top. And how to combine with a linear plot.
    --------------
    set terminal svg size 500,500
    set output 'C:\Program Files\gnuplot\output.svg'
    unset border
    set polar
    set angles degree
    set grid polar 10
    set grid ls 0.2

    set xrange [-1:1]
    set yrange [0:1]
    set trange [-90:90]

    set xtics axis
    set ytics axis

    set xtics ("" 0.2, "" 0.4, "" 0.6, "" 0.8, "" 1.0)
    set ytics 0.2, 0.1, 1.0

    set ttics -90, 10, 90
    set ttics format "%g".GPVAL_DEGREE_SIGN
    set ttics font ":Italic"
    set mttics 3

    set size ratio 0.5 # twice as wide as high

    set title 'Radiaton Characteristics'

    plot 'C:\Program Files\gnuplot\data.csv' notitle with lines
    --------------

    Any tipps are appreciated,
    Best regards
    Lennart

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Karl Ratzsch@21:1/5 to All on Mon Jul 27 13:08:20 2020
    Well, instead of rotating the plot, you can simply rotate your data
    and adjust the labelling, and you can use "multiplot" to place two
    totally independent plots on the same sheet of paper.

    Karl


    Am 27.07.2020 um 10:00 schrieb lennar...@gmail.com:
    Hello,

    I would like to draw a mixed Polar an linear plot with gnuplot like it is done in this image:



    So far I did come up with this script, but I do not know how to rotate the plot to have 0° at the top. And how to combine with a linear plot.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker@21:1/5 to All on Mon Jul 27 20:58:31 2020
    Am 27.07.2020 um 10:00 schrieb lennar...@gmail.com:
    Hello,

    I would like to draw a mixed Polar an linear plot with gnuplot

    It doesn't work like that.

    As can be deduced from the say "set polar" is a global setting that is
    applied before you even issue a plot command, it really affects
    everything you plot from there on.

    So if you really need to mix polar with non-polar data in a single plot,
    then either one or the other has to be converted from coordinate system (r,thera) to (x,y), or vice versa:

    x = r*cos(theta)
    y = r*sin(theta)

    or

    r = sqrt(x**2+y**2)
    theta = atan2(x,y)

    plot 'C:\Program Files\gnuplot\data.csv' notitle with lines

    Please don't do that. Your data files belong into your folders, not
    gnuplot's installation directory.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From lennart.ripke@gmail.com@21:1/5 to All on Tue Jul 28 02:15:57 2020
    Thank you very much for your tips!

    I'll see what I can do and post the results here.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)