aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2020-05-20 10:21:57 +0200
committerTibor Frank <tifrank@cisco.com>2020-05-21 12:46:44 +0000
commit5e1c2bdf2e5e367acbf6135bea0efefbf7150b77 (patch)
treef5a7736b9f996e3d3953221848ab97921ff17e5c
parent1609139a25a83d8449956c19b669fb52700b4236 (diff)
PAL: Colors in graphs
Change-Id: I23b792ab01dc433e31c7d5eb5c48a95e5a2ec210 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit a6ed764aecf2983a759931cc8d4bef161045d062)
-rw-r--r--resources/tools/presentation/generator_cpta.py39
-rw-r--r--resources/tools/presentation/generator_plots.py31
2 files changed, 50 insertions, 20 deletions
diff --git a/resources/tools/presentation/generator_cpta.py b/resources/tools/presentation/generator_cpta.py
index 4d35fa590b..0884da80ee 100644
--- a/resources/tools/presentation/generator_cpta.py
+++ b/resources/tools/presentation/generator_cpta.py
@@ -92,20 +92,31 @@ THEME_OVERRIDES = u"""/* override table width restrictions */
}
"""
-COLORS = [
- u"SkyBlue", u"Olive", u"Purple", u"Coral", u"Indigo", u"Pink",
- u"Chocolate", u"Brown", u"Magenta", u"Cyan", u"Orange", u"Black",
- u"Violet", u"Blue", u"Yellow", u"BurlyWood", u"CadetBlue", u"Crimson",
- u"DarkBlue", u"DarkCyan", u"DarkGreen", u"Green", u"GoldenRod",
- u"LightGreen", u"LightSeaGreen", u"LightSkyBlue", u"Maroon",
- u"MediumSeaGreen", u"SeaGreen", u"LightSlateGrey",
- u"SkyBlue", u"Olive", u"Purple", u"Coral", u"Indigo", u"Pink",
- u"Chocolate", u"Brown", u"Magenta", u"Cyan", u"Orange", u"Black",
- u"Violet", u"Blue", u"Yellow", u"BurlyWood", u"CadetBlue", u"Crimson",
- u"DarkBlue", u"DarkCyan", u"DarkGreen", u"Green", u"GoldenRod",
- u"LightGreen", u"LightSeaGreen", u"LightSkyBlue", u"Maroon",
- u"MediumSeaGreen", u"SeaGreen", u"LightSlateGrey"
-]
+COLORS = (
+ u"#1A1110",
+ u"#DA2647",
+ u"#214FC6",
+ u"#45A27D",
+ u"#391285",
+ u"#C95A49",
+ u"#FFD12A",
+ u"#738276",
+ u"#BD8260",
+ u"#FC5A8D",
+ u"#CEC8EF",
+ u"#A6E7FF",
+ u"#6F2DA8",
+ u"#FF878D",
+ u"#01786F",
+ u"#FFD0B9",
+ u"#FD5240",
+ u"#DB91EF",
+ u"#44D7A8",
+ u"#4F86F7",
+ u"#84DE02",
+ u"#FFCFF1",
+ u"#614051"
+)
def generate_cpta(spec, data):
diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py
index c1e5bed893..3b9bf1c6be 100644
--- a/resources/tools/presentation/generator_plots.py
+++ b/resources/tools/presentation/generator_plots.py
@@ -32,12 +32,31 @@ from plotly.exceptions import PlotlyError
from pal_utils import mean, stdev
-COLORS = [u"SkyBlue", u"Olive", u"Purple", u"Coral", u"Indigo", u"Pink",
- u"Chocolate", u"Brown", u"Magenta", u"Cyan", u"Orange", u"Black",
- u"Violet", u"Blue", u"Yellow", u"BurlyWood", u"CadetBlue", u"Crimson",
- u"DarkBlue", u"DarkCyan", u"DarkGreen", u"Green", u"GoldenRod",
- u"LightGreen", u"LightSeaGreen", u"LightSkyBlue", u"Maroon",
- u"MediumSeaGreen", u"SeaGreen", u"LightSlateGrey"]
+COLORS = (
+ u"#1A1110",
+ u"#DA2647",
+ u"#214FC6",
+ u"#45A27D",
+ u"#391285",
+ u"#C95A49",
+ u"#FFD12A",
+ u"#738276",
+ u"#BD8260",
+ u"#FC5A8D",
+ u"#CEC8EF",
+ u"#A6E7FF",
+ u"#6F2DA8",
+ u"#FF878D",
+ u"#01786F",
+ u"#FFD0B9",
+ u"#FD5240",
+ u"#DB91EF",
+ u"#44D7A8",
+ u"#4F86F7",
+ u"#84DE02",
+ u"#FFCFF1",
+ u"#614051"
+)
REGEX_NIC = re.compile(r'(\d*ge\dp\d\D*\d*[a-z]*)-')