turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Are there options in jmp graph to show stepped lim...

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Jun 22, 2015 12:59 PM
(697 views)

I would like to show Stepped limit in JMP for X-Y graph showing limits based on range of X Values and allowed Y values.

Eg:

Efficiency (%) 90 if power is between 10W-12W

Efficiency (%) 93 if power is between 12W-15W

Efficiency (%) 97 if power is between 15W-17W

1 REPLY

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Jun 22, 2015 2:22 PM
(588 views)

Two possible approaches come to mind...

**1. Create a stepped function using the Overlay Plot.**

Create a data table with columns for Power and Efficiency. To replicate my results, run the following script:

New Table( "Example",

Add Rows( 4 ),

New Column( "Power", Numeric, "Continuous",

Set Property( "Units", "W" ),

Set Values( [10, 12, 15, 17] )

),

New Column( "Efficiency", Numeric, "Continuous",

Set Property( "Units", "%" ),

Set Values( [90, 93, 97, 97] )

)

);

Then create an overlay plot (**Graph** > **Overlay**) where Y is Efficiency and X is Power. Finally, click on the red triangle and select **Y Options** > **Step**.

**2. Add a function to an existing graph.**

If you already have a graph (such as a Bivariate / Fit Y by X graph) containing data, right-click on the graph and select **Customize**.

In the Customize Graph window, click on the "**+**" button and paste the following script.

Y Function(

If(

10 < x <= 12, 90,

12 < x <= 15, 93,

15 < x <= 17, 97,

.

),

x

);

Then click OK.The function should be overlaid on the graph. Adjust axes if necessary.

Howard