Ejemplo n.º 1
0
        /// <summary>
        /// Format the legend.
        /// </summary>
        /// <param name="legendPositionType">Position of the legend</param>
        public void FormatLegend(Models.Graph.Graph.LegendPositionType legendPositionType)
        {
            LegendPosition oxyLegendPosition;

            if (Enum.TryParse <LegendPosition>(legendPositionType.ToString(), out oxyLegendPosition))
            {
                this.plot1.Model.LegendFont     = Font;
                this.plot1.Model.LegendFontSize = FontSize;
                this.plot1.Model.LegendPosition = oxyLegendPosition;
            }

            // this.plot1.Model.LegendSymbolLength = 60;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Format the legend.
        /// </summary>
        /// <param name="legendPositionType">Position of the legend</param>
        public void FormatLegend(Models.Graph.Graph.LegendPositionType legendPositionType)
        {
            LegendPosition oxyLegendPosition;

            if (Enum.TryParse <LegendPosition>(legendPositionType.ToString(), out oxyLegendPosition))
            {
                foreach (PlotView p in plots)
                {
                    p.Model.LegendFont         = Font;
                    p.Model.LegendFontSize     = FontSize;
                    p.Model.LegendPosition     = oxyLegendPosition;
                    p.Model.LegendSymbolLength = 30;
                }
            }
        }