AnsweredAssumed Answered

VRf: HPGL files, more

Question asked by VRFuser on May 28, 1996
VRf: HPGL files, more
from Johannes Mulder

Thanks for the response. I was not aware of this way to generate
output from a display. This helps me a lot.

How I intend to use this: our documenting facilities are
'oldfashioned' (WP5), and I need to generate many reports with many
graphs. For this I need a vector oriented interface and not
bitmapped to keep the files reasonable size. HPGL has proven to be a
good way to do this.

>from Greg:
> It can be done -- set up the HP PLOTTER driver under Windows Control
> Panel -> Printers, and then generate output to a file.  A PLOT will
> then direct output to the file in HPGL format.
>
> Unfortunately, the HP PLOTTER driver is not a very good driver and
> you may not get entirely clean results.

It works good as interface to WP5.

>from Stan:
> What doesn't work with the built-in VEE hpgl output? Is it perhaps
> not as flexible or controllable as you want?
> I tend to be content with the built-in plot routine here.
> Perhaps, though VEE is mostly bitmapped and HPGL is strictly vector,
> so at best I wouldn't expect a very strong mapping.
> The displays already put out HPGL. --
> What would you expect from an HPGL input?

I overlooked this function completely. But now I know, and I tried,
it looks good, but I need just sligthly more, which maybe is possible...?

In WP5 the plot shows up vertically oriented. Is it possible to
rotate it automatically from HPVEE?

I would like my default printer unchanged in Windows, but only from
HPVEE automatically this plot-to-file printer. Is this possible?

I would like to add some comment (like timestamp) for documenting.
Is there a decent way?

It would be nice to be able to recall such HPGLfile to display again
as reference for new measurements, or even reprocess. Thus in fact
treat it as a record.
I expect this can't be done easily. Maybe it is more feasible to
save the same as record as well?

By the way: when I want to save an array of coord's, how can I force
it to be saved in different format for the X and the Y component
(like X with 2 decimals accuracy x.xx, and Y with 4 y.yyyy)?
With kind regards,

              Johannes Mulder
              Philips Electron Optics
              Building AAE-room 21
              P.O.B. 218
              5600 MD ACHT, the Netherlands
              tel +31 40 2766947
              fax +31 40 2766820

from: Greg Goebel / HP-MXD
      gvg@lvld.hp.com / 970-679-3030 / FAX 970-679-5971
to:   Johnannes Mulder
date: Wednesday, 29 May 1996 0827 MDT

> In WP5 the plot shows up vertically oriented. Is it possible to
> rotate it automatically from HPVEE?

No, I am certain there is no way.  You might check the plotter driver options,
though.

> I would like to add some comment (like timestamp) for documenting.
> Is there a decent way?

Not on the plot itself.  We get a lot of complaints about this but it is
tricky to integrate into the graph object itself.  One option would be to
open the HPGL file and directly append the appropriate HPGL commands into it
-- move to coordinate, set label origin, set character size, draw label.
I've never tried this but it might work.

> It would be nice to be able to recall such HPGLfile to display again
> as reference for new measurements, or even reprocess. Thus in fact
> treat it as a record.

You would be better off to just save the data and redraw it.

> By the way: when I want to save an array of coord's, how can I force
> it to be saved in different format for the X and the Y component
> (like X with 2 decimals accuracy x.xx, and Y with 4 y.yyyy)?

Are you simply saving it as a container?  Then you would have no formatting
capability.  If you want to do formatted output, you would need to break
down the array into parts and then output them in a formatted fashion as
REAL values instead of containers.

> With kind regards,
>
>               Johannes Mulder
>               Philips Electron Optics
>               Building AAE-room 21
>               P.O.B. 218
>               5600 MD ACHT, the Netherlands
>               tel +31 40 2766947
>               fax +31 40 2766820

If you have more questions, let us know.

[<>] regards -- gvg

Outcomes