control number of points in a multi-decade log plot
control number of points in a multi-decade log plot
(OP)
Hi all,
anyone knows the best way to control the number of points in a log plot, i want to specify a number of point per decade, normal way generates too many points.
Ty a bunch.
anyone knows the best way to control the number of points in a log plot, i want to specify a number of point per decade, normal way generates too many points.
Ty a bunch.
RE: control number of points in a multi-decade log plot
If you need a specific point distribution, create one and stick in a vector and plot against the vector.
TTFN
RE: control number of points in a multi-decade log plot
x:=N/log(nmax/nmin)
where N is the number of points desired
nmin is the lowest multiple of a base current
nmax is the highest multiple of a base current
n:=0..N
in:=10·nmin·10^((n-x)/x)
in is a vector of currents in per unit of the base current
If you wanted 3 decades between 0.1 and 100, with 5 points per decade, you would make
nmin:=0.1
nmax:=100
N:=15