Skip to main content

Thread: how to use Plotutils


hello everyone,

have been trying run plotutils sample program listed on pages 97 , 98 of plotutils man. these sample programs written in c. using plotutils-2.6.

first program draws complex helical shape. able compile using
gcc -c plotter.c

, use the following swithces link step:
-lplot -lxaw -lxmu -lxt -lsm -lice -lxext -lpng -lz -lm

program links without hickup, loads, , runs. but, instead of seeing visual image on term window see instead long series of integers plus english writing. looks if output coming intermediate file , should instead headed off x11 window--which doesn't in fact appear.

perhaps plotutils experience suggest solution?

regards,
mark allyn aka allynm

i *don't* have plotutils experience, example as-is appears write postscript output stdout:

code:
/* create postscript plotter writes standard output */ if ((plotter = pl_newpl_r ("ps", stdin, stdout, stderr, plotter_params)) == null)
you try redirecting program output .ps file , opening postscript viewer e.g. gsview

there appear instructions on following couple of pages modifying arguments to pl_newpl_r for other types of output - including popping x window:

if "x" specified first argument of pl_newpl_r, curve drawn
in popped-up x window, , output stream argument ignored.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu how to use Plotutils


Ubuntu

Comments

Popular posts from this blog

Thread: Raspberry pi wont get past the login menu!!!

NIK SELECTIVE TOOL INTERMITTANT FAILURE.