add 1!:43'' to the sequence Raul gave above and it show where the plots are
saved.

On Tue, Nov 23, 2021 at 2:01 PM R.E. Boss <[email protected]> wrote:

> OK, I ran the Package Manager, have now
>    JVERSION
> Engine: j903/j64avx2/windows
> Beta-v: commercial/2021-11-16T21:47:12
> Library: 9.03.08
> Qt IDE: 1.9.2/5.12.10(5.12.10)
> Platform: Win 64
> Installer: J903 install
> InstallPath: c:/program files/j903
> Contact: www.jsoftware.com
>
> but same result as before.
>
>
> R.E. Boss
>
>
> -----Original Message-----
> From: Programming <[email protected]> On Behalf Of
> Devon McCormick
> Sent: dinsdag 23 november 2021 20:39
> To: J-programming forum <[email protected]>
> Subject: Re: [Jprogramming] saving an image as jpg fails
>
> I get the error "First display an isigraph Plot." when I run this from
> jconsole but it works fine from a JQt session.  This is under J 9.03.07.
>
> On Tue, Nov 23, 2021 at 12:44 PM Raul Miller <[email protected]>
> wrote:
>
> > They are stored in jpath '~install'
> >
> > But, for example, this creates both image files, also:
> >
> > load'plot'
> > pd 'reset'
> > pd  p:i.10
> > pd 'show'
> > pd 'save png "/tmp/example.png"'
> > pd 'save jpg "/tmp/example.jpg"'
> >
> > And, this also gives me both files:
> >
> > pd 'save png "',(jpath '~user'),'/example.png"'
> > pd 'save jpg "',(jpath '~user'),'/example.jpg"'
> >
> > FYI,
> >
> > --
> > Raul
> >
> > On Tue, Nov 23, 2021 at 11:52 AM R.E. Boss <[email protected]> wrote:
> > >
> > > If I copy your example, I have no clue where the files are stored,
> > definitely not in my user directory.
> > > If I let the name precede by the folder indication, then example.png
> > works, but the .jpg not, while nothing happens.
> > > (In the first attempts today, with beta-u, an empty .jpg file with
> > > the
> > correct name was created.)
> > > I am not succeeding in creating any file(name) with fwrite, but that
> > > is
> > probably my inexperience.
> > >
> > >
> > > R.E. Boss
> > >
> > >
> > > -----Original Message-----
> > > From: Programming <[email protected]> On
> > > Behalf
> > Of Raul Miller
> > > Sent: dinsdag 23 november 2021 17:04
> > > To: Programming forum <[email protected]>
> > > Subject: Re: [Jprogramming] saving an image as jpg fails
> > >
> > > It seems to work for me.
> > >
> > > I ran:
> > >
> > > load'plot'
> > > pd 'reset'
> > > pd  p:i.10
> > > pd 'show'
> > > pd 'save png "example.png"'
> > > pd 'save jpg "example.jpg"'
> > >
> > > And this created an example.png and an example.jpg file in my j903
> > directory.
> > >
> > >    JVERSION
> > > Engine: j903/j64avx2/darwin
> > > Beta-v: commercial/2021-11-16T22:02:28
> > > Library: 9.03.07
> > > Qt IDE: 1.9.3/5.15.2(5.15.2)
> > > Platform: Darwin 64
> > > Installer: J903 install
> > > InstallPath: /users/rauldmiller/applications/j903
> > > Contact: www.jsoftware.com
> > >
> > > What happens for you? (Any error messages? Can you create a file
> > > with
> > that name using fwrite?)
> > >
> > > Thanks,
> > >
> > > --
> > > Raul
> > >
> > > On Tue, Nov 23, 2021 at 10:49 AM R.E. Boss <[email protected]>
> wrote:
> > > >
> > > > Any reason why
> > > >   pd 'save jpg "filename.jpg"'
> > > > does not work anymore, whereas
> > > >   pd 'save png "filename.png"'
> > > > still works?
> > > >
> > > > Engine: j903/j64avx2/windows
> > > > Beta-v: commercial/2021-11-16T21:47:12
> > > > Library: 9.03.06
> > > > Qt IDE: 1.9.2/5.12.10(5.12.10)
> > > > Platform: Win 64
> > > > Installer: J903 install
> > > > InstallPath: c:/program files/j903
> > > > Contact: www.jsoftware.com
> > > >
> > > >
> > > > R.E. Boss
> > > >
> > > > ------------------------------------------------------------------
> > > > ---- For information about J forums see
> > > > http://www.jsoftware.com/forums.htm
> > > --------------------------------------------------------------------
> > > -- For information about J forums see
> > > http://www.jsoftware.com/forums.htm
> > > --------------------------------------------------------------------
> > > -- For information about J forums see
> > > http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
>
>
> --
>
> Devon McCormick, CFA
>
> Quantitative Consultant
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> 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