cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Thierry_S
Super User

JMP 17.2 > Windows > GRAPH BUILDER > How do I maintain the size of the Y Label box when using Y-labels of different length?

Dear JMP Community,

 

I thought I knew Graph Builder, but I encountered an annoying behavior with Y-labels of differing lengths.

 

In the example below, I use a Local Data Filter to plot different categories of data (RColor). Each category has a set of labels (plotted as Y-labels) that can vary in length from 8 characters to > 50. As shown in the two graphs below (identical script), the plot dimensions change according to the length of the Y-labels. Is there a way to lock the dimensions of the Y-axis box, or to wrap the long labels to a fixed length? Of note, the "Line Wrap" setting in AXIS SETTINGS does not seem to do too much in my case.

 

Thierry_S_0-1757947093793.png

Thierry_S_1-1757947118023.png

 

Thank you.

Best regards,

TS

Thierry R. Sornasse
2 ACCEPTED SOLUTIONS

Accepted Solutions
hogi
Level XIII

Re: JMP 17.2 > Windows > GRAPH BUILDER > How do I maintain the size of the Y Label box when using Y-labels of different length?

[In Jm18] Wrap lines has an effect :

hogi_9-1757958907987.png

 

Depending on the number of labels and the available space, JMP arranges the labels into fewer lines and may even skip part of a label:

(view in My Videos)

 


If you try to adjust the size of the labels to get graphs with consistent size, you could skip the fist step and use  Frame Size :

Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Graph Builder( Variables( X( :height ), Y( :name ) ), Elements( Bar( X, Y ) ) ); :name[2] = "This is a very long name which has an influence on the size of the Framebox"; current report()[FrameBox(1)] << Frame Size ( 500, 500)

 

View solution in original post

hogi
Level XIII

Re: JMP 17.2 > Windows > GRAPH BUILDER > How do I maintain the size of the Y Label box when using Y-labels of different length?

Interesting:
the Size() option in Graph builder controls the green region (including the axis labels).

Via the Frame Size(), one can control the blue region:

hogi_0-1757953400961.png

 

And up to now there is no function in JMP to control the purple region:
https://community.jmp.com/t5/Discussions/Graph-builder-Frame-size-JSL/m-p/702694/highlight/true#M887...

 

if you need such a functionality, please vote here:
Functionality to generate Plots with specific Plot Size 

View solution in original post

2 REPLIES 2
hogi
Level XIII

Re: JMP 17.2 > Windows > GRAPH BUILDER > How do I maintain the size of the Y Label box when using Y-labels of different length?

[In Jm18] Wrap lines has an effect :

hogi_9-1757958907987.png

 

Depending on the number of labels and the available space, JMP arranges the labels into fewer lines and may even skip part of a label:

(view in My Videos)

 


If you try to adjust the size of the labels to get graphs with consistent size, you could skip the fist step and use  Frame Size :

Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Graph Builder( Variables( X( :height ), Y( :name ) ), Elements( Bar( X, Y ) ) ); :name[2] = "This is a very long name which has an influence on the size of the Framebox"; current report()[FrameBox(1)] << Frame Size ( 500, 500)

 

hogi
Level XIII

Re: JMP 17.2 > Windows > GRAPH BUILDER > How do I maintain the size of the Y Label box when using Y-labels of different length?

Interesting:
the Size() option in Graph builder controls the green region (including the axis labels).

Via the Frame Size(), one can control the blue region:

hogi_0-1757953400961.png

 

And up to now there is no function in JMP to control the purple region:
https://community.jmp.com/t5/Discussions/Graph-builder-Frame-size-JSL/m-p/702694/highlight/true#M887...

 

if you need such a functionality, please vote here:
Functionality to generate Plots with specific Plot Size 

Recommended Articles