cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-7302%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%A6%82%E4%BD%95%E5%9C%A8%E5%9C%96%E5%BD%A2%E4%B8%AD%E6%B7%BB%E5%8A%A0%2045%C2%B0%20(y%3Dx)%20%E7%B7%9A%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-7302%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20tahoma%2Carial%2Chelvetica%2Csans-serif%3B%20font-size%3A%2012pt%3B%22%3E%E6%9C%89%E8%AA%B0%E6%9C%89%E6%9B%B4%E8%81%B0%E6%98%8E%E7%9A%84%E6%96%B9%E6%B3%95%E5%9C%A8%20xy%20%E5%9C%96%E4%B8%AD%E6%B7%BB%E5%8A%A0%2045%C2%B0%20(y%3Dx)%20%E7%B7%9A%EF%BC%9F%20%E6%88%91%E7%9B%AE%E5%89%8D%E5%9F%B7%E8%A1%8C%E4%BB%A5%E4%B8%8B%E6%93%8D%E4%BD%9C%EF%BC%9A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3COL%3E%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20tahoma%2Carial%2Chelvetica%2Csans-serif%3B%20font-size%3A%2012pt%3B%22%3E%E5%9C%A8%E2%80%9C%E5%B9%80%E5%A4%A7%E5%B0%8F%E2%80%9D%E5%B0%8D%E8%A9%B1%E6%A1%86%E4%B8%AD%E5%B0%87%20x%20%E8%BB%B8%E5%92%8C%20y%20%E8%BB%B8%E5%83%8F%E7%B4%A0%E8%A8%AD%E7%BD%AE%E7%82%BA%E7%9B%B8%E5%90%8C%E7%9A%84%E5%80%BC%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20tahoma%2Carial%2Chelvetica%2Csans-serif%3B%20font-size%3A%2012pt%3B%22%3E%E4%BD%BF%E7%94%A8%E7%B9%AA%E5%9C%96%E5%B7%A5%E5%85%B7%E6%89%8B%E5%8B%95%E5%90%91%E7%B9%AA%E5%9C%96%E6%B7%BB%E5%8A%A0%E4%B8%80%E6%A2%9D%E7%B7%9A%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20tahoma%2Carial%2Chelvetica%2Csans-serif%3B%20font-size%3A%2012pt%3B%22%3E%E9%80%99%E6%A2%9D%E7%B7%9A%E5%BE%9E%E4%BE%86%E9%83%BD%E4%B8%8D%E6%98%AF%E5%BE%88%E5%AE%8C%E7%BE%8E%EF%BC%8C%E7%95%B6%E6%83%85%E7%AF%80%E6%94%B9%E8%AE%8A%E6%99%82%E5%BF%85%E9%A0%88%E9%80%B2%E8%A1%8C%E8%AA%BF%E6%95%B4%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20tahoma%2Carial%2Chelvetica%2Csans-serif%3B%20font-size%3A%2012pt%3B%22%3EJMP%20%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1%EF%BC%9A%E9%80%99%E5%B0%87%E6%98%AF%E4%B8%80%E5%80%8B%E5%BE%88%E5%A5%BD%E7%9A%84%E9%81%B8%E6%93%87%EF%BC%8C%E5%8F%AF%E4%BB%A5%E6%B7%BB%E5%8A%A0%E5%88%B0%EF%BC%9AY%20%E8%BB%B8%E8%A6%8F%E7%AF%84%E3%80%81%E5%8F%83%E8%80%83%E7%B7%9A%E3%80%82%20%E7%95%B6%E6%AF%94%E8%BC%83%E9%A0%90%E6%B8%AC%E8%88%87%E5%AF%A6%E9%9A%9B%E6%99%82%EF%BC%8C%E5%AE%83%E5%BE%88%E6%9C%89%E7%94%A8%EF%BC%9B%E5%AF%A6%E9%A9%97%E5%AE%A4%E6%B8%AC%E5%AE%9A%E5%80%BC%E8%88%87%E6%A8%99%E6%BA%96%E5%80%BC%EF%BC%9B%20ETC..%20%E9%80%B2%E4%B8%80%E6%AD%A5%E8%80%83%E6%85%AE%E9%80%99%E4%B8%80%E9%BB%9E%EF%BC%8C%E5%8F%AF%E4%BB%A5%E9%81%B8%E6%93%87%E8%BC%B8%E5%85%A5%20f(x)%20%E4%BD%9C%E7%82%BA%20y%20%E5%8F%83%E8%80%83%E7%B7%9A%EF%BC%8C%E7%94%9A%E8%87%B3%E6%AF%94%E5%83%85%E8%BC%B8%E5%85%A5%2045%C2%B0%20(y%3Dx)%20%E7%B7%9A%E6%9B%B4%E5%A5%BD%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-7307%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8%E5%9C%96%E5%BD%A2%E4%B8%AD%E6%B7%BB%E5%8A%A0%2045%C2%B0%20(y%3Dx)%20%E7%B7%9A%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-7307%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E9%80%99%E6%98%AF%E5%B9%B3%E5%8F%B0%E7%9A%84%E4%B8%80%E5%80%8B%E7%89%88%E6%9C%AC%EF%BC%8C%E5%85%B6%E4%B8%AD%E6%9C%89%E7%B4%85%E8%89%B2%E8%99%9B%E7%B7%9A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%20font-family%3A%20Times%20New%20Roman%3B%20font-size%3A%2012pt%3B%22%3E%26nbsp%3B%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edt%20%3D%20Open(%20%22%24sample_data%5CBoston%20Housing.jmp%22%20)%3B%0A%20%0Agb%20%3D%20Graph%20Builder(%0A%20%20%20%20%20%20%20Show%20Control%20Panel(%200%20)%2C%0A%20%20%20%20%20%20%20Variables(%20X(%20%3Arooms%20)%2C%20Y(%20%3Adistance%20)%20)%2C%20%20%0A%20%20%20%20%20%20%20Elements(%20Points(%20X%2C%20Y%2C%20Legend(%201%20)%20)%20)%2C%20%20%0A%20%20%20%20%20%20%20SendToReport(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20Dispatch(%20%7B%7D%2C%20%22rooms%22%2C%20ScaleBox%2C%20%7BMin(%200%20)%2C%20Max(%2012%20)%2C%20Inc(%202%20)%2C%20Minor%20Ticks(%201%20)%7D%20)%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20Dispatch(%20%7B%7D%2C%20%22distance%22%2C%20ScaleBox%2C%20%7BMin(%200%20)%2C%20Max(%2012%20)%2C%20Inc(%202%20)%2C%20Minor%20Ticks(%201%20)%7D%20)%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20Dispatch(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%7D%2C%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22Graph%20Builder%22%2C%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20FrameBox%2C%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7BMarker%20Size(%203%20)%2C%20Add%20Graphics%20Script(%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%2C%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Description(%20%22Script%22%20)%2C%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Pen%20Color(%20%22red%22%20)%3B%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Line%20Style(%20%22dashed%22%20)%3B%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Y%20Function(%20x%2C%20x%20)%3B%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20)%2C%20Grid%20Line%20Order(%201%20)%2C%20Reference%20Line%20Order(%203%20)%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20)%0A%20%20%20%20%20%20%20)%20%20%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%20style%3D%22margin%3A%200px%200px%2010pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%20font-family%3A%20Times%20New%20Roman%3B%20font-size%3A%2012pt%3B%22%3E%26nbsp%3B%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%20font-family%3A%20Times%20New%20Roman%3B%20font-size%3A%2012pt%3B%22%3E%E5%9C%96%E5%BD%A2%E5%85%83%E7%B4%A0%E8%A8%98%E9%8C%84%E5%9C%A8%E8%85%B3%E6%9C%AC%E6%8C%87%E5%8D%97%E4%B8%AD%EF%BC%8C%E5%BE%9E%E7%AC%AC%20497%20%E9%A0%81%E9%96%8B%E5%A7%8B%E3%80%82%E8%85%B3%E6%9C%AC%E6%8C%87%E5%8D%97%E4%BD%8D%E6%96%BC%20JMP%20%E5%B9%AB%E5%8A%A9%3D%3D%26gt%3B%E6%9B%B8%E7%B1%8D%3D%3D%26gt%3B%E8%85%B3%E6%9C%AC%E6%8C%87%E5%8D%97%E4%B8%8B%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-7306%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8%E5%9C%96%E5%BD%A2%E4%B8%AD%E6%B7%BB%E5%8A%A0%2045%C2%B0%20(y%3Dx)%20%E7%B7%9A%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-7306%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E5%A6%82%E4%BD%95%E5%B0%87%2045%20%E5%BA%A6%E5%8F%83%E8%80%83%E7%B7%9A%E9%87%8D%E6%96%B0%E6%A0%BC%E5%BC%8F%E5%8C%96%E7%82%BA%E8%99%9B%E7%B7%9A%E5%92%8C%E6%9B%BF%E4%BB%A3%E9%A1%8F%E8%89%B2%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-7305%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8%E5%9C%96%E5%BD%A2%E4%B8%AD%E6%B7%BB%E5%8A%A0%2045%C2%B0%20(y%3Dx)%20%E7%B7%9A%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-7305%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E9%80%99%E6%98%AF%E4%BD%BF%E7%94%A8%20Bivariate%20%E5%B9%B3%E5%8F%B0%E7%9A%84%E5%8F%A6%E4%B8%80%E5%80%8B%E8%85%B3%E6%9C%AC%EF%BC%88%E6%88%91%E4%BD%BF%E7%94%A8%20JMP%2010.0.2%EF%BC%89%EF%BC%9A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edt%20%3D%20Open(%22%24SAMPLE_DATA%2FFitness.jmp%22)%3B%0A%20%0Adt%20%26lt%3B%26lt%3B%20Bivariate(%0A%20%20Y(%3AMaxPulse)%2C%0A%20%20X(%3ARunPulse)%2C%0A%20%20SendToReport(%0A%20%20Dispatch(%0A%20%20%7B%7D%2C%0A%20%20%22Bivar%20Plot%22%2C%0A%20%20FrameBox%2C%0A%20%20%7BAdd%20Graphics%20Script(2%2C%20Description(%22Script%22)%2C%20YFunction(x%2C%20x))%2C%0A%20%20Grid%20Line%20Order(1)%2C%20Reference%20Line%20Order(3)%7D%0A%20%20)%0A%20%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-7304%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8%E5%9C%96%E5%BD%A2%E4%B8%AD%E6%B7%BB%E5%8A%A0%2045%C2%B0%20(y%3Dx)%20%E7%B7%9A%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-7304%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E5%BE%88%E9%85%B7%E3%80%82%E6%88%91%E5%9C%A8%E5%9C%96%E5%BD%A2%E7%94%9F%E6%88%90%E5%99%A8%E4%B8%AD%E5%98%97%E8%A9%A6%E9%81%8E%E5%AE%83%EF%BC%8C%E5%AE%83%E7%9A%84%E6%95%88%E6%9E%9C%E9%9D%9E%E5%B8%B8%E5%A5%BD%E3%80%82%E9%80%99%E6%98%AF%E4%B8%80%E5%80%8B%E4%BE%8B%E5%AD%90%EF%BC%9A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edt%20%3D%20open(%22%24sample_data%5CBoston%20Housing.jmp%22)%3B%0A%20%0Agb%20%3D%20Graph%20Builder(%0A%20%20%20%20Show%20Control%20Panel(%200%20)%2C%0A%20%20%20%20Variables(%20X(%20%3Arooms%20)%2C%20Y(%20%3Adistance%20)%20)%2C%0A%20%20%20%20Elements(%20Points(%20X%2C%20Y%2C%20Legend(%201%20)%20)%20)%2C%0A%20%20%20%20SendToReport(%0A%20%20%20%20%20%20%20%20Dispatch(%20%7B%7D%2C%20%22rooms%22%2C%20ScaleBox%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%7BMin(%200%20)%2C%20Max(%2012%20)%2C%20Inc(%202%20)%2C%20Minor%20Ticks(%201%20)%7D%20)%2C%0A%20%20%20%20%20%20%20%20Dispatch(%20%7B%7D%2C%20%22distance%22%2C%20ScaleBox%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%7BMin(%200%20)%2C%20Max(%2012%20)%2C%20Inc(%202%20)%2C%20Minor%20Ticks(%201%20)%7D%20)%2C%0A%20%20%20%20%20%20%20%20Dispatch(%20%7B%7D%2C%20%22Graph%20Builder%22%2C%20FrameBox%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%7BMarker%20Size(%203%20)%2C%20Add%20Graphics%20Script(%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%202%2C%20Description(%20%22Script%22%20)%2C%20Y%20Function(%20x%2C%20x%20)%0A%20%20%20%20%20%20%20%20%20%20%20%20)%2C%20Grid%20Line%20Order(%201%20)%2C%20Reference%20Line%20Order(%203%20)%7D%20)%0A%20%20%20%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-7303%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8%E5%9C%96%E5%BD%A2%E4%B8%AD%E6%B7%BB%E5%8A%A0%2045%C2%B0%20(y%3Dx)%20%E7%B7%9A%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-7303%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E5%9C%A8%E8%A3%A1%E9%9D%A2%3CEM%3E%E9%80%9A%E9%81%8E%20X%20%E6%93%AC%E5%90%88%20Y%3C%2FEM%3E%E6%82%A8%E5%8F%AF%E4%BB%A5%E9%81%B8%E6%93%87%E7%9A%84%E5%B9%B3%E5%8F%B0%3CEM%3E%E9%81%A9%E5%90%88%E7%89%B9%E5%88%A5...%3C%2FEM%3E%E4%B8%A6%E5%B0%87%E6%88%AA%E8%B7%9D%E9%8E%96%E5%AE%9A%E7%82%BA%E9%9B%B6%EF%BC%8C%E6%96%9C%E7%8E%87%E9%8E%96%E5%AE%9A%E7%82%BA%E4%B8%80%E3%80%82%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E5%9C%A8%E5%A4%A7%E5%A4%9A%E6%95%B8%E5%B9%B3%E5%8F%B0%E4%B8%AD%EF%BC%8C%E9%82%84%E5%8F%AF%E4%BB%A5%E9%80%9A%E9%81%8E%E5%9C%96%E5%BD%A2%E8%85%B3%E6%9C%AC%E7%B9%AA%E8%A3%BD%E4%BB%A3%E8%A1%A8%E5%87%BD%E6%95%B8%E7%9A%84%E7%B7%9A%E3%80%82%20%E5%8F%B3%E9%8D%B5%E5%96%AE%E6%93%8A%E5%9C%96%E8%A1%A8%E4%B8%A6%E9%81%B8%E6%93%87%3CEM%3E%E5%AE%9A%E5%88%B6...%3C%2FEM%3E%20%E5%9C%A8%E5%B0%8D%E8%A9%B1%E6%A1%86%E4%B8%AD%E6%8C%89%E5%8A%A0%E8%99%9F%E4%B8%A6%E9%81%B8%E6%93%87%3CEM%3EY%20%E5%8A%9F%E8%83%BD%3C%2FEM%3E%E5%9C%A8%E8%A3%A1%E9%9D%A2%3CEM%3E%E6%A8%A1%E6%9D%BF%3C%2FEM%3E%E4%B8%8B%E6%8B%89%E5%BC%8F%E8%8F%9C%E5%96%AE%E3%80%82%20%E6%B7%BB%E5%8A%A0%3CEM%3EY%20%E5%87%BD%E6%95%B8(%20y%20%3D%20x%2C%20x%20)%3B%3C%2FEM%3E%E5%BE%97%E5%88%B0%E4%B8%80%E6%A2%9D%20y%3Dx%20%E7%9B%B4%E7%B7%9A%E3%80%82%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EJSL-%E7%A4%BA%E4%BE%8B%EF%BC%9A%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%20color%3A%20%23801392%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FFitness.jmp%22%20)%3B%0Abiv%20%3D%20dt%20%26lt%3B%26lt%3B%20Bivariate(%20Y(%20%3AMaxPulse%20)%2C%20X(%20%3ARunPulse%20)%20)%3B%0AReport(%20Biv%20)%5BFramebox(%201%20)%5D%20%26lt%3B%26lt%3B%20add%20graphics%20script(%20Y%20Function(%20y%20%3D%20x%2C%20x%20)%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%20style%3D%22margin%3A%200.0px%200.0px%200.0px%200.0px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-794679%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8%E5%9C%96%E5%BD%A2%E4%B8%AD%E5%8A%A0%E5%85%A5%2045%C2%B0%20(y%3Dx)%20%E7%B7%9A%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-794679%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E7%B6%93%E5%B8%B8%E4%BD%BF%E7%94%A8%201%3A1%20%E7%B7%9A%E9%80%B2%E8%A1%8C%E5%88%86%E6%9E%90%EF%BC%81%3CBR%20%2F%3E%E7%8F%BE%E5%9C%A8%E6%88%91%E7%82%BA%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMP-Add-Ins%2FGraph-Builder-Toolbar%2Fm-p%2F565466%23U565466%22%20class%3D%22lia-mention-container-editor-message%20lia-img-icon-tkb-thread%20lia-fa-icon%20lia-fa-tkb%20lia-fa-thread%20lia-fa%22%20target%3D%22_blank%22%3E%E5%9C%96%E5%BD%A2%E7%94%A2%E7%94%9F%E5%99%A8%E5%B7%A5%E5%85%B7%E5%88%97%3C%2FA%3E%E6%96%B0%E5%A2%9E%E4%BA%86%E4%B8%80%E5%80%8B%E5%BF%AB%E6%8D%B7%E6%96%B9%E5%BC%8F%E5%9C%96%E7%A4%BA%EF%BC%9A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22hogi_0-1725395278996.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22hogi_0-1725395278996.png%22%20style%3D%22width%3A%20216px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F67858i161BC06EE4F15DFF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22hogi_0-1725395278996.png%22%20alt%3D%22hogi_0-1725395278996.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
markschahl
Level VI

How to add 45° (y=x) line to graph?

Does anyone have a smarter way to add a 45° (y=x) line to an x-y plot? I currently do the following:

  1. Set x-axis and y-axis pixels to the same value in the Frame Size dialog
  2. Use the drawing tool to manually add a line to the plot

The line is never quite perfect and has to be adjusted when plot is changed.

JMP Developers: this would be a great option to add to: Y-axis specification, Reference Lines. It is useful when comparing predicted versus actual; lab determinations versus standard values; etc.. Thinking about this more, having the option to enter f(x) for a y-reference line would be even better than just the 45° (y=x) line.

1 ACCEPTED SOLUTION

Accepted Solutions
ms
Super User (Alumni) ms
Super User (Alumni)

Re: How to add 45° (y=x) line to graph?

In the Fit Y by X platform you can choose Fit special... and lock intercept to zero and slope to one.

 

In most platforms it is also possible to draw a line representing a function by a graphics script. Right-click on the graph and select Customize... In the dialog press the plus sign and select Y Function in the Templates drop-down menu. Add Y Function( y = x, x ); to get a straight y=x line.

 

JSL-example:

 

dt = Open( "$SAMPLE_DATA/Fitness.jmp" );
biv = dt << Bivariate( Y( :MaxPulse ), X( :RunPulse ) );
Report( Biv )[Framebox( 1 )] << add graphics script( Y Function( y = x, x ) );

 

View solution in original post

6 REPLIES 6
ms
Super User (Alumni) ms
Super User (Alumni)

Re: How to add 45° (y=x) line to graph?

In the Fit Y by X platform you can choose Fit special... and lock intercept to zero and slope to one.

 

In most platforms it is also possible to draw a line representing a function by a graphics script. Right-click on the graph and select Customize... In the dialog press the plus sign and select Y Function in the Templates drop-down menu. Add Y Function( y = x, x ); to get a straight y=x line.

 

JSL-example:

 

dt = Open( "$SAMPLE_DATA/Fitness.jmp" );
biv = dt << Bivariate( Y( :MaxPulse ), X( :RunPulse ) );
Report( Biv )[Framebox( 1 )] << add graphics script( Y Function( y = x, x ) );

 

pmroz
Super User

Re: How to add 45° (y=x) line to graph?

Very cool.  I tried it in Graph Builder and it works like a charm.  Here's an example:

 

 

dt = open("$sample_data\Boston Housing.jmp");
 
gb = Graph Builder(
    Show Control Panel( 0 ),
    Variables( X( :rooms ), Y( :distance ) ),
    Elements( Points( X, Y, Legend( 1 ) ) ),
    SendToReport(
        Dispatch( {}, "rooms", ScaleBox,
            {Min( 0 ), Max( 12 ), Inc( 2 ), Minor Ticks( 1 )} ),
        Dispatch( {}, "distance", ScaleBox,
            {Min( 0 ), Max( 12 ), Inc( 2 ), Minor Ticks( 1 )} ),
        Dispatch( {}, "Graph Builder", FrameBox,
            {Marker Size( 3 ), Add Graphics Script(
                2, Description( "Script" ), Y Function( x, x )
            ), Grid Line Order( 1 ), Reference Line Order( 3 )} )
    )
);

 

blackeneth
Level III

Re: How to add 45° (y=x) line to graph?

Here is another script using the Bivariate platform (I use JMP 10.0.2):

 

 

dt = Open("$SAMPLE_DATA/Fitness.jmp");
 
dt << Bivariate(
  Y(:MaxPulse),
  X(:RunPulse),
  SendToReport(
  Dispatch(
  {},
  "Bivar Plot",
  FrameBox,
  {Add Graphics Script(2, Description("Script"), YFunction(x, x)),
  Grid Line Order(1), Reference Line Order(3)}
  )
  )
);

 

josh
Level I

Re: How to add 45° (y=x) line to graph?

How can the 45 degree reference line be reformatted as dashes and alternate color?

txnelson
Super User

Re: How to add 45° (y=x) line to graph?

Here is a version of the platform with the line dashed and red

 

 

dt = Open( "$sample_data\Boston Housing.jmp" );
 
gb = Graph Builder(
       Show Control Panel( 0 ),
       Variables( X( :rooms ), Y( :distance ) ),  
       Elements( Points( X, Y, Legend( 1 ) ) ),  
       SendToReport(
              Dispatch( {}, "rooms", ScaleBox, {Min( 0 ), Max( 12 ), Inc( 2 ), Minor Ticks( 1 )} ),
              Dispatch( {}, "distance", ScaleBox, {Min( 0 ), Max( 12 ), Inc( 2 ), Minor Ticks( 1 )} ),
              Dispatch(
                     {},  
                                         "Graph Builder",  
                     FrameBox,  
                     {Marker Size( 3 ), Add Graphics Script(  
                                                     2,  
                           Description( "Script" ),  
                                                     Pen Color( "red" );  
                                                    Line Style( "dashed" );  
                                                   Y Function( x, x );  
                     ), Grid Line Order( 1 ), Reference Line Order( 3 )}
              )
       )  
);

 

 

 

The Graphing Elements are documented in the Scripting Guide, starting on page 497.  The Scripting Guide is available under the JMP Help==>Books==>Scripting Guide.

Jim
hogi
Level XIII

Re: How to add 45° (y=x) line to graph?

I use a 1:1 line so often for my analyses!
Now I added a shortcut icon to Graph Builder Toolbar :

hogi_0-1725395278996.png

 

Recommended Articles