Skip to content

Commit be72cea

Browse files
committed
update style.py
1 parent 2bd0d62 commit be72cea

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

paper/style.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,32 @@
3232
"pro": "///", # diagonal hatch
3333
}
3434

35+
36+
# --- Program-property identity (color + marker) ---
37+
# Mirrors the LaTeX macros in main.tex (\Syntactic, \Semantic, \RedFail,
38+
# \Regressions). Color encodes the *property* and is reserved for property
39+
# labels (subplot titles / axis tick labels), NOT data series: data series
40+
# still use the model colors above. Markers make the encoding survive
41+
# grayscale and colorblindness. Keep these hex values in sync with main.tex.
42+
PROPERTY_COLORS = {
43+
"syntactic": "#E69F00", # orange
44+
"semantic": "#009E73", # green
45+
"reduced": "#CC79A7", # purple (reduced failing tests)
46+
"regressions": "#8C6D31", # brown
47+
}
48+
PROPERTY_MARKERS = {
49+
"syntactic": "^", # triangle
50+
"semantic": "o", # circle
51+
"reduced": "s", # square
52+
"regressions": "D", # diamond
53+
}
54+
PROPERTY_LABELS = {
55+
"syntactic": "Syntactic Correctness",
56+
"semantic": "Semantic Correctness",
57+
"reduced": "Reduced Failing Tests",
58+
"regressions": "Introduced Regressions",
59+
}
60+
3561
# --- Heatmap ---
3662
HEATMAP_CMAP = "Blues"
3763
HEATMAP_VMIN = 0.5

0 commit comments

Comments
 (0)