If I replace that final line with
   pd 'save png ~user/temp/fig1.png'

It works for me.

So that suggests a problem specific to your system.

Some questions:

(1) Have you installed all addons, and are they up to date? When I
look at open'jwplot' I see this line:
require 'graphics/afm graphics/color/colortab graphics/bmp
graphics/png math/misc/trig'

(2) If that doesn't get this working for you, it's possibly an
architecture specific issue, in which case the contents of JVERSION on
your system might help isolate the problem.

FYI,

-- 
Raul

On Wed, Feb 16, 2022 at 7:23 AM Pawel Jakubas <jakubas.pa...@gmail.com> wrote:
>
> Dear J users,
>
> I am trying to generate png output for the plot (I tried the same with j903
> in debian/arch linux):
>
>    load 'plot numeric'
>    xs=:steps 0p1 2p1 100
>    ys=:sin xs
>    pd 'reset'
>    pd 'type line'
>    pd 'pensize 3'
>    pd 'itemcolor 0 0 255'
>    pd xs;ys
>    pd 'show'
>    NB. now I see the plot in a window
>    pd 'save png /home/pawel/j903-user/temp/fig1.png'
> First display an isigraph Plot.
>
> What am I missing something?
> Thanks very much in advance for hints.
> Cheers,
> Pawel
> ----------------------------------------------------------------------
> 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