cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
marcokunzelmann
Level III

How to overlay two contour plots?

Hello community,

short and hopefully an easy question. I want to overlay 2 contour plots, how can I do that in an simple way?

Please give me a detailed description, I'm totally new to jmp

Greetings!

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to overlay two contour plots?

Hi,

Make your contour plots and then right click in one of them.  Go to Edit > Copy Frame Contents.  Go to the other plot right click and go to Edit.  Select Paste Frame Contents.

Best,

Bill

View solution in original post

11 REPLIES 11

Re: How to overlay two contour plots?

Hi,

Make your contour plots and then right click in one of them.  Go to Edit > Copy Frame Contents.  Go to the other plot right click and go to Edit.  Select Paste Frame Contents.

Best,

Bill

bwilliamson
Level II

Re: How to overlay two contour plots?

I don't have the "Copy" or "Paste Frame Contents" as an option under the Edit heading on the graph (JMP 12.0.1)... =(

 

Does the contour plot have to be based on a model? I'm using a plethora of data points to make the contour plots.

 

Thanks

David_Burnham
Super User (Alumni)

Re: How to overlay two contour plots?

Where are you looking? This is a feature associated with all graphs and has been around as long as I can remember so you will have it in version 12.  Right mouse click in the graphical area.  This is where you will typically have options to change line widths, marker size etc.  The last option is Edit.  This is a menu of options including the ability to copy and paste frame contents.

-Dave
bwilliamson
Level II

Re: How to overlay two contour plots?

X_x
I was looking under the "Edit" menu in the toolbar, not the popup menu on the plot area.
Thanks for your help!
KyleJK
Level I

Re: How to overlay two contour plots?

This works fine in a manual sense, but how do you generalize/automate this?  I created two contour plots like this and copied one over to the other.  Then I tried saving that script, but the copied contours were not saved in the script.  This means I would have to run both scripts and copy every time I wanted to see the chart.

 

Basically, I am trying to add a contour for a second variable that I am using as a constraint for the design space.  I know you can use the Contour Profiler to easily add multiple contours and create upper and/or lower limits, but the Contour Profiler forces you to fit models to the data first.  My data can not be fit well in this case, so I would like to display limit contours of seveal variables using the Contour Plot platform (or the Contour Functionality within the Graph Builder, either way). 

 

If I could generate one script that would plot the contours for all of my limiting variables separately and then superimpose the limiting variables on top of my main variable of interest, that would be great.

 

Any ideas?

Re: How to overlay two contour plots?

You could stack the table so that all of the responses appear in one column and JMP will create the indicator column. Use the indicator column in the overlay drop zone.

Re: How to overlay two contour plots?

Here is a simple example. I want to separately plot contours for three pulse values versus Oxy. I stack the three columns and call it Pulse. The source column names are saved in a new indicator column that is used in the Overlay role.

dt1 = Open( "$SAMPLE_DATA/Fitness.jmp" );

dt2 = dt1 << Stack(
	Columns( :RunPulse, :RstPulse, :MaxPulse ),
	Source Label Column( "Source" ),
	Stacked Data Column( "Pulse" )
);

Close( dt1 );

dt2 << Graph Builder(
	Size( 530, 452 ),
	Show Control Panel( 0 ),
	Variables( X( :Oxy ), Y( :Pulse ), Overlay( :Source ) ),
	Elements( Contour( X, Y, Legend( 5 ) ) )
);
KyleJK
Level I

Re: How to overlay two contour plots?

This is sort of in the right direction, but not quite.  I like that it shows all three contours, but I need each group to have numerical contours, not just density.  Something similar to if you ran your script and then in the graph builder you dropped the "Runtime" column into the "Color" role.  This shows three separate sets of contours, which is what I want, but each one needs its own scale, and I need just the lines instead of being filled in so that they don't cover each other up.  Even if I can't have separate scales, then labeling each contour would suffice (just like how the Contour Profiler does it).

PB
PB
Level I

Re: How to overlay two contour plots?

Hello,

Can you please explain? I tried your method here, i.e. copy Y1 contour in Y2 contour image. But instead of superimposing both, Y2 got completely replaced by Y1.



Is there a way that I can superimpose two or more contour plots in the same image for better visualization?

Another question: Is there a way to highlight specific values of Y1 or Y2 in the contour plots? That would allow for a visual solution of system of equations.

Thank you!