help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

linestyle problem while using plot.


From: Jinzhi Lei
Subject: linestyle problem while using plot.
Date: Fri, 30 May 2008 14:13:29 -0700 (PDT)

Hi, all,

I'm new to  Octave, and have a problem while I try to use plot. It seems that the
'linestyle' option doesn't work with plot at it does in matlab.

I use

plot(X,Y,'linestyle','--');
print -deps test.eps;

to plot the curve and export to the file test.eps. However, when I open test.eps, the curve is not plot in dashed line, but a solid line.

When I plot two curves as follows:

hold on;
plot(X,Y,'r-');
plot(X,Y,'b-');
print -deps test.eps;

the second curve always appear as dashed curve. 

It seems that I can't control the line style by myself. If any one an tell me how to resolve this problem? Thanks.

Jinzhi.



----- Original Message ----
From: Praedor Atrebates <address@hidden>
To: address@hidden
Sent: Friday, May 30, 2008 11:28:05 AM
Subject: echo command and functions

I have tried using "echo" to get octave to display what it is reading and what
it is doing while it runs a simple matlab program:

octave:4> run Image_preparation_withoutlandremove
+ % Rawdata read-in program.
+ % The parameter 1: the pitch length;
+ % The parameter 2: start position;
+ % The parameter 3: number of tracks;
+ % The parameter 4: The forth is pixel number for one period of scan;
+ % The parameter 5: The path to the folder keeping rawdata
+
+ % ILscan1 = Getting_RawData_single_channel(0.015,-42,2400,12500,'C:
\Data\Patrick\custom1038-2155\scan1\');
+  ILscan2 =
Getting_RawData_single_channel(0.015,0,2800,12500,'/home/praedor/smb4k/bind222-ml/Data/Patrick/custom1038-2172/scan2/');
error: fscanf: invalid stream number = -1
error: called from `Getting_RawData_single_channel' in
file /home/praedor/Documents/BioCD/custom1038-2172-4-08/Getting_RawData_single_channel.m
near line 39, column 10

So echo is only spitting out information on the program called
Image_preparation_withoutlandremove but the error I am trying to
analyze/figure out is in the function "Getting_RawData_single_channel.m"
which is called within the Image_preparation program.  Is there some way to
get echo or any other command to spit out the details of what it is doing as
it enters "Getting_RawData" rather than only what it is doing within the
calling program "Image_preparation"?

I have also been playing with various debug commands but it doesn't appear to
give me the information I seek.

praedor
--
"As democracy is perfected, the office of president represents, more and more
closely, the inner soul of the people. On some great and glorious day the
plain folks of the land will reach their heart's desire at last and the White
House will be adorned by a downright moron."
--H.L. Mencken



reply via email to

[Prev in Thread] Current Thread [Next in Thread]