// --------------------------------------------------------------------------------------------------------------------
//
// Copyright (c) 2014 OxyPlot contributors
//
//
// Represents a control that displays a .
//
// --------------------------------------------------------------------------------------------------------------------
using Avalonia;
namespace OxyPlot.Avalonia
{
using global::Avalonia.Controls;
using global::Avalonia.LogicalTree;
using global::Avalonia.VisualTree;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Linq;
///
/// Represents a control that displays a .
///
public partial class Plot : PlotBase, IPlot
{
///
/// The internal model.
///
private readonly PlotModel internalModel;
///
/// The default controller.
///
private readonly IPlotController defaultController;
///
/// Initializes a new instance of the class.
///
public Plot()
{
series = new ObservableCollection();
axes = new ObservableCollection();
annotations = new ObservableCollection();
legends = new ObservableCollection