Skip to content

Commit feab428

Browse files
committed
update cookbook
1 parent e8d97da commit feab428

File tree

441 files changed

+3686
-3516
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

441 files changed

+3686
-3516
lines changed

content/cookbook/5/.test.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,10 @@ <h3>LegendOverrideSymbol.png</h3>
843843
<a href='images/LegendOverrideSymbol.png'><img src='images/LegendOverrideSymbol.png'></a>
844844
</div>
845845
<div style='border: 1px solid black; margin: 1em; text-align: center;'>
846+
<h3>LegendOverrideSymbolAutoColor.png</h3>
847+
<a href='images/LegendOverrideSymbolAutoColor.png'><img src='images/LegendOverrideSymbolAutoColor.png'></a>
848+
</div>
849+
<div style='border: 1px solid black; margin: 1em; text-align: center;'>
846850
<h3>LegendQuickstart.png</h3>
847851
<a href='images/LegendQuickstart.png'><img src='images/LegendQuickstart.png'></a>
848852
</div>

content/cookbook/5/API.md

Lines changed: 62 additions & 3 deletions
Large diffs are not rendered by default.

content/cookbook/5/Annotation.AnnotationCustomize.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Description: Annotations can be extensively customized.
44
URL: /cookbook/5/Annotation/AnnotationCustomize/
55
BreadcrumbNames: ["ScottPlot 5 Cookbook", "Annotation", "Annotation Customization"]
66
BreadcrumbUrls: ["/cookbook/5/", "/cookbook/5/Annotation", "/cookbook/5/Annotation/AnnotationCustomize"]
7-
Date: 2025-10-11
8-
Version: ScottPlot 5.1.57
9-
Version: ScottPlot 5.1.57
7+
Date: 2026-03-29
8+
Version: ScottPlot 5.1.58
9+
Version: ScottPlot 5.1.58
1010
SearchUrl: "/cookbook/5/search/"
1111
ShowEditLink: false
1212
---
@@ -18,9 +18,9 @@ ShowEditLink: false
1818

1919
Annotations can be extensively customized.
2020

21-
[![](/cookbook/5/images/AnnotationCustomize.png?251011113742)](/cookbook/5/images/AnnotationCustomize.png?251011113742)
21+
[![](/cookbook/5/images/AnnotationCustomize.png?260329072039)](/cookbook/5/images/AnnotationCustomize.png?260329072039)
2222

23-
{{< recipe-sp5 sourceUrl="https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Cookbook/Recipes/PlotTypes/Annotation.cs" imageUrl="/cookbook/5/images/AnnotationCustomize.png?251011113742" >}}ScottPlot.Plot myPlot = new();
23+
{{< recipe-sp5 sourceUrl="https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Cookbook/Recipes/PlotTypes/Annotation.cs" imageUrl="/cookbook/5/images/AnnotationCustomize.png?260329072039" >}}ScottPlot.Plot myPlot = new();
2424

2525
myPlot.Add.Signal(Generate.Sin());
2626
myPlot.Add.Signal(Generate.Cos());

content/cookbook/5/Annotation.AnnotationPositions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Description: Annotations are aligned with the data area.
44
URL: /cookbook/5/Annotation/AnnotationPositions/
55
BreadcrumbNames: ["ScottPlot 5 Cookbook", "Annotation", "Annotation Positions"]
66
BreadcrumbUrls: ["/cookbook/5/", "/cookbook/5/Annotation", "/cookbook/5/Annotation/AnnotationPositions"]
7-
Date: 2025-10-11
8-
Version: ScottPlot 5.1.57
9-
Version: ScottPlot 5.1.57
7+
Date: 2026-03-29
8+
Version: ScottPlot 5.1.58
9+
Version: ScottPlot 5.1.58
1010
SearchUrl: "/cookbook/5/search/"
1111
ShowEditLink: false
1212
---
@@ -18,9 +18,9 @@ ShowEditLink: false
1818

1919
Annotations are aligned with the data area.
2020

21-
[![](/cookbook/5/images/AnnotationPositions.png?251011113742)](/cookbook/5/images/AnnotationPositions.png?251011113742)
21+
[![](/cookbook/5/images/AnnotationPositions.png?260329072039)](/cookbook/5/images/AnnotationPositions.png?260329072039)
2222

23-
{{< recipe-sp5 sourceUrl="https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Cookbook/Recipes/PlotTypes/Annotation.cs" imageUrl="/cookbook/5/images/AnnotationPositions.png?251011113742" >}}ScottPlot.Plot myPlot = new();
23+
{{< recipe-sp5 sourceUrl="https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Cookbook/Recipes/PlotTypes/Annotation.cs" imageUrl="/cookbook/5/images/AnnotationPositions.png?260329072039" >}}ScottPlot.Plot myPlot = new();
2424

2525
foreach (Alignment alignment in Enum.GetValues(typeof(Alignment)))
2626
{

content/cookbook/5/Annotation.AnnotationQuickstart.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Description: Annotations are labels you can place on the data area of a plot. Un
44
URL: /cookbook/5/Annotation/AnnotationQuickstart/
55
BreadcrumbNames: ["ScottPlot 5 Cookbook", "Annotation", "Annotation Quickstart"]
66
BreadcrumbUrls: ["/cookbook/5/", "/cookbook/5/Annotation", "/cookbook/5/Annotation/AnnotationQuickstart"]
7-
Date: 2025-10-11
8-
Version: ScottPlot 5.1.57
9-
Version: ScottPlot 5.1.57
7+
Date: 2026-03-29
8+
Version: ScottPlot 5.1.58
9+
Version: ScottPlot 5.1.58
1010
SearchUrl: "/cookbook/5/search/"
1111
ShowEditLink: false
1212
---
@@ -18,9 +18,9 @@ ShowEditLink: false
1818

1919
Annotations are labels you can place on the data area of a plot. Unlike Text added to the plot (which is placed in coordinate units on the axes), Annotations are positioned relative to the data area (in pixel units) and do not move as the plot is panned and zoomed.
2020

21-
[![](/cookbook/5/images/AnnotationQuickstart.png?251011113742)](/cookbook/5/images/AnnotationQuickstart.png?251011113742)
21+
[![](/cookbook/5/images/AnnotationQuickstart.png?260329072039)](/cookbook/5/images/AnnotationQuickstart.png?260329072039)
2222

23-
{{< recipe-sp5 sourceUrl="https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Cookbook/Recipes/PlotTypes/Annotation.cs" imageUrl="/cookbook/5/images/AnnotationQuickstart.png?251011113742" >}}ScottPlot.Plot myPlot = new();
23+
{{< recipe-sp5 sourceUrl="https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Cookbook/Recipes/PlotTypes/Annotation.cs" imageUrl="/cookbook/5/images/AnnotationQuickstart.png?260329072039" >}}ScottPlot.Plot myPlot = new();
2424

2525
myPlot.Add.Signal(Generate.Sin());
2626
myPlot.Add.Signal(Generate.Cos());

content/cookbook/5/Annotation.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Description: Annotations are always-visible text labels positioned over the data
44
URL: /cookbook/5/Annotation/
55
BreadcrumbNames: ["ScottPlot 5 Cookbook", "Annotation"]
66
BreadcrumbUrls: ["/cookbook/5/", "/cookbook/5/Annotation"]
7-
Date: 2025-10-11
8-
Version: ScottPlot 5.1.57
9-
Version: ScottPlot 5.1.57
7+
Date: 2026-03-29
8+
Version: ScottPlot 5.1.58
9+
Version: ScottPlot 5.1.58
1010
SearchUrl: "/cookbook/5/search/"
1111
ShowEditLink: false
1212
---
@@ -23,9 +23,9 @@ ShowEditLink: false
2323

2424
Annotations are labels you can place on the data area of a plot. Unlike Text added to the plot (which is placed in coordinate units on the axes), Annotations are positioned relative to the data area (in pixel units) and do not move as the plot is panned and zoomed.
2525

26-
[![](/cookbook/5/images/AnnotationQuickstart.png?251011113742)](/cookbook/5/images/AnnotationQuickstart.png?251011113742)
26+
[![](/cookbook/5/images/AnnotationQuickstart.png?260329072039)](/cookbook/5/images/AnnotationQuickstart.png?260329072039)
2727

28-
{{< recipe-sp5 sourceUrl="https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Cookbook/Recipes/PlotTypes/Annotation.cs" imageUrl="/cookbook/5/images/AnnotationQuickstart.png?251011113742" >}}ScottPlot.Plot myPlot = new();
28+
{{< recipe-sp5 sourceUrl="https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Cookbook/Recipes/PlotTypes/Annotation.cs" imageUrl="/cookbook/5/images/AnnotationQuickstart.png?260329072039" >}}ScottPlot.Plot myPlot = new();
2929

3030
myPlot.Add.Signal(Generate.Sin());
3131
myPlot.Add.Signal(Generate.Cos());
@@ -48,9 +48,9 @@ myPlot.SavePng("demo.png", 400, 300);
4848

4949
Annotations can be extensively customized.
5050

51-
[![](/cookbook/5/images/AnnotationCustomize.png?251011113742)](/cookbook/5/images/AnnotationCustomize.png?251011113742)
51+
[![](/cookbook/5/images/AnnotationCustomize.png?260329072039)](/cookbook/5/images/AnnotationCustomize.png?260329072039)
5252

53-
{{< recipe-sp5 sourceUrl="https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Cookbook/Recipes/PlotTypes/Annotation.cs" imageUrl="/cookbook/5/images/AnnotationCustomize.png?251011113742" >}}ScottPlot.Plot myPlot = new();
53+
{{< recipe-sp5 sourceUrl="https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Cookbook/Recipes/PlotTypes/Annotation.cs" imageUrl="/cookbook/5/images/AnnotationCustomize.png?260329072039" >}}ScottPlot.Plot myPlot = new();
5454

5555
myPlot.Add.Signal(Generate.Sin());
5656
myPlot.Add.Signal(Generate.Cos());
@@ -82,9 +82,9 @@ myPlot.SavePng("demo.png", 400, 300);
8282

8383
Annotations are aligned with the data area.
8484

85-
[![](/cookbook/5/images/AnnotationPositions.png?251011113742)](/cookbook/5/images/AnnotationPositions.png?251011113742)
85+
[![](/cookbook/5/images/AnnotationPositions.png?260329072039)](/cookbook/5/images/AnnotationPositions.png?260329072039)
8686

87-
{{< recipe-sp5 sourceUrl="https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Cookbook/Recipes/PlotTypes/Annotation.cs" imageUrl="/cookbook/5/images/AnnotationPositions.png?251011113742" >}}ScottPlot.Plot myPlot = new();
87+
{{< recipe-sp5 sourceUrl="https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Cookbook/Recipes/PlotTypes/Annotation.cs" imageUrl="/cookbook/5/images/AnnotationPositions.png?260329072039" >}}ScottPlot.Plot myPlot = new();
8888

8989
foreach (Alignment alignment in Enum.GetValues(typeof(Alignment)))
9090
{

content/cookbook/5/ArrowCoordinated.ArrowQuickstart.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Description: Arrows can be placed on plots to point to a location in coordinate
44
URL: /cookbook/5/ArrowCoordinated/ArrowQuickstart/
55
BreadcrumbNames: ["ScottPlot 5 Cookbook", "Arrow", "Arrow Quickstart"]
66
BreadcrumbUrls: ["/cookbook/5/", "/cookbook/5/ArrowCoordinated", "/cookbook/5/ArrowCoordinated/ArrowQuickstart"]
7-
Date: 2025-10-11
8-
Version: ScottPlot 5.1.57
9-
Version: ScottPlot 5.1.57
7+
Date: 2026-03-29
8+
Version: ScottPlot 5.1.58
9+
Version: ScottPlot 5.1.58
1010
SearchUrl: "/cookbook/5/search/"
1111
ShowEditLink: false
1212
---
@@ -18,9 +18,9 @@ ShowEditLink: false
1818

1919
Arrows can be placed on plots to point to a location in coordinate space and extensively customized.
2020

21-
[![](/cookbook/5/images/ArrowQuickstart.png?251011113742)](/cookbook/5/images/ArrowQuickstart.png?251011113742)
21+
[![](/cookbook/5/images/ArrowQuickstart.png?260329072039)](/cookbook/5/images/ArrowQuickstart.png?260329072039)
2222

23-
{{< recipe-sp5 sourceUrl="https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Cookbook/Recipes/PlotTypes/Arrow.cs" imageUrl="/cookbook/5/images/ArrowQuickstart.png?251011113742" >}}ScottPlot.Plot myPlot = new();
23+
{{< recipe-sp5 sourceUrl="https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Cookbook/Recipes/PlotTypes/Arrow.cs" imageUrl="/cookbook/5/images/ArrowQuickstart.png?260329072039" >}}ScottPlot.Plot myPlot = new();
2424

2525
// create a line
2626
Coordinates arrowTip = new(0, 0);

content/cookbook/5/ArrowCoordinated.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Description: Arrows point to a location in coordinate space.
44
URL: /cookbook/5/ArrowCoordinated/
55
BreadcrumbNames: ["ScottPlot 5 Cookbook", "Arrow"]
66
BreadcrumbUrls: ["/cookbook/5/", "/cookbook/5/ArrowCoordinated"]
7-
Date: 2025-10-11
8-
Version: ScottPlot 5.1.57
9-
Version: ScottPlot 5.1.57
7+
Date: 2026-03-29
8+
Version: ScottPlot 5.1.58
9+
Version: ScottPlot 5.1.58
1010
SearchUrl: "/cookbook/5/search/"
1111
ShowEditLink: false
1212
---
@@ -23,9 +23,9 @@ ShowEditLink: false
2323

2424
Arrows can be placed on plots to point to a location in coordinate space and extensively customized.
2525

26-
[![](/cookbook/5/images/ArrowQuickstart.png?251011113742)](/cookbook/5/images/ArrowQuickstart.png?251011113742)
26+
[![](/cookbook/5/images/ArrowQuickstart.png?260329072039)](/cookbook/5/images/ArrowQuickstart.png?260329072039)
2727

28-
{{< recipe-sp5 sourceUrl="https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Cookbook/Recipes/PlotTypes/Arrow.cs" imageUrl="/cookbook/5/images/ArrowQuickstart.png?251011113742" >}}ScottPlot.Plot myPlot = new();
28+
{{< recipe-sp5 sourceUrl="https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Cookbook/Recipes/PlotTypes/Arrow.cs" imageUrl="/cookbook/5/images/ArrowQuickstart.png?260329072039" >}}ScottPlot.Plot myPlot = new();
2929

3030
// create a line
3131
Coordinates arrowTip = new(0, 0);

content/cookbook/5/AxisAndTicks.AutoScale.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Description: The axis limits can be automatically adjusted to fit the data. Opti
44
URL: /cookbook/5/AxisAndTicks/AutoScale/
55
BreadcrumbNames: ["ScottPlot 5 Cookbook", "Axis and Ticks", "AutoScale Axis Limits to Fit Data"]
66
BreadcrumbUrls: ["/cookbook/5/", "/cookbook/5/AxisAndTicks", "/cookbook/5/AxisAndTicks/AutoScale"]
7-
Date: 2025-10-11
8-
Version: ScottPlot 5.1.57
9-
Version: ScottPlot 5.1.57
7+
Date: 2026-03-29
8+
Version: ScottPlot 5.1.58
9+
Version: ScottPlot 5.1.58
1010
SearchUrl: "/cookbook/5/search/"
1111
ShowEditLink: false
1212
---
@@ -18,9 +18,9 @@ ShowEditLink: false
1818

1919
The axis limits can be automatically adjusted to fit the data. Optional arguments allow users to define the amount of whitespace around the edges of the data.In older versions of ScottPlot this functionality was achieved by a method named AxisAuto().
2020

21-
[![](/cookbook/5/images/AutoScale.png?251011113742)](/cookbook/5/images/AutoScale.png?251011113742)
21+
[![](/cookbook/5/images/AutoScale.png?260329072039)](/cookbook/5/images/AutoScale.png?260329072039)
2222

23-
{{< recipe-sp5 sourceUrl="https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Cookbook/Recipes/General/AxisRecipes.cs" imageUrl="/cookbook/5/images/AutoScale.png?251011113742" >}}ScottPlot.Plot myPlot = new();
23+
{{< recipe-sp5 sourceUrl="https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Cookbook/Recipes/General/AxisRecipes.cs" imageUrl="/cookbook/5/images/AutoScale.png?260329072039" >}}ScottPlot.Plot myPlot = new();
2424

2525
myPlot.Add.Signal(Generate.Sin(51));
2626
myPlot.Add.Signal(Generate.Cos(51));

content/cookbook/5/AxisAndTicks.AxisAntiAliasing.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Description: To improve crispness of straight vertical and horizontal lines, Ant
44
URL: /cookbook/5/AxisAndTicks/AxisAntiAliasing/
55
BreadcrumbNames: ["ScottPlot 5 Cookbook", "Axis and Ticks", "Axis AntiAliasing"]
66
BreadcrumbUrls: ["/cookbook/5/", "/cookbook/5/AxisAndTicks", "/cookbook/5/AxisAndTicks/AxisAntiAliasing"]
7-
Date: 2025-10-11
8-
Version: ScottPlot 5.1.57
9-
Version: ScottPlot 5.1.57
7+
Date: 2026-03-29
8+
Version: ScottPlot 5.1.58
9+
Version: ScottPlot 5.1.58
1010
SearchUrl: "/cookbook/5/search/"
1111
ShowEditLink: false
1212
---
@@ -18,9 +18,9 @@ ShowEditLink: false
1818

1919
To improve crispness of straight vertical and horizontal lines, Anti-aliasing is disabled by default for axis frames, tick marks, and grid lines. Anti-aliasing can be enabled for all these objects by calling the AntiAlias helper method.
2020

21-
[![](/cookbook/5/images/AxisAntiAliasing.png?251011113742)](/cookbook/5/images/AxisAntiAliasing.png?251011113742)
21+
[![](/cookbook/5/images/AxisAntiAliasing.png?260329072039)](/cookbook/5/images/AxisAntiAliasing.png?260329072039)
2222

23-
{{< recipe-sp5 sourceUrl="https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Cookbook/Recipes/General/AxisRecipes.cs" imageUrl="/cookbook/5/images/AxisAntiAliasing.png?251011113742" >}}ScottPlot.Plot myPlot = new();
23+
{{< recipe-sp5 sourceUrl="https://github.com/ScottPlot/ScottPlot/blob/main/src/ScottPlot5/ScottPlot5%20Cookbook/Recipes/General/AxisRecipes.cs" imageUrl="/cookbook/5/images/AxisAntiAliasing.png?260329072039" >}}ScottPlot.Plot myPlot = new();
2424

2525
double[] dataX = { 1, 2, 3, 4, 5 };
2626
double[] dataY = { 1, 4, 9, 16, 25 };

0 commit comments

Comments
 (0)