[Pkg-octave-devel] Bug#474257: octave-epstk: does not plot the whole line
Thomas Weber
thomas.weber.mail at gmail.com
Mon Apr 14 12:18:10 UTC 2008
Hi Stefan,
I'm forwarding below a bug report against epstk. The problem is that the
plot doesn't go to the right hand side of the plot window.
The problem already appears when only plotting a smaller right part of
the vector, ie f(3500:4096) and b(3500:4096).
Thanks
Thomas
Am Freitag, den 04.04.2008, 17:30 +0200 schrieb Francesco Potorti`:
> Package: octave-epstk
> Version: 2.2-8
> Severity: normal
>
> In a case, given below, eplot does not produce the whole line. It
> appers to be related with x-axis log autoscaling, but I am not sure. In
> this particular case, the line should go from [0.024,0] at the top left
> to [100,-30.6] at the bottom right, but the rightmost part of the curve
> is not plotted.
>
> The code to reproduce the problem is at the end.
> ===File ~/math/workarea/bug.m===============================
> 1;
> function B = bodel (f)
> pole=1; # pole [Hz]
> sr=200; # sampling rate [Hz]
> sig=1./(1-j*f/pole); # frequency response of one pole
> B=real(sig.*conj(sig)); # compute power
> al=1./(1-j*(f-sr)/pole); # one positive windowful of aliasing
> B+=real(al.*conj(al)); # add aliasing power
> B=10*log10(B);
> endfunction
>
> eglobpar; # get access to global parameters
> eopen("spectrum.eps");
> ePlotAreaHeight=70; # plot height [mm]
> ePlotAreaWidth=70; # plot width [mm]
> eXAxisSouthScaleType=2; # log scale
> f=[1:4096]*100/4096;
> b=bodel(f);
> eplot(f,b)
> eclose # print the graph on file
> ============================================================
More information about the Pkg-octave-devel
mailing list