Exemple #1
0
        public void ExecuteRecipe(Plot plt)
        {
            // plot sample data
            plt.AddSignal(DataGen.Sin(51));
            plt.AddSignal(DataGen.Cos(51));

            // dragging can be enabled and optionally limited to a range
            var vSpan = plt.AddVerticalSpan(.15, .85);

            vSpan.DragEnabled     = true;
            vSpan.DragLimitMin    = -1;
            vSpan.DragLimitMax    = 1;
            vSpan.BorderColor     = Color.Red;
            vSpan.BorderLineStyle = LineStyle.Dot;
            vSpan.BorderLineWidth = 2;
            vSpan.HatchColor      = Color.FromArgb(100, Color.Blue);
            vSpan.HatchStyle      = Drawing.HatchStyle.SmallCheckerBoard;
            vSpan.Label           = "Customized vSpan";


            // spans can be configured to allow dragging but disallow resizing
            var hSpan = plt.AddHorizontalSpan(10, 25);

            hSpan.DragEnabled   = true;
            hSpan.DragFixedSize = true;
            hSpan.Label         = "Standard hSpan";
            plt.Legend(true);
        }
Exemple #2
0
        public void ExecuteRecipe(Plot plt)
        {
            // plot sample data
            plt.AddSignal(DataGen.Sin(51));
            plt.AddSignal(DataGen.Cos(51));

            // add axis spans
            plt.AddVerticalSpan(.15, .85);
            plt.AddHorizontalSpan(10, 25);
        }
Exemple #3
0
        public void ExecuteRecipe(Plot plt)
        {
            plt.AddSignal(DataGen.Sin(51));
            plt.AddSignal(DataGen.Cos(51));

            var hline = plt.AddHorizontalLine(0.23);

            hline.DragEnabled    = true;
            hline.IgnoreAxisAuto = true;

            var hSpan = plt.AddHorizontalSpan(-10, 20);

            hSpan.DragEnabled    = true;
            hSpan.IgnoreAxisAuto = true;
        }
Exemple #4
0
        public void ExecuteRecipe(Plot plt)
        {
            // plot sample data
            plt.AddSignal(DataGen.Sin(51));
            plt.AddSignal(DataGen.Cos(51));

            // dragging can be enabled and optionally limited to a range
            var vSpan = plt.AddVerticalSpan(.15, .85);

            vSpan.DragEnabled  = true;
            vSpan.DragLimitMin = -1;
            vSpan.DragLimitMax = 1;

            // spans can be configured to allow dragging but disallow resizing
            var hSpan = plt.AddHorizontalSpan(10, 25);

            hSpan.DragEnabled   = true;
            hSpan.DragFixedSize = true;
        }