Is there a way to get a list of the waves associated with a Graph?

If I know the name of a graph (e.g. Graph10), can I get the waves associated with the data plotted?

E.g. on Graph10 I plot waves Ext_1_9_1 vs F_1_9_1. I would like to have a function GetWavesOnGraph(Graph10) which returns those two waves.

As a corollary, is there a way to get a list of waves created from curve fitting data on a Graph?
Wavelist("*", ";", "WIN:Graph10") will give you a list of waves in Graph10, if they are in the current data folder. We don't, in fact, have a good way to return a list of waves from various data folders.

There is also no way to restrict the output of WaveList to only those waves that are curve fit output, unless they have a name pattern. If you use the default fit with /D, then you can use WaveList("fit_*", ";", "WIN:Graph10")

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com