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

Showing results for

- JMP User Community
- :
- Discussions
- :
- Using Graph or GraphBox - How to change X,Y axis i...

- 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

Oct 5, 2017 1:56 PM
(438 views)

Hello,

I am trying to use the Graph function but am unsuccessful in making X-axis incremements of 1 and Reversing Y-axis order.

I tried swapping the numbers in the Y Scale properties but no luck. Only way to change is to physically change graph manually. Still unable to figure this out using JSL.

Any help is appreciated!

Here is a snippet of my code

New Window( "Map",

Graph(

Frame Size( 800, 800 ),

X Scale(-0.6, 40.7),

Y Scale(0.4, 7.6),

...

);

1 REPLY

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

Oct 5, 2017 3:04 PM
(430 views)

Send the commands to each *AxisBox()*. Use *<<show tree structure* if uncertain about the naming or numbering of the display boxes of interest.

An example:

```
nw = New Window("Map",
Graph(Frame Size(800, 800), X Scale(-0.6, 40.7), Y Scale(0.4, 7.6))
);
// nw<<show tree structure();
nw[AxisBox(1)] << reversed scale;
nw[AxisBox(2)] << inc(1);
```