Choose Language Hide Translation Bar
Highlighted
terapin
Level V

Graph Builder: Add 1:1 Line

Does anyone know how to add a 1:1 line to Graph Builder?  In the platform Fit Y by X there was a way to both fit the displayed data and show a 1:1 line.  I can't find how to do that in GB.  Thanks.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted

Re: Graph Builder: Add 1:1 Line

  1. Right-click on the canvas and select Customize.
  2. Click Add.
  3. Click Template and select Y Function.
  4. Change the function arguments to ( x, x ).
  5. Click OK.
Learn it once, use it forever!

View solution in original post

Highlighted

Re: Graph Builder: Add 1:1 Line

Thank you for the answer. I have a question on how to label that line in the graph. How do you do it?

 

How to change the properties of the lines i.e. make it thicker, make it dotted, etc.? 

 

Thank you.

View solution in original post

8 REPLIES 8
Highlighted

Re: Graph Builder: Add 1:1 Line

  1. Right-click on the canvas and select Customize.
  2. Click Add.
  3. Click Template and select Y Function.
  4. Change the function arguments to ( x, x ).
  5. Click OK.
Learn it once, use it forever!

View solution in original post

Highlighted
terapin
Level V

Re: Graph Builder: Add 1:1 Line

Dang Mark,

 

That's a sweet solution.  I've never drilled around that part of GB before and I now see lots of other capabilities I can add to my graphs.  Thanks for sharing the tip.

Highlighted

Re: Graph Builder: Add 1:1 Line

In fact, the templates are just a convenience for new users. You can enter any graphics script you want and it will be evaluated by the frame box that is used for the canvas in Graph Builder.

The Customize command works in all of the frame box objects that are used to make plots in JMP...

Learn it once, use it forever!
Highlighted
gridge
Level II

Re: Graph Builder: Add 1:1 Line

Can you add a reference line like this in graph builder based on an equation? I have tried this but get an error. Y Function(y=350E^(-0.01*x));
Highlighted

Re: Graph Builder: Add 1:1 Line

You are missing the second argument that indicates the independent variable (x) in the formula. The first argument should be the valid expression for the function computation, not an equation.

It should look like this:

Y Function( 350*Exp(-0.01*x), x );
Learn it once, use it forever!
Highlighted

Re: Graph Builder: Add 1:1 Line

Thank you for the answer. I have a question on how to label that line in the graph. How do you do it?

 

How to change the properties of the lines i.e. make it thicker, make it dotted, etc.? 

 

Thank you.

View solution in original post

Highlighted
txnelson
Super User

Re: Graph Builder: Add 1:1 Line

You should look in the Scripting Index under the Graphics() category.  There you will find Text(), Pen Size() etc.

     Help==>Scripting Index

There is also examples and documentation in the Scripting Guide

     Help==>JMP Documentation Library==>Scripting Guide

          Scripting Graphs

Jim
Highlighted

Re: Graph Builder: Add 1:1 Line

You can interactively change some of these characteristics by right-clicking in the plot frame and select Customize. The elements are listed on the left. For example, select a Line element and then the properties, for example thickness and color, appear on the right side where they can be changed.

Learn it once, use it forever!
Article Labels

    There are no labels assigned to this post.