Hello,
I am using the following to plot over 500 rectangles:
plot [0:50] -10*x
set object 2 rect from 10, -65 to 6, -143
set label 3 at 10, -65 "1" front
replot
pause mouse key "rectangle 1 - hit tab to clear";
if(MOUSE_KEY == 9) reset
set object 4 rect from 21, -65 to 17, -143
set label 5 at 21, -65 "2" front
replot
pause mouse key "rectangle 2 - hit tab to clear";
if(MOUSE_KEY == 9) reset
set object 6 rect from 30, -348 to 6, -387
set label 7 at 30, -348 "3" front
replot
pause mouse key "rectangle 3 - hit tab to clear";
if(MOUSE_KEY == 9) reset
<etc>
So after each rectangle is added to the plot, the user
is allowed to examine the plot for as long as needed.
He then has the option to add another rectangle to
the plot or to clear the plot and then add another
rectangle.
1) Is there a better way to do the User Interaction?
2) Also, when the user is examining the plot, how to
support allowing him to zoom-in into user-specified
regions?
3) The only use for the very first plot line is to
to specify the size of the canvas. What's a better
way to do this?
Thanks,
--Suresh
|