-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Devon McCormick
Sent: Monday, March 03, 2008 4:07 PM
To: Programming forum
Subject: Re: [Jprogramming] Beg Q--What's wrong in this plotting code?

This probably has the same root cause as your other problem with using
"todayno": your data is character.
If "y" were numeric, "pd" would know that it's the data to be plotted but,
since it's character, "pd" tries to
interpret it as an option (like "reset" or "title").

On 3/3/08, Hahn, Harvey <[EMAIL PROTECTED]> wrote:
>
> While awaiting an answer to my previously posed question, I thought I'd
> tried to see if I could at least get a simple plot without the "fancier"
> date-related aspects.  So I entered the following into a J window:
>
> ===========================================
>    require 'stdlib files csv strings dates plot'
>    data =: readcsv 'c:\bloodtest.txt'
>    'x y'=. |:data
>    pd 'reset'
>    pd 'title Blood Glucose Data'
>    pd y
>    pd 'show'
> |option not found: 147: signal
> |       signal'option not found: ',j
>    y
> 147
> 197
> 173
> 177
> 152
> ===========================================
>
> I typed "y" so that you could see the 5 values (from the boxed array)
> that I'm trying to plot.  As a matter of fact, here's the file
> "bloodtest.txt", if you want to try the code above yourself:
>
> 20080102,147
> 20080104,197
> 20080106,173
> 20080108,177
> 20080109,152
>
> I haven't the foggiest what "option not found: 147: signal" is trying to
> tell me.  Can someone clue me in as to what I'm doing wrong?  I tried to
> copy the "Gold Fixed Price" demo example as closely as possible, just
> leaving out the date-related lines of code.  Thanks for any help!
>
> Harvey
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to