Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #4360 > unrolled thread

Radiaton Characteristics using Gnuplot

Started by"lennar...@gmail.com" <lennart.ripke@gmail.com>
First post2020-07-27 01:00 -0700
Last post2020-07-28 02:15 -0700
Articles 4 — 3 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  Radiaton Characteristics using Gnuplot "lennar...@gmail.com" <lennart.ripke@gmail.com> - 2020-07-27 01:00 -0700
    Re: Radiaton Characteristics using Gnuplot Karl Ratzsch <mail.kfr@gmx.net> - 2020-07-27 13:08 +0200
    Re: Radiaton Characteristics using Gnuplot Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2020-07-27 20:58 +0200
      Re: Radiaton Characteristics using Gnuplot "lennar...@gmail.com" <lennart.ripke@gmail.com> - 2020-07-28 02:15 -0700

#4360 — Radiaton Characteristics using Gnuplot

From"lennar...@gmail.com" <lennart.ripke@gmail.com>
Date2020-07-27 01:00 -0700
SubjectRadiaton Characteristics using Gnuplot
Message-ID<c083997b-2cff-4fe4-9f0b-8232f56dd102n@googlegroups.com>
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

[toc] | [next] | [standalone]


#4361

FromKarl Ratzsch <mail.kfr@gmx.net>
Date2020-07-27 13:08 +0200
Message-ID<rfmcj4$et0$1@solani.org>
In reply to#4360
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.

[toc] | [prev] | [next] | [standalone]


#4362

FromHans-Bernhard Bröker <HBBroeker@t-online.de>
Date2020-07-27 20:58 +0200
Message-ID<ho8meuF7f1jU1@mid.dfncis.de>
In reply to#4360
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.

[toc] | [prev] | [next] | [standalone]


#4363

From"lennar...@gmail.com" <lennart.ripke@gmail.com>
Date2020-07-28 02:15 -0700
Message-ID<ae019da7-fed6-4c8e-b0f1-95cced54349an@googlegroups.com>
In reply to#4362
Thank you very much for your tips!

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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web