[Thread Prev][Thread Next][Index]

Re: [ferret_users] strange behaviour of plot/vs command



Thanks Ryo for the help. It is now sorted

Cheers, Saurabh

On Wed, Jan 25, 2023 at 1:33 PM Ryo Furue <furue@xxxxxxxxxx> wrote:
Hi Saurabh,

On Wed, Jan 25, 2023 at 10:19 AM saurabh rathore <rohitsrb2020@xxxxxxxxx> wrote:
[ . . . ]
tohc = t[gt=ohc@asn]
plot/vs/nolab/nokey/col=1/thick/opacity=40/line/ov/dash/t=jan-1964 {`tohc`,`tohc`},{-4*10^-22,12*10^-22}

There is at least one error here.  You need to use backquotes to tell Ferret to "evaluate" the numbers.
For demonstration . . . 

yes? let a = {-4*10^-22, 12*10^-22} ! includes two operations for each number
yes? list a
 **ERROR: command syntax: must be a constant -4*10^-22
yes? let a = {`-4*10^-22`, `12*10^-22`}
 !-> DEFINE VARIABLE a = {-4.E-22, 1.2E-21}
yes? let a = {`-4*1E-22`, `12*1E-22`}


Also, I recommend a constant "1E-22" over "10^-22" because the latter involves a calculation whereas the former is just a numerical constant.
 
Ryo


**ERROR: command syntax: plot

can anyone suggest what is wrong with this command that I am trying to plot in PyFerret v7.63.

I know that this command was working previously but now it is not and I have no idea what is wrong I am doing.

Cheers, Saurabh

[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement