Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph or plot style without frame?

I would like to have a graph which has special(?) frame. The frame meas the gray thick frame around plot that contains axis title, lable and so on.

I would like to make the color of the frame as the same as plot's background color. Moreover, I do not want edge of it. Nomally, if we generate graph in Excel, it has the style that I want.

I am attaching an example of a graph that I want.

What could be the best way to implement it?

Thank you very much.
0 Kudos
Message 1 of 2
(3,010 Views)
With CNiGraph you're limited to the two provided options CNiGraph::FrameClassic and CNiGraph::Frame3D. You could get close to what you're looking for by setting CNiGraph::GraphFrameStyle to CNiGraph::FrameClassic and setting the CNiGraph::GraphFrameColor and CNiGraph::PlotAreaColor properties to the same value, but the borders will still look different.

If you're using the .NET WaveformGraph or ScatterGraph, the Border is an abstract base class and the provided styles include Dashed, Dotted, Etched, None, Raised, RaisedLite, Sunken, and SunkenLite. None of these will be exactly what you're looking for, either, but since Border is an abstract class, you can easily extend it with an implementation as you described, assign this custom implementation to the graph
's Border property, then set the graph's BackColor and PlotAreaColor to the same values. This would get you exactly what you're looking for. Please let me know if you're using one of the .NET graphs and I will post an example.

- Elton
0 Kudos
Message 2 of 2
(3,010 Views)