## Graph builder Frame size JSL

Community Trekker

Joined:

Dec 27, 2016

Hi All,

This might be an easy and quick fix. But I kinda struggling to find the right way to do it.

I am trying to figure out how to have a consistent frame size with all graphs in graphs builder and consistent legend settings. I run a FOR loop having numerical values at the end of data table. It could range from 1 to many columns and I try to plot all the columns in Y axis.

The main discrepancy occurs when the Y axis has only one parameter, that legend doesn't show up but having 2 or more parameters, the legend automatically shows up and I don't have to write a separate JSL command for it. Because of that, each graph looks different because of the lack of space in legend settings.

Any idea on how to resolve this?

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions

Community Trekker

Joined:

Sep 15, 2014

Solution

@vishwasanj

The size argument and their parameters can be used to define and limit the size of your windows as shown in the example below .

``````Graph Builder(
Size( 1230, 650 ),
Show Control Panel( 0 ),
Variables( X( :age ), Y( :height ), Y( :weight ) ),
Elements( Position( 1, 1 ), Line( X, Y, Legend( 1 ) ) ),
Elements( Position( 1, 2 ), Bar( X, Y, Legend( 2 ) ) )
)``````
Best
Uday

Community Trekker

Joined:

Sep 15, 2014

Solution

@vishwasanj

The size argument and their parameters can be used to define and limit the size of your windows as shown in the example below .

``````Graph Builder(
Size( 1230, 650 ),
Show Control Panel( 0 ),
Variables( X( :age ), Y( :height ), Y( :weight ) ),
Elements( Position( 1, 1 ), Line( X, Y, Legend( 1 ) ) ),
Elements( Position( 1, 2 ), Bar( X, Y, Legend( 2 ) ) )
)``````
Best
Uday