Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

control number of points in a multi-decade log plot

Status
Not open for further replies.

Longbui90274

Electrical
Feb 20, 2005
1
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.
 
Replies continue below

Recommended for you

What does the plot have to do with how many points you specified?

If you need a specific point distribution, create one and stick in a vector and plot against the vector.

TTFN
 
I have used the following to generate a vector of currents (i) to plot on the X axis which are evenly spaced on a 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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor