Image in a dashboardHi,
I've insert an image in a dashboard with this script:
img = Open(
"S:\xxxxxx.jpg",
"jpg"
);
Graph Box(
FrameSize( 1400, 880 ),
X Scale( 0, 410 ),
Y Scale( 0, 100 ),
<<ADD image=""></ADD>
How to do to avoid the numbers for the 2 axes or to avoid the axes?
thanks
best regards
Advanced Statistical ModelingAutomation and ScriptingContent OrganizationData Exploration and VisualizationMass CustomizationSharing and Communicating ResultsRe: Image in a dashboardAnd, if you don't like the ugly 1s and 2s, you can do this:
img = Open( "$SAMPLE_IMAGES/windmap.png", "png" );
gb = Graph Box(
FrameSize( 1400, 880 ),
X Scale( 0, 501 ),
Y Scale( 0, 429 ),
<<ADD image=""></ADD>
I mixed-and-matched two different ideas: if you can, do the xaxis inside the graph builder launch, like the yaxis. But if you need to adjust things later, do the yaxis like the xaxis, after the graph builder.
You can make an axis interactively then right-click->Edit->copyAxisSettings and paste that into a JSL editor to see all the possibilities that can go in the { list of axis options }. You might want to turn off the minor tick marks too, and that will show you how.
edit: also, Add Text to a Picture if you really need to use a framebox. Otherwise, use @Mark_Bailey solution, much simpler.
Re: Image in a dashboard@Mark_Bailey is right. You don't need the Graph Box(). If you do want to use it you can control the axis by sending messages to the Axis boxes in the Graph Box.
img = Open( "$SAMPLE_IMAGES/windmap.png", "png" );
gb = Graph Box(
FrameSize( 1400, 880 ),
X Scale( 0, 501 ),
Y Scale( 0, 429 ),
<<ADD image=""></ADD>
gb[axisbox( 2 )] << show major labels( 0 );
gb[axisbox( 2 )] << show major ticks( 0 );
gb[axisbox( 2 )] << labels( 0 );
New Window( "my window", gb );

Re: Image in a dashboardHello,
thanks !
all the best !
Re: Image in a dashboardYou do not need a picture box (returned from calling Graph Box() function) to display an image. You can place it anywhere in the display tree that you are building.
Names Default To Here( 1 );
image = New Image( "$SAMPLE_IMAGES/windmap.png" );
New Window( "new image", image );