Graph with colored insert

How can I draw a colored area in a graph without cover the trace on it, like in the picture?

Thanks

And you haven't done it already, select Help->Getting Started and go through at least the first half of the Guided Tour. Exactly this task is covered in the section called "Drawing in a Graph".

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
Dear John,

Maybe next time you can be less sarcatist and more polite. I know that I asked this before but I did not find the post and I don't remember how to solve my little problem. If I you annoying you,next time please do no answer, I will survive.
(Moreover at least on my Mac the control of the layer is activated with Alt and not with Option as written in the Manual, page III-80)

Simone

Maybe this helps:
make /o test
test=p
display test

Either press ctrl-t (on windows; it might be different on other systems) or run
ShowTools/A arrow

Now press and hold with held alt/option-key on the tool with the tree on it and select user back.

You can now draw your rectangle behind the graph, exactly as
DisplayHelpTopic "Drawing Layers"

suggests.

If you want to program it, I would recommend to have a look at
DisplayHelpTopic "SetDrawLayer"


HJ
An alternative method.

Create a 2 point wave and equal to top value. Then use wave scaling to set the start and end point. Append it the graph and set it to fill to zero. Not you may need to reorder the traces to get it behind your data trace.

I like this method because if I am programming something it is easier to change and get access to the values. In general working with waves is easier than drawing elements.

Andy
ShadingBox.png
simcacl wrote:
Maybe next time you can be less sarcatist and more polite. I know that I asked this before but I did not find the post and I don't remember how to solve my little problem. If I you annoying you,next time please do no answer, I will survive.

My apologies. I wasn't trying to be impolite, just working quickly this morning, so I may have been more brusque than I intended. And I wasn't aware that you had asked this question before. The suggestion of doing the Guided Tour is more or less a standard part of the answer :)

And I just looked at my answer again and find that I mis-typed: I *meant* to say, "And *if* you haven't done it already..." Now I understand why you were offended!
Quote:
(Moreover at least on my Mac the control of the layer is activated with Alt and not with Option as written in the Manual, page III-80)

That is not a standard Macintosh keyboard. It is a common way to map a PC-style keyboard for use with a Macintosh.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com