Skip to content

Commit 82721f8

Browse files
committed
Do not calculate disabled markers to the color normalization.
1 parent a60dd10 commit 82721f8

File tree

3 files changed

+53
-47
lines changed

3 files changed

+53
-47
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased]
44

5+
### Fixed
6+
7+
- Do not calculate disabled markers to the color normalization.
8+
59
## [0.11.0] - 2024-05-23
610

711
### Fixed

src/chart/generator/plotbuilder.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ void PlotBuilder::normalizeColors()
465465
Math::Range<double> color;
466466

467467
for (auto &marker : plot->markers) {
468+
if (!marker.enabled) continue;
468469
auto &&cbase = marker.colorBase.get();
469470
if (!cbase.isDiscrete()) color.include(cbase.getPos());
470471
lightness.include(cbase.getLightness());
@@ -480,6 +481,7 @@ void PlotBuilder::normalizeColors()
480481
.range.getRange(lightness);
481482

482483
for (auto &marker : plot->markers) {
484+
if (!marker.enabled) continue;
483485
auto &&cbase = marker.colorBase->value;
484486
cbase.setLightness(lightness.rescale(cbase.getLightness()));
485487

0 commit comments

Comments
 (0)