
Appending image to polar graph

Mike German
Sat, 03/11/2023 - 09:39 am
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.

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.
March 12, 2023 at 01:40 am - Permalink
Done - Thanks Tony - as easy as that!
March 12, 2023 at 03:19 am - Permalink
In reply to Done - Thanks Tony - as easy… by Mike German
While you are there, how do I get the polar graph grid lines back?
March 12, 2023 at 03:33 am - Permalink
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.
March 13, 2023 at 02:03 pm - Permalink
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:
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
March 14, 2023 at 05:43 pm - Permalink
Many thanks for making that addition to the next release; I look forward to it.
March 16, 2023 at 04:53 am - Permalink