Re: saving polymarkers to PostScript

Rene Brun (Rene.Brun@cern.ch)
Thu, 15 Jan 1998 08:19:08 +0100


Pasha Murat wrote:

> Hello,
>
> I'm drawing polymarkers on the screen as follows:
> --------------------------------------------------------------------------------
> ... snip
> // draw hit position
> posx = float(pos.x());
> posy = float(pos.y());
> gPad->PaintPolyMarker(1,&posx,&posy,"");
> --------------------------------------------------------------------------------
> and they appear OK in a canvas window. Then I save the canvas into .ps (or .eps)
> format and redisplay (with ghostview, for example) of the corresponding file
> doesn't show the saved polymarkers.
>
> It seems to be a problem specific to saving the polymarkers in Postscript format,
> because if I save the same canvas into .gif file I can redisplay it and see
> polymarkers on the screen where I originally put them.
>
> Am I missing something? - Thanks, Pasha.

Pasha,
This should be OK!
I need more info to understand the problem.
Check the value of the global variable gCurrentPS (include TPostScript.h)
just before gPad->PaintPolyMarker.
Check the marker style, color and size.
I assume that the3 lines of code above are part of the Paint function
of one of your classes.

Rene Brun