void DrawPopState()
This method restores the state of the drawing subsystem to the state that was active at the time of the most recent call to Plot.DrawPushState. The state includes the brush characteristics, the pen characteristics, the text characteristics, the active drawing region, and the active coordinate system.
x = { 1 2 3 4 5 6 7 8 }; y = { 2 1 4 5 6 5 6 9 }; declare ScatterPlot plot; plot = ScatterPlot.Create( "Sample Data", x, y ); plot.DrawUseDataCoordinates(); plot.DrawSetBrushColor( RED ); plot.DrawRectangle( 3, 3, 4, 4, true ); plot.DrawPushState(); /* save the red brush */ plot.DrawSetBrushColor( YELLOW ); plot.DrawSetPenColor( MAGENTA ); plot.DrawRectangle( 4, 4, 5, 5, true ); plot.DrawPopState(); /* restore previous brush and pen */ plot.DrawRectangle( 5, 5, 6, 6, true );