protected override System.Collections.Generic.IEnumerable <Main.DocumentNodeAndName> GetDocumentNodeChildrenWithName() { if (null != _plotData) { yield return(new Main.DocumentNodeAndName(_plotData, () => _plotData = null, "Data")); } if (null != _plotStyle) { yield return(new Main.DocumentNodeAndName(_plotStyle, () => _plotStyle = null, "Style")); } }
/// <summary> /// Plots a density image of the selected columns. /// </summary> /// <param name="dg"></param> public static void AddSurfacePlot(Altaxo.Gui.Worksheet.Viewing.IWorksheetController dg, GraphDocument graph) { var layer = graph.RootLayer.Layers.OfType <XYZPlotLayer>().First(); var context = graph.GetPropertyContext(); var plotStyle = new DataMeshPlotStyle(); var assoc = new XYZMeshedColumnPlotData(dg.DataTable, dg.SelectedDataRows, dg.SelectedDataColumns, dg.SelectedPropertyColumns); if (assoc.DataTableMatrix.RowHeaderColumn == null) { assoc.DataTableMatrix.RowHeaderColumn = new IndexerColumn(); } if (assoc.DataTableMatrix.ColumnHeaderColumn == null) { assoc.DataTableMatrix.ColumnHeaderColumn = new IndexerColumn(); } var pi = new DataMeshPlotItem(assoc, plotStyle); layer.PlotItems.Add(pi); }
public DataMeshPlotItem(XYZMeshedColumnPlotData pa, DataMeshPlotStyle ps) { Data = pa; Style = ps; }
protected override System.Collections.Generic.IEnumerable<Main.DocumentNodeAndName> GetDocumentNodeChildrenWithName() { if (null != _plotData) yield return new Main.DocumentNodeAndName(_plotData, () => _plotData = null, "Data"); if (null != _plotStyle) yield return new Main.DocumentNodeAndName(_plotStyle, () => _plotStyle = null, "Style"); }
public DataMeshPlotItem(XYZMeshedColumnPlotData pa, DataMeshPlotStyle ps) { this.Data = pa; this.Style = ps; }