Brent Wood <[EMAIL PROTECTED]> writes:
> On 22 Jan 2003, Nicolas Neuss wrote:
>
> > Greetings,
> >
> > Here is (probably) an easy question: What is the best way to print DX
> > pictures to postscript? (Especially for an xy-graph it is annoying to get
> > it white on black.)
> >
>
> DX can print PS directly. Assuming your onscreen picture is from the image
> module, this will work fine:
>
> Image -> Render -> Writeimage
>
> The Writeimage module allows you to choose from a range of formats
> including PS/EPS in color/gray.
>
>
> Cheers
>
> Brent Wood
This I have done. I guess my main problem is that the background is always
black which is not good for printing on white paper. There should be some
command for switching the background to white, but I didn't find it in the
reference manual.
Thanks, Nicolas
P.S.: Another problem is that the pictures are stored as bitmaps (as much
as I can see). Of course, this is very much overhead for a simple
xy-graph, see the example below. Is there a way to make better use of
postscript here?
----------------------------------------------------------------
object 1 class array type float rank 1 shape 1 items 8 data follows
0.
0.25
0.25
0.5
0.5
0.75
0.75
1.
object 2 class array type int rank 1 shape 2 items 4 data follows
6 7
4 5
2 3
0 1
attribute "element type" string "lines"
attribute "ref" string "positions"
object 4 class array type float rank 0 items 8 data follows
0.
9.37500e-2
9.37500e-2
0.125
0.125
9.37500e-2
9.37500e-2
0.
attribute "dep" string "positions"
object "simplex-part" class field
component "positions" value 1
component "connections" value 2
component "data" value 4
end
----------------------------------------------------------------
Look at it e.g. with
dx -script
data = Import("image-data-1d.dx");
data = Options(data, "mark", "circle");
xyplot = Plot(data);
camera = AutoCamera(xyplot);
image = Render (xyplot, camera);
Display (image);
Write it with:
WriteImage(image,"image-data-1d.dx", "ps");