Plots selected data columns of a table. The graph must already exist. The graph is then shown in the project (a graph window is opened for it).
Namespace: Altaxo.Worksheet.CommandsAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static IGraphController? Plot(
DataTable table,
IAscendingIntegerCollection selectedColumns,
GraphDocument graph,
G2DPlotStyleCollection templatePlotStyle,
PlotGroupStyleCollection groupStyles,
bool doOpenGraph = true
)
Parameters
- table DataTable
- The source table.
- selectedColumns IAscendingIntegerCollection
- The data columns of the table that should be plotted.
- graph GraphDocument
- The graph document to plot into.
- templatePlotStyle G2DPlotStyleCollection
- The plot style which is the template for all plot items.
- groupStyles PlotGroupStyleCollection
- The group styles for the newly built plot item collection.
- doOpenGraph Boolean (Optional)
- If true (default), the created graph is opened (shown in a window).
Return Value
IGraphControllerThe graph controller that controls the graph window, if
doOpenGraph is true; null otherwise.
See Also