From 75efdbf667b5f456fe8fc92b5e1bbf31782ce923 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fr=C3=A9d=C3=A9ric=20Faust?= Date: Tue, 13 Jul 2021 18:22:15 -0400 Subject: [PATCH] Update Show-Graph.ps1 --- src/Show-Graph.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Show-Graph.ps1 b/src/Show-Graph.ps1 index 5948584..1f3bf0c 100644 --- a/src/Show-Graph.ps1 +++ b/src/Show-Graph.ps1 @@ -167,7 +167,7 @@ Function Show-Graph { # add Y-Axis title alphabets if it exists in a row - If($i -in $YAxisTitleStartIdx..$YAxisTitleEndIdx -and $YAxisTitle){ + If($i -ge $YAxisTitleStartIdx -and $i -le $YAxisTitleEndIdx -and $YAxisTitle){ $YAxisLabelAlphabet = $YAxisTitle[$YAxisTitleAlphabetCounter] $YAxisTitleAlphabetCounter++ } @@ -192,7 +192,7 @@ Function Show-Graph { } $Color = $Map.ForEach({ - if($YAxisLabel -in $_.LowerBound..$_.UpperBound){ + if($YAxisLabel -ge $_.LowerBound -and $YAxisLabel -le $_.UpperBound){ $_.Color } })