From: <hba...@ma...> - 2007-03-09 03:05:49
|
On Mar 7, 2007, at 9:34 PM, James Frye wrote: > Hi, > > I want to use plplot to draw plots within a gtk user interface. > When I > run the examples (C language version) with the gnome driver, > however, the > plots remain a fixed size when the window size is changed. That > is, if I > start with a plot that just fills the window, and enlarge that > window, the > plot doesn't change, but just gets a larger border around it. I can't > find anything in the manual or mailing list archives that seems to > relate > to this problem. Is there a way to fix it? > > Another option would be to use the xwin driver, and use reparenting > to get > the contents into a GTK widget, but I don't see any sort of > mechanism for > user feedback. I'm not so familiar with the gnome driver, but my guess is that it is up to you to detect that the window size has changed and redraw the plot. > What I want to do is display a large set of data, and allow the > user to > zoom in on areas of interest by clicking on the plot. Have I missed > seeing an example that shows how to do this? There is a function for getting the location of mouse clicks called plGetCursor. Unfortunately it doesn't seem to be in the documentation, but it is used in example1 (examples/x/x01.c). -Hazen |