Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PlotModel" /> class.
        /// </summary>
        public PlotModel()
        {
            this.Axes        = new ElementCollection <Axis>(this);
            this.Series      = new ElementCollection <Series.Series>(this);
            this.Annotations = new ElementCollection <Annotation>(this);
            this.Legends     = new ElementCollection <LegendBase>(this);
            this.PlotType    = PlotType.XY;

            this.PlotMargins = new OxyThickness(double.NaN);
            this.Padding     = new OxyThickness(8);

            this.Background         = OxyColors.Undefined;
            this.PlotAreaBackground = OxyColors.Undefined;

            this.TextColor     = OxyColors.Black;
            this.TitleColor    = OxyColors.Automatic;
            this.SubtitleColor = OxyColors.Automatic;

            this.DefaultFont     = "Segoe UI";
            this.DefaultFontSize = 12;

            this.TitleToolTip       = null;
            this.TitleFont          = null;
            this.TitleFontSize      = 18;
            this.TitleFontWeight    = FontWeights.Bold;
            this.SubtitleFont       = null;
            this.SubtitleFontSize   = 14;
            this.SubtitleFontWeight = FontWeights.Normal;
            this.TitlePadding       = 6;

            this.PlotAreaBorderColor     = OxyColors.Black;
            this.PlotAreaBorderThickness = new OxyThickness(1);

            this.IsLegendVisible = true;

            this.DefaultColors = new List <OxyColor>
            {
                OxyColor.FromRgb(0x4E, 0x9A, 0x06),
                OxyColor.FromRgb(0xC8, 0x8D, 0x00),
                OxyColor.FromRgb(0xCC, 0x00, 0x00),
                OxyColor.FromRgb(0x20, 0x4A, 0x87),
                OxyColors.Red,
                OxyColors.Orange,
                OxyColors.Yellow,
                OxyColors.Green,
                OxyColors.Blue,
                OxyColors.Indigo,
                OxyColors.Violet
            };

            this.AxisTierDistance = 4.0;
        }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PlotModel" /> class.
        /// </summary>
        public PlotModel()
        {
            this.Axes        = new ElementCollection <Axis>(this);
            this.Series      = new ElementCollection <Series.Series>(this);
            this.Annotations = new ElementCollection <Annotation>(this);

            this.PlotType = PlotType.XY;

            this.PlotMargins = new OxyThickness(double.NaN);
            this.Padding     = new OxyThickness(8);

            this.Background         = OxyColors.Undefined;
            this.PlotAreaBackground = OxyColors.Undefined;

            this.TextColor     = OxyColors.Black;
            this.TitleColor    = OxyColors.Automatic;
            this.SubtitleColor = OxyColors.Automatic;

            this.DefaultFont     = "Segoe UI";
            this.DefaultFontSize = 12;

            this.TitleToolTip       = null;
            this.TitleFont          = null;
            this.TitleFontSize      = 18;
            this.TitleFontWeight    = FontWeights.Bold;
            this.SubtitleFont       = null;
            this.SubtitleFontSize   = 14;
            this.SubtitleFontWeight = FontWeights.Normal;
            this.TitlePadding       = 6;

            this.PlotAreaBorderColor     = OxyColors.Black;
            this.PlotAreaBorderThickness = new OxyThickness(1);

            this.IsLegendVisible       = true;
            this.LegendTitleFont       = null;
            this.LegendTitleFontSize   = 12;
            this.LegendTitleFontWeight = FontWeights.Bold;
            this.LegendFont            = null;
            this.LegendFontSize        = 12;
            this.LegendFontWeight      = FontWeights.Normal;
            this.LegendSymbolLength    = 16;
            this.LegendSymbolMargin    = 4;
            this.LegendPadding         = 8;
            this.LegendColumnSpacing   = 8;
            this.LegendItemSpacing     = 24;
            this.LegendMargin          = 8;

            this.LegendBackground      = OxyColors.Undefined;
            this.LegendBorder          = OxyColors.Undefined;
            this.LegendBorderThickness = 1;

            this.LegendTextColor  = OxyColors.Automatic;
            this.LegendTitleColor = OxyColors.Automatic;

            this.LegendMaxWidth        = double.NaN;
            this.LegendPlacement       = LegendPlacement.Inside;
            this.LegendPosition        = LegendPosition.RightTop;
            this.LegendOrientation     = LegendOrientation.Vertical;
            this.LegendItemOrder       = LegendItemOrder.Normal;
            this.LegendItemAlignment   = HorizontalAlignment.Left;
            this.LegendSymbolPlacement = LegendSymbolPlacement.Left;

            this.DefaultColors = new List <OxyColor>
            {
                OxyColor.FromRgb(0x4E, 0x9A, 0x06),
                OxyColor.FromRgb(0xC8, 0x8D, 0x00),
                OxyColor.FromRgb(0xCC, 0x00, 0x00),
                OxyColor.FromRgb(0x20, 0x4A, 0x87),
                OxyColors.Red,
                OxyColors.Orange,
                OxyColors.Yellow,
                OxyColors.Green,
                OxyColors.Blue,
                OxyColors.Indigo,
                OxyColors.Violet
            };

            this.AxisTierDistance = 4.0;
        }