Contour plot weird problem<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />Hi,
I used JMP for a few years and recently got a strange problem during a contour plot. Please see attached JMP file (test.jmp).
The data was plotted correctly in matlab. In the attached file, if I just plotted freq from 0.2 to 0.8, everything looked good (as left image). But if I included freq=0.9, the plot is changed completely (actually, the plot shrunk to a single line, as right image). I also noticed even I didn't add new data, but changed the exist data slightly, the plot was changed completely to a line, i.e. I changed one data freq from 0.8 to 0.9. It's so weird to me.
Can anyone give me a help?
Thanks a lot!
-Lei
Re: Contour plot weird problemHi Lei,
Contour Plot computes a triangulation of the data as a basis for doing the interpolation for contours. It looks like the triangulation step is failing in this case due to the different scales for X & Y.
There is an option under the red-triangle menu for "Transform", with two options. The default is None, and it will triangulate without any scaling of the data. If you change this to "Range Normalized", each axis will be scaled independently prior to the triangulation, and this appears to resolve the issue for this example.
Changing the Transform can sometimes cause changes in the contours (due to changes in the triangulation), but in this case with data specified on a grid there should be no difference.
-Dan
Re: Contour plot weird problemHi Lou,
Interesting, I did what you said. It worked. Maybe the original column 2 value is too small? anyway, I also submitted the question to JMP technical support. Before getting reply from them, your method worked pretty well.
Thanks,
-Lei
Re: Contour plot weird problemHi L.
I may have found the problem. I added a new column (Column 4) that was just Column 2 * 1,000,000,000 and I was able to obtain the contour plot.

Re: Contour plot weird problemHi Lou,
Thanks for looking into it. I am glad to get the contour plot :-). I did contour plot with other software. But I just wanted to make all my contour plot in my slides consistent. I will submit a technical support and keep everyone updated.
Thanks,
-Lei (I don't know why the forum automatically change my name "Lei" to "she", another weird thing.)
Re: Contour plot weird problemHi L.
I see the same funny behavior as you do when I un-exclude the 0.9 rows using the Graph>Contour Plot platform. Tech support should be alerted.
When I Fit Model with Column 3 as the response and Column 1 and Column 2 as factors I am able to get the contour plot

Re: Contour plot weird problemHi dlee0416,
Thanks for your time to look into it.It's just weird. I never have this problem before. Other tools like matlab or excel are fine with this contour plot. Thanks for your suggestion. I may submit a technical support as a bug.
Thanks,
-Lei
Re: Contour plot weird problemGuleiss,
I see your problem. I have tried to create a meaningful contour plot and for some unknown reason I get the same result when adding the 0.9 data. I'm attaching a jmp file showing several plots that definitely show the data and the surface. I even used another program and got a very nice contour map. I think you might have stumbled into a bug. I'd suggest contact Technical Support. Sorry I couldn't be of more help. Please let me know or private message when the final 'fix' is determined.
Dave
Re: Contour plot weird problemHi dlee0416,
Thanks for your reply. Sorry, I forgot to mention I excluded 0.9 data in the .jmp file. It makes curve looks weird. They are actually in the .jmp file. Please help. I also tried these data with excel contour plot and looked good.
Thanks,
-Lei
Re: Contour plot weird problemHere's the code to do this in JSL:
Contour Plot(
X( :Column 1, :Column 2 ),
Y( :Column 3 ),
Show Data Points( 0 ),
Fill Areas( 0 ),
Label Contours( 0 ),
Transform( "None" ),
Specify Contours(
Min( 5 ),
Max( 35 ),
N( 7 ),
Contour( 1, 5, -2380261 ),
Contour( 2, 10, -1998002 ),
Contour( 3, 15, -1285756 ),
Contour( 4, 20, -58112 ),
Contour( 5, 25, -7246852 ),
Contour( 6, 30, -12018696 ),
Contour( 7, 35, -16125962 )
),
SendToReport( Dispatch( {}, "1", ScaleBox, {Max( 0.9 )} ) )
);
Re: Contour plot weird problemGuleiss,
I plotted the data you provided and there is no data >0.8. In my original plot I just manually changed the axis settings.

Re: Contour plot weird problemHi, dlee0416,
Sorry, I might draw my conclusion too soon. After JMP re-installation, I actually still got the problem. In your plot, the column1 is still from 0.2 to 0.8. Can you please try add 0.9 data and see if you have similar problem?
Thanks,
-Lei
Re: Contour plot weird problemThanks, I reinstall the JMP12. It seemed the problem solved.
Re: Contour plot weird problemI ran the same analysis and extended the x-axis to include 0.9 and got a nice looking plot. What version of JMP are you using? I'm using v12. Perhaps you accidentally rescaled the y axis as well.
