public void ExecuteRecipe(Plot plt) { // plot some sample data plt.AddSignal(DataGen.Sin(51)); // add arrows using coordinates plt.AddArrow(25, 0, 27, .2); // you can define a minimum length so the line persists even when zooming out var arrow2 = plt.AddArrow(27, -.25, 23, -.5); arrow2.Color = System.Drawing.Color.Red; arrow2.MinimumLengthPixels = 100; // the shape of the arrowhead can be adjusted var skinny = plt.AddArrow(12, 1, 12, .5); skinny.Color = System.Drawing.Color.Green; skinny.ArrowheadLength = 5; skinny.ArrowheadWidth = 2; var fat = plt.AddArrow(20, .6, 20, 1); fat.Color = System.Drawing.Color.Blue; fat.ArrowheadLength = 2; fat.ArrowheadWidth = 5; // a marker can be drawn at the base of the arrow var arrow3 = plt.AddArrow(30, -.58, 35, -.4); arrow3.MarkerSize = 15; }
public void ExecuteRecipe(Plot plt) { // plot some sample data plt.AddSignal(DataGen.Sin(51)); plt.AddSignal(DataGen.Cos(51)); // add arrows using coordinates plt.AddArrow(25, 0, 27, .2); plt.AddArrow(27, -.25, 23, -.5, lineWidth: 10); // the shape of the arrowhead can be adjusted var skinny = plt.AddArrow(12, 1, 12, .5); skinny.ArrowheadLength *= 2; var fat = plt.AddArrow(20, .6, 20, 1); fat.ArrowheadWidth *= 2;; }
public void ExecuteRecipe(Plot plt) { plt.AddColorbar(Drawing.Colormap.Turbo); // direct attention to the colorbar var text = plt.AddText("Colorbar", 5, 0, 24, Color.Red); text.Alignment = Alignment.MiddleRight; plt.AddArrow(7, 0, 5, 0, color: Color.Red); plt.SetAxisLimits(-10, 10, -10, 10); }
public void ExecuteRecipe(Plot plt) { var cb = plt.AddColorbar(Drawing.Colormap.Turbo); cb.MinValue = -10; cb.MaxValue = 10; cb.MinIsClipped = true; cb.MaxIsClipped = true; // direct attention to the colorbar var text = plt.AddText("Colorbar", 5, 0, 24, Color.Red); text.Alignment = Alignment.MiddleRight; plt.AddArrow(7, 0, 5, 0, color: Color.Red); plt.SetAxisLimits(-10, 10, -10, 10); }
public void ExecuteRecipe(Plot plt) { var cb = plt.AddColorbar(Drawing.Colormap.Turbo); // Add manual ticks (disabling automatic ticks) cb.AddTick(0, "-123"); cb.AddTick(1, "+123"); cb.AddTick(.5, "0"); cb.AddTick(.25, "-61.5"); cb.AddTick(.75, "+61.5"); // To re-enable automatic ticks call cb.AutomaticTicks(true) // direct attention to the colorbar var text = plt.AddText("Colorbar", 5, 0, 24, Color.Red); text.Alignment = Alignment.MiddleRight; plt.AddArrow(7, 0, 5, 0, color: Color.Red); plt.SetAxisLimits(-10, 10, -10, 10); }