Hi Hez,
Hezekiah M. Carty wrote:
> On Tue, Oct 13, 2009 at 8:10 AM, Mark de Wever <[email protected]> wrote:
> The Qt widget and wxwidgets drivers keep their own, driver-specific,
> lists of all plotted elements. So when a plot window using one of
> those devices is resized the plot is replayed automatically using that
> list, rather than by calling plreplot or plRemakePlot. In order to
> have this support for the Cairo devices we either need to add
> something to cairo.c specifically or add support within PLplot's core
> for a non-device-specific plot replay buffer as I mentioned in my
> previous email.
Thanks for the explanation.
>> How do you feel about the PLESC_INIT_FIT to rescale the canvas?
>
> I am not sure I understand your goal with this. Is it simply to allow
> the user to avoid setting the surface geometry themselves and have
> PLplot infer it from the clipping rectangle? I currently use
> plsetopt("geometry", "800x600") where 800x600 is the size of the Cairo
> surface to let PLplot know what size to use. I'm not sure if an extra
> PLESC_INIT_* path is needed as I could see it causing strange behavior
> and bugs which are difficult to track down if something other than
> PLplot is acting on the Cairo surface. If there is enough demand for
> this, though, then we can add it.
I use the geometry option for initial sizing, but when the widget gets
resized I want to notify plplot that the size of the drawing area has
changed. But maybe, since we don't want to implement the redraw, the
code could also be executed in the normal PLESC_INIT routine and always
use the size of the clipping rectangle.
The other option would be to recreate the plstream object in my code for
every resize, but I prefer to reuse the existing object.
Regards,
Mark de Wever
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) 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/devconference
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel