TemplateWithXYPlotLayerWithG2DCartesicCoordinateSystemCreateGraph Method |
Creates a new graph, which has an x-y plot layer. The name of the graph will be prepared, so that it is ready to be included in the project. However, it is not already included in the project.
Namespace: Altaxo.Graph.Gdi.GraphTemplatesAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static GraphDocument CreateGraph(
IReadOnlyPropertyBag propertyContext,
string? preferredGraphName,
string anyNameInSameFolder,
bool includeInProject
)
Parameters
- propertyContext IReadOnlyPropertyBag
- The property context. Can be retrieved for instance from the table the plot is initiated from or the folder.
- preferredGraphName String
- The base graph name. If this name exist already, a new name is created, which is based on this argument.
- anyNameInSameFolder String
- Any name of an item in the same folder. This name is used to determine the destination folder of the graph.
- includeInProject Boolean
- If true, the graph is included in the project.
Return Value
GraphDocumentThe created graph. The graph is already part of the project. (But no view is created for the graph).
See Also