Putting a picture as the background of a graph
gravityhomer
What is the correct way to do this? Use a layout? Use a panel? I was hoping to make it with a graph window, because it is simpler to automate in a function, without having to mess around with the macro game of panels and layouts. I'll be doing this to 500+ photo graph combos.
Thanks,
Brian
DisplayHelpTopic "Drawing Layers"
Drawing layers are covered in the Igor Pro Guided Tour. The tour is essential. If you have not done it, choose Help->Getting Started.
January 9, 2014 at 12:33 pm - Permalink
January 9, 2014 at 02:32 pm - Permalink
SetDrawEnv xcoord= abs,ycoord= abs
SetDrawLayer UserBack
DrawPict /RABS left,top,right,bottom, $PictureName
If I comment out the second line. The picture is drawn as expected, except that it is covering the trace of the graph. If I add the second line back in, to put the picture behind the traces, I don't see the picture. I also try "UserAxes" instead, same result. I did manage to put text on the UserBack layer. The picture is a jpg ~ mb.
I can manually insert the picture in the graph on the UserBack layer and it works fine. It is behind the trace. I just can't seem to do it in a user written function.
Any idea what is going wrong?
January 9, 2014 at 03:29 pm - Permalink
SetDrawEnv xcoord= abs,ycoord= abs, save
DrawPict /RABS left,top,right,bottom, $PictureName
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
January 9, 2014 at 03:34 pm - Permalink
I am doing something rather non typical with Igor. For fun, not even for work. We'll see how it comes out.
January 9, 2014 at 08:09 pm - Permalink