And, 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( image( img ), bounds( top( 429 ), Left( 0 ), bottom( 0 ), Right( 501 ) ) ),
// during construction for Y axis...
<<yaxis( {show major labels( 0 ), show major ticks( 0 ), labels( 0 )} )
);
// after construction for X axis...
g = gb[framebox( 1 )]; // the actual graph is a framebox, down inside the graphbuilder
g << xaxis( show major labels( 0 ) ); // one
// or several...
g << xaxis( {show major labels( 0 ), show major ticks( 0 ), labels( 0 )} );
New Window( "my window", gb );
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.
Craige