Subscribe Bookmark RSS Feed

is there a way to show the contours as Log scale instead of linear scale?

ram_asra_gmail_

Community Trekker

Joined:

Mar 21, 2013

Hi All, is there a way to show the contours as Log scale instead of linear scale?

5 REPLIES
Peter_Bartell

Joined:

Jun 5, 2014

Double clicking in the neighborhood of the axis on the Contour Profiler will bring up the traditional axis scaling modification window. From there you can modify the axis accordingly.

kevin_c_anderso

Community Trekker

Joined:

Jun 5, 2014

Hi, Ram!

Question: did you mean the axes, or the contours themselves?  More generally, what do you mean?

Peter nailed the axes.  But if you mean the contours, I think you may have a longer row to hoe.

ron_horne

Super User

Joined:

Jun 23, 2011

hi ram.asra@gmail.com​,

i am not sure what you are looking for but perhaps this can give you a starting point

dt = Open( "$SAMPLE_DATA/Hurricanes.jmp" );;

// this produces the contures in linear scale

plot1 = dt << Bivariate( Y( :Latitude ), X( :Longitude ), Nonpar Density );

// extract the density to the data table

plot1 << (Curve[1] << Save Density Quantile);

plot1 << (Curve[1] << color by density Quantile);

// transform the density as you wish in a new column

dt << new column ("Ln Density", formula (ln(:Density)));

// plot the transformed density

dt << Contour Plot(

     X( :Latitude, :Longitude ),

     Y( :Ln Density ),

     Show Data Points( 0 ),

     Fill Areas( 0 ),

     Label Contours( 0 ),

     Transform( "None" ),

     Specify Contours(

          Min( -7 ),

          Max( -1 ),

          N( 7 ),

          Contour( 1, -7, -5793511 ),

          Contour( 2, -6, -8423637 ),

          Contour( 3, -5, -10725064 ),

          Contour( 4, -4, -12632256 ),

          Contour( 5, -3, -12885662 ),

          Contour( 6, -2, -13595764 ),

          Contour( 7, -1, -14828355 )

     ),

     SendToReport(

          Dispatch( {}, "Contour Legend", FrameBox, {Frame Size( 102, 235 )} )

     )

);

// another plotting option - a mix of linear coloring and the log scale.

Scatterplot 3D(

     Y( :Latitude, :Longitude, :Ln Density ),

     Frame3D(

          Set Grab Handles( 0 ),

          Set Rotation( -56.0113386746381, -13.7470705335584, 1.38294617183857 )

     )

);

best,

ron

pmroz

Super User

Joined:

Jun 23, 2011

The forum software changed this line:


// this produces the contures in linear scale

plot1 = DT << Bivariate( And( :Latitude ), X( :Longitude ), Nonpar Density );


Change And to Y to get it to work.

Jeff_Perkinson

Community Manager

Joined:

Jun 23, 2011

I branched a thread from here on how Translation in the JMP User Community​ affects JSL.

-Jeff

-Jeff