WISPO-POP / PowerPlots.jl

Functions plot PowerModels networks
BSD 3-Clause "New" or "Revised" License
22 stars 2 forks source link

Add color color schemes #56

Closed noahrhodes closed 3 years ago

noahrhodes commented 3 years ago

Default device colors now come with a color range. Now when some one tries to use data for a component, they see a difference without also having to add a color range.

Also added the feature to be able to use color schemes from ColorSchemes as color ranges.

Added experimental module to separate experimental features from working features. Added functions like set_gen_color_range(plot,color_scheme) here. This is experimental because the layer ids are not consistent and a fix is needed to make this work properly when not all devices are present (like DC lines or storage).

codecov-commenter commented 3 years ago

Codecov Report

Merging #56 (59e3302) into master (bd712d7) will decrease coverage by 4.65%. The diff coverage is 15.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #56      +/-   ##
==========================================
- Coverage   96.69%   92.04%   -4.66%     
==========================================
  Files          12       13       +1     
  Lines         333      352      +19     
==========================================
+ Hits          322      324       +2     
- Misses         11       28      +17     
Impacted Files Coverage Δ
src/PowerPlots.jl 100.00% <ø> (ø)
src/core/options.jl 100.00% <ø> (ø)
src/experimental/experimental.jl 0.00% <0.00%> (ø)
src/core/utils.jl 93.93% <50.00%> (-2.84%) :arrow_down:
src/core/attribute_validation.jl 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update bd712d7...59e3302. Read the comment docs.