Hey, now I'm cooking! Got gnuplot, don't even understand half the
terms in the help file though:>: Math was never my strength.
But, it runs and I can cut and paste examples from the examples help
page and it plots them.
I'm trying to plot y=ax^b, for all values of x between 1200 and 200
with b=7.64 and a=1.170, with at least 100 data points. Do I have to
tell it to plot this on a log-log scale or is this done automatically
because I used x^b in the formula?
What's the complete command for this???? I'm looking for a mailing
list for gnuplot, it seems like a very nice program.
Here's an example that runs under gnuplot 3.7.1. It's the
inductive/capacitive reactance plot vs. frequency that's in The Art of
Electronics/Terman/ARRL Handbook. In other words, a log/log plot
of 1/2*pi*f*c and 2*pi*f*l. I'll be damned if I can remember
what all this stuff does besides spit out a page of postscript.
Basically, I went down the list of commands and put them all in
and adjusted them until it looked good.
Mark Zenier
[email protected] Washington State resident
set terminal postscript landscape monochrome "Helvetica" 14
set output 'react.ps'
set title "reactance vs. frequency" 0,0
set noclip points
set clip one
set noclip two
set border
set boxwidth
set dummy x,y
set format x "%6.3g"
set format y "%g"
set format z "%g"
set grid
set nokey
set nolabel
set noarrow
set nologscale
set logscale x 10
set logscale y 10
set offsets 0, 0, 0, 0
set nopolar
set angles radians
set noparametric
set view 60, 30, 1, 1
set samples 100, 100
set isosamples 10, 10
set surface
set nocontour
set clabel
set nohidden3d
set cntrparam order 4
set cntrparam linear
set cntrparam levels auto 5
set cntrparam points 5
set size 1,1
set data style points
set function style lines
set xzeroaxis
set yzeroaxis
set tics in
set ticslevel 0.5
set ytics (1,2,3,5,7,10,20,30,50,70,100,200,300,500,700,\
1000,2000,3000,5000,7000,\
10000,20000,30000,50000,70000,100000)
set xtics (100,"" 200,300,"" 500,"" 700,\
1000,"" 2000,3000,"" 5000,"" 7000,\
10000,"" 20000,30000,"" 50000,"" 70000,\
100e3,"" 200e3,300e3,"" 500e3,"" 700e3,\
1e6,"" 2e6,3e6,"" 5e6,"" 7e6,\
10e6,"" 20e6,30e6,"" 50e6,"" 70e6,100e6)
set ztics
set notime
set rrange [-0 : 10]
set trange [-5 : 5]
set urange [-5 : 5]
set vrange [-5 : 5]
set xlabel "Hertz" 0,0
set xrange [100 : 1e+08]
set ylabel "Ohms" 0,0
set yrange [1 : 100000]
set zlabel "" 0,0
set zrange [-10 : 10]
set autoscale r
set autoscale t
set noautoscale
set autoscale z
set zero 1e-08
set label "10H" at 200,30000
set label "100mH" at 1500,3000
set label "1mH" at 20000,300
set label "10uH" at 200000,30
set label ".1uH" at 2000000,3
set label "1H" at 600,8000
set label "10mH" at 5000,1000
set label "100uH" at 50000,100
set label "1uH" at 600000,8
set label "100uF" at 2e2,4
set label "1uF" at 2e3,40
set label "10nF" at 2e4,400
set label "100pF" at 2e5,4e3
set label "1pF" at 2e6,4e4
set label "10uF" at 6e2,13
set label "100nF" at 6e3,130
set label "1nF" at 6e4,1.3e3
set label "10pF" at 6e5,1.3e4
xl(x,l) = 2*pi*x*l
xc(x,c) = 1/(2*pi*x*c)
plot \
xl(x,5) not w l 2,\
xl(x,.5) not w l 2,\
xl(x,.05) not w l 2,\
xl(x,5e-3) not w l 2,\
xl(x,5e-4) not w l 2,\
xl(x,5e-5) not w l 2,\
xl(x,5e-6) not w l 2,\
xl(x,5e-7) not w l 2,\
xl(x,5e-8) not w l 2,\
xc(x,50e-6) not w l 2,\
xc(x,5e-6) not w l 2,\
xc(x,.5e-6) not w l 2,\
xc(x,50e-9) not w l 2,\
xc(x,5e-9) not w l 2,\
xc(x,.5e-9) not w l 2,\
xc(x,50e-12) not w l 2,\
xc(x,5e-12) not w l 2,\
xc(x,.5e-12) not w l 2,\
xl(x,10) w l 1,\
xl(x,1) w l 1,\
xl(x,.1) w l 1,\
xl(x,.01) w l 1,\
xl(x,.001) w l 1,\
xl(x,1e-4) w l 1,\
xl(x,1e-5) w l 1,\
xl(x,1e-6) w l 1,\
xl(x,1e-7) w l 1,\
xc(x,100e-6) w l 1,\
xc(x,10e-6) w l 1,\
xc(x,1e-6) w l 1,\
xc(x,100e-9) w l 1,\
xc(x,10e-9) w l 1,\
xc(x,1e-9) w l 1,\
xc(x,100e-12) w l 1,\
xc(x,10e-12) w l 1,\
xc(x,1e-12) w l 1