Scripting > Plotting Basics

  
Plot Class

Plot.newPlot()

Plot.newPlot(string title)

The Plot class in the hec.script module is used to create a new Plot dialog. It contains two methods to create a Plot dialog, each of which returns a G2dDialog object.

 

Example: Creating a Plot


myPlot = Plot.newPlot()

or

thePlot = Plot.newPlot(“Elevation vs Flow”)