Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

highlight areas on a graph

Hi...

I'd like to highlight specific areas on my 2d graphs. Ideally, i want to draw a semi-transparent area around a mapped point (to show error and certainty). If I could draw an oval and shade it in, that would be perfect.

So far, i've only found transparencies in CNiGraph3D .... and I havent found anything on coloring in plotted areas.

Any ideas?

-Ryan
😃
0 Kudos
Message 1 of 3
(3,330 Views)
Hi Ryan,

I believe what you are looking for are called Annotations. Annotations are used to highlight a point or a region on the graph. There are pointAnnotations where you can highlight a single point on the graph, and also RangeAnnotations where a range of values can be highlighted.

If you are using Visual Studio.NET then you should be able to right click on the graph and select the option "Edit Annotations". Else if you are using Visual Studio 6.0 then you should be able to right click on the graph and select properties; and one of the properties should be "Annotations".

Hope this helps!

Sijink
National Instruments
0 Kudos
Message 2 of 3
(3,316 Views)
As Sijink mentioned, annotations provide the functionality that you're looking for. However, you mentioned that you were looking "to draw a semi-transparent area around a mapped point." The annotations in CNiGraph support solid colors, but not alpha-blended colors. The Windows Forms .NET graphs do support alpha-blended colors and you could very easily draw an oval with an alpha-blended fill with the Measurement Studio .NET graphs.

- Elton
0 Kudos
Message 3 of 3
(3,313 Views)