Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Stacking overlay plots

Mar 3, 2009 5:54 AM
(2129 views)

Hi,

I thought I might be able to stack overlay plots into one window in a script like this:

Distribution(

stack( 1 ),

Overlay Plot(

X( :static_clear_rel ),

Y( :MxBmin, :Pred Formula MxBmin ),

Sort X( 0 )

),

Overlay Plot(

X( :static_clear_rel ),

Y( :MxBmax, :Pred Formula MxBmax ),

Sort X( 0 )

),

)

But no window pops up, and I get no warnings/errors. If I change it to the following, I do get 2 separate windows to popup:

//Distribution(

// stack( 1 ),

Overlay Plot(

X( :static_clear_rel ),

Y( :MxBmin, :Pred Formula MxBmin ),

Sort X( 0 )

);

Overlay Plot(

X( :static_clear_rel ),

Y( :MxBmax, :Pred Formula MxBmax ),

Sort X( 0 )

);

//)

I thought I might be able to stack overlay plots into one window in a script like this:

Distribution(

stack( 1 ),

Overlay Plot(

X( :static_clear_rel ),

Y( :MxBmin, :Pred Formula MxBmin ),

Sort X( 0 )

),

Overlay Plot(

X( :static_clear_rel ),

Y( :MxBmax, :Pred Formula MxBmax ),

Sort X( 0 )

),

)

But no window pops up, and I get no warnings/errors. If I change it to the following, I do get 2 separate windows to popup:

//Distribution(

// stack( 1 ),

Overlay Plot(

X( :static_clear_rel ),

Y( :MxBmin, :Pred Formula MxBmin ),

Sort X( 0 )

);

Overlay Plot(

X( :static_clear_rel ),

Y( :MxBmax, :Pred Formula MxBmax ),

Sort X( 0 )

);

//)

3 REPLIES 3

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Stacking overlay plots

You may need to enclose the Overlay scripts in a

New Window("Window Name", XXXX)

Replace the XXXX with the scripts you're trying to paste together. You can format the output using horizontal and vertical list boxes (vlistbox and hlistbox).

New Window("Window Name", XXXX)

Replace the XXXX with the scripts you're trying to paste together. You can format the output using horizontal and vertical list boxes (vlistbox and hlistbox).

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Stacking overlay plots

Another way would be to stack your data, then just use one overlay with grouping column.

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Stacking overlay plots

You can use the frame box copy and paste feature to stick the charts together.

new window("my wnd",

c1= Overlay Plot(

X( :static_clear_rel ),

Y( :MxBmin, :Pred Formula MxBmin ),

Sort X( 0 )

);

c2 = Overlay Plot(

X( :static_clear_rel ),

Y( :MxBmax, :Pred Formula MxBmax ),

Sort X( 0 )

);

);

// copy the framebox of the first chart and drop it on the second.

fb1 = (c1<< report())[framebox(1)];

fb1 << copy frame contents();

fb2 = (c2<< report())[framebox(1)];

fb2 << paste frame contents();

// you can now delete the first chart if you want.

c1 << delete();

new window("my wnd",

c1= Overlay Plot(

X( :static_clear_rel ),

Y( :MxBmin, :Pred Formula MxBmin ),

Sort X( 0 )

);

c2 = Overlay Plot(

X( :static_clear_rel ),

Y( :MxBmax, :Pred Formula MxBmax ),

Sort X( 0 )

);

);

// copy the framebox of the first chart and drop it on the second.

fb1 = (c1<< report())[framebox(1)];

fb1 << copy frame contents();

fb2 = (c2<< report())[framebox(1)];

fb2 << paste frame contents();

// you can now delete the first chart if you want.

c1 << delete();

Article Labels

There are no labels assigned to this post.