On 2009-09-28 15:51+0200 Mark de Wever wrote:

> Hi Alan,
>
> Alan W. Irwin wrote:
>> On 2009-09-25 14:36+0200 Mark de Wever wrote:
>> 
>>> From Alan's mail in that thread I understood that not using offset in
>>> the other drivers was seen as a minor omission. I see some use for the
>>> offset parameter for the extcairo driver; eg you could add a border to
>>> the widget and by setting a proper clip rectangle you can avoid plpot to
>>> draw over that part of the widget. But at the moment I've no use for the
>>> offset value.
>> 
>> The x,y offsets have nothing to do with the internals of plotting anything
>> (such as clipping) or with the plotting widget itself (such as widget
>> borders).  Instead, those offsets are reserved exclusively (I agree with
>> Werner about that) for specifying the position of the widget relative to 
>> the
>> overall screen. In this way, the PLplot -geometry option (for those drivers
>> who have implemented window offsets) should be interpreted exactly like the
>> X -geometry option.  See "man X" for details about -geometry.
>
> Then it seems I misunderstood your last mail about this subject. So the 
> offsets of geometry are only useful for widgets the are shown in a Xwindow. 
> That means I can ignore the offsets in my extcairo widget since it's not 
> directly in a Xwindow.

I am pretty sure your conclusion is not correct.  The offsets refer to the
position of the widget on the X root window that corresponds to the physical
device (monitor or LCD).  So you can specify an offset relative to the
constant root window for _every_ widget on Linux (since it ultimately uses X
for display). I haven't looked deeper at it, but I assume both the Qt4 and
cairographics library stacks provide access to this X capability for their
respective X backends so it will be simply a matter of finding out how
that is done and using the PLplot offsets appropriately.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to