Пример #1
0
        public CurveItem AddSpectrum(AbstractSpectrumGraphItem item)
        {
            var pane = _displayState.GetOrCreateGraphPane(GraphControl, PaneKey.DEFAULT);

            pane.Title.Text = item.Title;
            var curveItem = GraphControl.AddGraphItem(pane, item);

            curveItem.Label.IsVisible = false;
            pane.Legend.IsVisible     = false;
            GraphControl.Refresh();
            return(curveItem);
        }
Пример #2
0
 public CurveItem AddSpectrum(AbstractSpectrumGraphItem item)
 {
     var pane = _displayState.GetOrCreateGraphPane(GraphControl, PaneKey.DEFAULT);
     pane.Title.Text = item.Title;
     var curveItem = GraphControl.AddGraphItem(pane, item);
     curveItem.Label.IsVisible = false;
     pane.Legend.IsVisible = false;
     GraphControl.Refresh();
     return curveItem;
 }