Skip to content

Commit

Permalink
🐛 Fix label color for chart zones
Browse files Browse the repository at this point in the history
  • Loading branch information
azogue committed Apr 12, 2024
1 parent 0deefd0 commit 4707371
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions psychrochart/plot_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def plot_curve(
assert isinstance(curve.style, ZoneStyle)
if curve.annotation_style is not None:
style_params.update(curve.annotation_style.export_style())
style_params["color"] = mod_color(curve.style.edgecolor, -25)
reg_artist(
"label_" + gid_zone,
_annotate_label(
Expand Down
8 changes: 4 additions & 4 deletions tests/example-charts/chart_overlay_style_minimal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tests/example-charts/test_default_psychrochart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tests/example-charts/test_ha_addon_psychrochart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4707371

Please sign in to comment.