Click or drag to resize

PlotCommandsCreatePlotItems(IEnumerableDataColumn, String, G2DPlotStyleCollection, HashSetDataColumn, IReadOnlyPropertyBag) Method

Creates a list of plot items from data columns, using a template plot style.

Namespace: Altaxo.Worksheet.Commands
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static List<IGPlotItem> CreatePlotItems(
	IEnumerable<DataColumn> selectedColumns,
	string? xColumnName,
	G2DPlotStyleCollection templatePlotStyle,
	HashSet<DataColumn> processedColumns,
	IReadOnlyPropertyBag context
)

Parameters

selectedColumns  IEnumerableDataColumn
Columns for which to create plot items.
xColumnName  String
Name of the x column. If it is null or empty, or that column is not found in the table, the current assigned x column is used.
templatePlotStyle  G2DPlotStyleCollection
The template plot style used to create the basic plot item.
processedColumns  HashSetDataColumn
On return, contains all columns that where used in creating the plot items. That are not only the columns given in the first argument, but maybe also columns that are right to those columns in the table and have special kinds, like labels, yerr, and so on.
context  IReadOnlyPropertyBag
Property context used to determine default values, e.g. for the pen width or symbol size.

Return Value

ListIGPlotItem
List of plot items created.
See Also