Re: XForms: Printing of xyplots?

Ivan Powis (
Thu, 14 Aug 1997 9:49:30 BST

To subscribers of the xforms list from Ivan Powis <> :

> To subscribers of the xforms list from "Dr. T.C. Zhao" <> :
> fd2ps should be adequate. Of course, xyplot and
> charts are kind of special, and adding a postscript
> output option (say, fl_xyplot_dump(FL_OBJECT *, const char *ps_filename))
> might not be too bad an idea.

Please !!!! I would _greatly_ welcome this, I think that dumping an
xyplot or chart to hardcopy (postscript) is frequently desirable.
Whilst I understand the general reservations expressed by some about
bloating xforms this sounds to be a very modest addition.

My own objection to tacking on one's own ps output driver (from one of
sources mentioned along this thread) is that the application then has
to duplicate the programming required to generate the xyplot (scaling,
annotation, plotting data, interpolating lines) and the results may be
far from WYSIWYG. It kind of takes away the convenience of using
xyplot doesn't it?

An alternative might be to take a widely available, reasonably stable
graphing library (eg PGPLOT) and to create a canvas for it within
xforms, a la GL or mesa canvases already provided. An application
could then generate a plot either within an xforms GUI or (by
selecting a different output driver within the graphing library) to
any other device. Ultimately this would offer more flexibility than an
xyplot, it would not bloat the xforms library itself but it would
enhance its use for many scientific/technical applications where
graphing data is an inherent part of an application's GUI. Anyone
willing to undertake this?

But TC please lets have fl_xyplot_dump()


    ___  ___/   _  __ /  Ivan Powis                TEL: +44-115-951-3467 |
        /         /   /  Department of Chemistry   FAX: +44-115-951-3562 |
       /         /  _/   University of Nottingham                        |
      /         ___/     Nottingham NG7 2RD                              |
     /         /         UK                                              |
    /         /                           | 
_______/  ____/              |

_________________________________________________ To unsubscribe, send the message "unsubscribe" to or see Xforms Home Page: List Archive: