Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
5fc4dca
Add new config options for plotting
FBumann Oct 24, 2025
3edcf40
Use turbo instead of viridis
FBumann Oct 24, 2025
9ce213c
Update plotting.py to use updated color management
FBumann Oct 24, 2025
dfa385f
update color management
FBumann Oct 24, 2025
2346759
Add rgb to hex for matplotlib
FBumann Oct 24, 2025
acdf93d
Add rgb to hex for matplotlib
FBumann Oct 24, 2025
5c24d25
Remove colormanager class
FBumann Oct 24, 2025
e7b0a1e
Update type hints
FBumann Oct 24, 2025
cabe8be
Update type hints and use Config defaults
FBumann Oct 24, 2025
94c16ba
Add stable colors
FBumann Oct 24, 2025
3465005
V1
FBumann Oct 24, 2025
f2848fc
V2
FBumann Oct 24, 2025
2bc0624
Use calculation.colors if direct colors is None
FBumann Oct 24, 2025
472cf1c
Bugfix
FBumann Oct 24, 2025
7f790e4
Bugfix
FBumann Oct 24, 2025
72b2a2c
Update setup_colors
FBumann Oct 24, 2025
3fcdbff
Add color setup to examples
FBumann Oct 24, 2025
4740763
Final touches
FBumann Oct 24, 2025
664e8ff
Update CHANGELOG.md
FBumann Oct 24, 2025
f6c721b
Update CHANGELOG.md
FBumann Oct 24, 2025
59c399f
Bugfix
FBumann Oct 24, 2025
0fd989b
Update fro SegmentedCalculationResults
FBumann Oct 24, 2025
9a7b8d7
Default show = False in tests
FBumann Oct 24, 2025
c1622ff
Bugfix
FBumann Oct 24, 2025
bff1ad6
Bugfix
FBumann Oct 24, 2025
4e64f52
Add show default to plot_network
FBumann Oct 24, 2025
8d458b7
Make _rgb_string_to_hex more robust
FBumann Oct 24, 2025
9145cce
Improve Error Handling
FBumann Oct 24, 2025
8822cd6
Overwrite colors explicitly in setup_colors
FBumann Oct 24, 2025
e94a61c
Improve config loader
FBumann Oct 24, 2025
e697ac0
Update CHANGELOG.md
FBumann Oct 24, 2025
a36ce89
Make colors arg always overwrite the default behaviour
FBumann Oct 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve Error Handling
  • Loading branch information
FBumann committed Oct 24, 2025
commit 9145cce744b4546db54968e3153361cd2eb82959
2 changes: 1 addition & 1 deletion flixopt/color_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def _try_get_colorscale(colorscale_name: str, num_colors: int) -> list[str] | No
colors = px.colors.sample_colorscale(colorscale, sample_points)
# Convert to hex format for matplotlib compatibility
return [_rgb_string_to_hex(c) for c in colors]
except PlotlyError:
except (PlotlyError, ValueError):
pass

# Finally try Matplotlib colorscales
Expand Down