Skip to content

Commit

Permalink
RadarPlot: simplify Update() arguments
Browse files Browse the repository at this point in the history
made independentAxes default to false to be consistent with Plot.AddRadar() #1091
  • Loading branch information
swharden committed May 31, 2021
1 parent a86a0ba commit 3ead8c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dev/changelog.md
@@ -1,5 +1,8 @@
# ScottPlot Changelog

## ScottPlot 4.1.17
* Improved `RadarPlot.Update()` default arguments (#1097) _Thanks @arthurits_

## ScottPlot 4.1.16
* Made it easier to use custom color palettes (see cookbook) (#1058, #1082) _Thanks @EmanuelFeru_
* Added a `IgnoreAxisAuto` field to axis lines and spans (#999) _Thanks @kirsan31_
Expand Down
2 changes: 1 addition & 1 deletion src/ScottPlot/Plottable/RadarPlot.cs
Expand Up @@ -101,7 +101,7 @@ public RadarPlot(double[,] values, Color[] lineColors, Color[] fillColors, bool
/// <param name="values">2D array of groups (rows) of values for each category (columns)</param>
/// <param name="independentAxes">Controls if values along each category axis are scaled independently or uniformly across all axes</param>
/// <param name="maxValues">If provided, these values will be used to normalize each category (columns)</param>
public void Update(double[,] values, bool independentAxes, double[] maxValues = null)
public void Update(double[,] values, bool independentAxes = false, double[] maxValues = null)
{
IndependentAxes = independentAxes;
Norm = new double[values.GetLength(0), values.GetLength(1)];
Expand Down

0 comments on commit 3ead8c2

Please sign in to comment.