Subscribe Bookmark RSS Feed

Refer to open data table in V List Box Overlay Plot

terapin

Community Trekker

Joined:

Jun 23, 2011

Perhaps this is a simple thing that I'm just completely missing, but I can't figure out how to refer a specific open data table from many open data tables in a V List Box graphical structure. Below is my code for the Overlay Plot I'm producing and the various Reports I issue to modify the various Overlap Plot settings.

Does anyone have an idea how I can specify the data table I want to use in this Overlay Plot? Thanks.

sdate = Date MDY ( 01, 01, 2007 );
edate = Date MDY ( 12, 31, 2007 );

dt1 = Data Table( "PAR, VP, SM, LSP Data, All Sites, by Column By (Year, Month, Day of Year)");
dt1<dt1 << Clear Row States();


New Window("Window Title",
V List Box(
op1 = Overlay Plot(
X( :Name( "Min(Date & Time)" ) ),
Y( :Name( "N(Corrected PAR Up (umol/m2/sec) FCO)" ) ),
Separate Axes( 1 ),
Overlay Groups( 1 ),
Connect Thru Missing( 1 ),
),
Report ( op1 )[ Frame Box ( 1 ) ]
<< Frame Size( 750, 350 ),
Report ( op1 ) [ Axis Box ( 1 ) ]
<< Axis Settings( { Format( "Fixed Dec", 10, 0), Min( 0 ), Max( 25 ),
Inc( 2 ), Minor Ticks( 1 ), Show Major Grid( 1 ) } ),
Report ( op1 ) [ Axis Box ( 2 ) ]
<< Axis Settings( { Format( "m/d/y", 10 ), Interval( "Month" ),
Inc( 1 ), Minor Ticks ( 0 ), Show Major Grid( 1 ), Show Minor Grid ( 0 ),
Min( sdate ), Max( edate ) } )
<< Remove Axis Label
<< Add Axis Label ( "Date" ),
)
);
2 REPLIES
Either explicitly set the current data table:

Current Data Table(dt);
Overlay Plot( ... );

or apply the overlay plot to the data table:

dt << Overlay Plot (...)
terapin

Community Trekker

Joined:

Jun 23, 2011

Thanks again _Stig_ for helping out. The syntax for dealing with the Overlay Plot was op1 = dt << Overlay Plot( ... ) as you noted.