Send to Back in SetDrawEnv
BMangum
I have a graph, I want to draw a filled rectangle to highlight a certain region of the graph, having the rectangle behind the trace.
Using SetDrawEnv I can successfully draw the rectangle on the graph.
I seem to be unable to actually change the layer order to get the rectangle behind the trace.
I have of course tried using the "Send to Back" button, but to no avail.
How it this accomplished?
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
January 7, 2015 at 01:59 pm - Permalink
Thanks for the tip.
It seems that the trick is to set the draw layer before actually drawing anything.
Simply drawing in the default layer still proved to not let me change the order even when following your suggestion.
Using "
SetDrawLayer UserBack
" before actually drawing gives the desired result.Again, I knew it was simple, I was just missing it.
Thanks for the help.
January 7, 2015 at 02:39 pm - Permalink
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
January 8, 2015 at 09:51 am - Permalink