# To subscribers of the xforms list from Steve Lamont <spl@ncmir.ucsd.edu> :
> How do I alter the type of an xyplot part way through the session? I
> want sometimes to have it just plot the points ( as dots) and sometimes
> to plot lines joining the points. At present I have it defined as an
> FL_NORMAL_XYPLOT but want it to be a FL_POINTS_XYPLOT at other times.
One way to do it is to just create a new XYPlot object with the
attributes you want. Just pick off all the appropriate info from the
old `FL_OBJECT' structure and set the parameters appropriately.
Other than that, you might be able to be tricky and use an overlay.
I actually do something like that in an application where I want to
select a chunk of a graph by using three levels of XYPlot overlay.
What I do is plot the basic data as a FL_NORMAL_XYPLOT, then overplot
the same data in FL_DOTTED_XYPLOT mode with an overlay at overlay #2.
When drawn, the FL_DOTTED_XYPLOT data just draws over the
FL_NORMAL_XYPLOT base level plot and can't be seen. When I select a
region of the plot for highlighting, what I do is to add a
FL_FILL_XYPLOT with values in the appropriate range at overlay #1
using the background color. This effectively hides the base
FL_NORMAL_XYPLOT and the FL_DOTTED_XYPLOT only are visible.
This may not be exactly what you want to do but it may give you some
ideas about tricks you can do.
> Secondly is it possible to get the IMPULSE graph to start a 0 and go up
> to the data point rather than starting at the bottom of the graph?
Unforturnately, I don't think so.
spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/
This archive was generated by hypermail 2b29 : Sat Jan 27 2001 - 05:54:47 EST