02-05-2012 05:18 AM
Hi,
I want to highlight a section of a data plotted on a graph (i.e. a rectangle area in the middle of th graph),
is there any tricky methods to achieve this?
thanks for any help
sahin
Solved! Go to Solution.
02-05-2012 05:49 AM
You can plot a rectangle and set its z-plane order behind the data plots, e.g. using
rectangle_handle = PlotRectangle (...);
GetCtrlAttribute ( panel_handle, PANEL_GRAPH, ATTR_NUM_PLOTS, &plot_handles );
SetPlotAttribute ( panel_handle, PANEL_GRAPH, rectangle_handle, ATTR_PLOT_ZPLANE_POSITION, plot_handles - 1 );
02-06-2012 08:45 AM
thanks a lot Wolfgang,
it works well, but with one drawback:
grid lines stay in the background, rectangle covers in lines of the graph.
but it's not so important.
02-06-2012 08:59 AM
You're welcome.
It's indeed possible to do it nicer, taking into account the grid lines. However, this involves increased effort and you have to judge yourself if it's worth the extra work...