Appending image to polar graph

I've run out of ideas on how to do this, so any advice please on incorporating a png image loaded on a PC platform into a polar graph would be appreciated.  The image to be loaded is a coatline of the UK with green land and blue sea, black coart outlne and re dot.  I load it either as png or raw png with the same result - a black grey colour for land and black sea.  I can change the colour back by using explicit colour adjstment, but thats not the problem.

When I append it to an existing polar graph the image is a an upside down mirror image.  

 

 

colour png image to be loaded Screen Copy of image appended to Polar Graph

If you want the y axis values to increase upward you can reverse the scale for the image wave. An image plot by default has a reversed y axis, but your polar plot doesn't.

possibly, instead of an image plot, put the image into the bottom draw layer as a picture.

Or you might be able to move the draw objects that make up the grid into an upper draw layer.

When Igor 9.02 releases there will be a way to define a function that draws into one of the layers that the polar graphs package uses after the package clears the layer and before the package draws. This is an example function:

Function PolarGraphInitProgBackLayer(String polarGraphName)

    if( CmpStr(polarGraphName,"PolarGraph0") == 0 ) // only this polar graph
        SetDrawEnv/W=$polarGraphName xcoord= rel,ycoord= rel
        DrawPICT/RABS/W=$polarGraphName 0,0,1,1,Azimuthal_Hay_1500km_png
    endif
End

 

In reply to by JimProuty

I have been using Jim's method to sucessfully draw a backgound on to my polar plots using one particular image.

Wave: Hayfield_1000km_Azimuth.png
Type: Unsigned Byte 8 bit
Rows: 1200  Start: 0  Delta: 8.46668e-05  Units: m
Columns: 1200  Start: 0  Delta: 8.46668e-05  Units: m
Layers: 3  Start: 0  Delta: 1  Units:
Data Units:
Size: 4320648 bytes
Modified:  29/03/2023 14:37:44  Since Last Saved: Yes
Note:

When I try to draw alternative images (with suitable modifications to the code) the method is failing for what seems like an image error as shown in the attachment. Below is the information from the Data Browser

Wave: Pesmes_1000km_Azimuth.png
Type: Unsigned Byte 8 bit
Rows: 1200  Start: 0  Delta: 1  Units:
Columns: 1200  Start: 0  Delta: 1  Units:
Layers: 3  Start: 0  Delta: 1  Units:
Data Units:
Size: 4320648 bytes
Modified:  29/03/2023 15:57:01  Since Last Saved: Yes
Note:

Both can be displayed from the Data Browser using New Image.  

All are in the same data folder which is set to default.

I have tried changing the deltas using setscale (although I can't see why)

Apending to standard Graphs is the same.  So seems something odd with the images ????

None of these have solved the problem - any advice welcome.

 

Remember that you need to be drawing a picture, not a wave using PolarGraphInitProgBackLayer.