-----BEGIN PGP SIGNED MESSAGE-----
Hi Rafael and Marco,
Answers to both of your comments/questions are below.
On Tue, 13 Apr 2004, Rafael Laboissiere wrote:
> It would be great to have it included in the PLplot project, such that your
> driver will be available in the distribution tarball. After I will have not
> looked at your code, I will decide whether I abandon my old gnome driver or
> we support both. I like some features of the current gnome driver that I
> did not see in your gcw demo, like zooming and mouse interaction. Also,
> what happens with the gcw driver for multiple pages plots?
Great! Feel free to put this into the plplot cvs or Marco's cvs,
whichever is more appropriate at this point.
I think the gnome driver and gcw driver / plplotcanvas widget
serve two different purposes, and so it may be handy to keep both: it's up
to you. There are definitely features that could be added, but I
wanted to get your input first.
Zooming and mouse interaction shouldn't be a problem, and we can
probably just adapt code from the gnome driver.
The animation demo that I provided actually uses multiple pages. The
PlplotCanvas uses two groups: one shown, and one hidden. Plotting
commands write data to the hidden group. When the plplot page is
advanced, the hidden group is shown, and the former shown group is
What I should probably do over this next week is document in detail
how the gcw driver and PlplotCanvas work and interact. I should probably
also write up how to create and install a plplot driver: to accomplish
this, I had to learn way more about the plplot internals than I ever
wanted to know. ;)
> There are two improvements that I would like to see in the gnome driver: (1)
> color palette edition like in the Tk driver (that should be straightforward
> to port to Gtk/Gnome), and (2) HAS_TEXT support, using libpango. The later
> may be trick to implement, I do not know if libpango allows arbitrary
> character transformation, like rotation and shear.
OK: We can certainly look into this.
On Wed, 14 Apr 2004, Marco Presi wrote:
> o) antialiased stuff (eventually as an option).
This is already done. Call plplot_canvas_new_aa() from C, or
plplotcanvas.CanvasAA() from python to create an antialiased canvas. The
animation runs much slower in antialiased mode.
> o) a zoom function (it's _really_ easy with the canvas) with
> rectangular selection. I mean: make a square with the mouse
> and the zoom inside it.
The only consideration here is that I already use zoom to help size
the widget; but I'm sure that we can work it out. Allowing for arbitrary
sizes was a challenge, and I will document my approach to it.
> o) the possibility to interact with the plot (move lables,
> graphs..). This is also really easy inside a canvas.
> I also compiled the demo against plplot-5.3.0 (the version from
> Debian unstable archive), and it works fine.
Great! I guess that I should upgrade to the new version.
> So, Thomas, let me know how do you like to proceed. I have a cvs
> space that we can use to work before put the new driver into the
> plplot cvs (if Raphael agrees).
I'm happy to see it in either cvs. I look forward to working with
you on this.
Thomas J. Duck <tomduck@...>
Department of Physics and Atmospheric Science, Dalhousie University,
Halifax, Nova Scotia, Canada, B3H 3J5.
Tel: (902)494-1456 | Fax: (902)494-5191 | Lab: (902)494-3813
Public key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x17D965DB
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
-----END PGP SIGNATURE-----