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-45571%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E4%BD%BF%E7%94%A8%20Graph%20%E6%88%96%20GraphBox%20-%20%E5%A6%82%E4%BD%95%E6%9B%B4%E6%94%B9%20X%E3%80%81Y%20%E8%BB%B8%E5%A2%9E%E9%87%8F%E5%92%8C%E5%8F%8D%E8%BD%89%E8%BB%B8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-45571%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3C%2FP%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E5%98%97%E8%A9%A6%E4%BD%BF%E7%94%A8%20Graph%20%E5%87%BD%E6%95%B8%EF%BC%8C%E4%BD%86%E6%9C%AA%E8%83%BD%E6%88%90%E5%8A%9F%E4%BD%BF%20X%20%E8%BB%B8%E5%A2%9E%E9%87%8F%E7%82%BA%201%20%E4%B8%A6%E5%8F%8D%E8%BD%89%20Y%20%E8%BB%B8%E9%A0%86%E5%BA%8F%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%88%91%E5%98%97%E8%A9%A6%E4%BA%A4%E6%8F%9B%20Y%20%E6%AF%94%E4%BE%8B%E5%B1%AC%E6%80%A7%E4%B8%AD%E7%9A%84%E6%95%B8%E5%AD%97%EF%BC%8C%E4%BD%86%E6%B2%92%E6%9C%89%E6%88%90%E5%8A%9F%E3%80%82%20%E5%94%AF%E4%B8%80%E7%9A%84%E6%94%B9%E8%AE%8A%E6%96%B9%E6%B3%95%E6%98%AF%E6%89%8B%E5%8B%95%E7%89%A9%E7%90%86%E6%94%B9%E8%AE%8A%E5%9C%96%E8%A1%A8%E3%80%82%20%E4%BD%BF%E7%94%A8%20JSL%20%E4%BB%8D%E7%84%B6%E7%84%A1%E6%B3%95%E8%A7%A3%E6%B1%BA%E9%80%99%E5%80%8B%E5%95%8F%E9%A1%8C%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E4%BB%BB%E4%BD%95%E5%B9%AB%E5%8A%A9%E8%A1%A8%E7%A4%BA%E8%AE%9A%E8%B3%9E%EF%BC%81%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E9%80%99%E6%98%AF%E6%88%91%E7%9A%84%E4%BB%A3%E7%A2%BC%E7%89%87%E6%AE%B5%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%96%B0%E7%AA%97%E5%8F%A3(%E2%80%9C%E5%9C%B0%E5%9C%96%E2%80%9D%2C%3CBR%20%2F%3E%E5%9C%96%E5%BD%A2%EF%BC%88%3CBR%20%2F%3E%E6%A9%9F%E6%9E%B6%E5%B0%BA%E5%AF%B8%EF%BC%88800%E3%80%81800%EF%BC%89%E3%80%81%3CBR%20%2F%3E%20X%20%E6%AF%94%E4%BE%8B(-0.6%2C%2040.7)%2C%3CBR%20%2F%3E%20Y%20%E8%BB%B8%E6%AF%94%E4%BE%8B(0.4%2C%207.6)%2C%3C%2FP%3E%3CP%3E...%3C%2FP%3E%3CP%3E%EF%BC%89%EF%BC%9B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-45575%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E4%BD%BF%E7%94%A8%20Graph%20%E6%88%96%20GraphBox%20-%20%E5%A6%82%E4%BD%95%E6%9B%B4%E6%94%B9%20X%E3%80%81Y%20%E8%BB%B8%E5%A2%9E%E9%87%8F%E5%92%8C%E5%8F%8D%E8%BD%89%E8%BB%B8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-45575%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E5%B0%87%E5%91%BD%E4%BB%A4%E7%99%BC%E9%80%81%E5%88%B0%E6%AF%8F%E5%80%8B%3CEM%3E%E8%BB%B8%E7%9B%92()%3C%2FEM%3E%20%E3%80%82%20%E4%BD%BF%E7%94%A8%3CEM%3E%26lt%3B%26lt%3B%E9%A1%AF%E7%A4%BA%E6%A8%B9%E7%B5%90%E6%A7%8B%3C%2FEM%3E%E5%A6%82%E6%9E%9C%E4%B8%8D%E7%A2%BA%E5%AE%9A%E6%84%9F%E8%88%88%E8%B6%A3%E7%9A%84%E5%B1%95%E7%A4%BA%E7%9B%92%E7%9A%84%E5%91%BD%E5%90%8D%E6%88%96%E7%B7%A8%E8%99%9F%E3%80%82%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E4%B8%80%E5%80%8B%E4%BE%8B%E5%AD%90%EF%BC%9A%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Enw%20%3D%20New%20Window(%22Map%22%2C%0A%20%20%20%20Graph(Frame%20Size(800%2C%20800)%2C%20X%20Scale(-0.6%2C%2040.7)%2C%20Y%20Scale(0.4%2C%207.6))%0A)%3B%0A%2F%2F%20nw%26lt%3B%3CSHOW%20tree%3D%22%22%20structure%3D%22%22%3E%3C%2FSHOW%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
alexbnieto
Level I

Using Graph or GraphBox - How to change X,Y axis increment & Reverse axis

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 1
ms
Super User (Alumni) ms
Super User (Alumni)

Re: Using Graph or GraphBox - How to change X,Y axis increment & Reverse axis

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);

Recommended Articles