Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

invisible plots still being drawn

Solved!
Go to solution

Strange thing happens: when I've got multiple plots, and they all are hidden (Visibility=Collapsed), then when I output data, it is shown first, and then hidden (instead of not being drawn in the first place). When I've got at least one visible plot, then invisible ones aren't drawn as expected.

0 Kudos
Message 1 of 3
(5,991 Views)
Solution
Accepted by eugenem

I was able to reproduce this issue when all plots are hidden in a graph with a raster render mode. I have created a task to fix this in the next Measurement Studio release.


As a workaround, you can use this function to clear the graph:


    private void ClearRasterPlotArea( ) {
        if( graph.ActualRenderMode == RenderMode.Raster ) {
            RenderMode renderMode = graph.RenderMode;
            graph.RenderMode = RenderMode.Vector;
            graph.RenderMode = renderMode;
        }
    }


When a graph is in raster mode, it temporarily switches the graph to vector then back to the previous render mode, forcing the raster target to be cleared.

~ Paul H
0 Kudos
Message 2 of 3
(5,974 Views)

Just wanted to let you know this issue was fixed in the Measurement Studio 2015 release.

~ Paul H
0 Kudos
Message 3 of 3
(4,430 Views)