Skip to content

Commit 60a001c

Browse files
fix(altair): address review feedback for column-stratigraphic
Attempt 1/3 - fixes based on AI review
1 parent 674b459 commit 60a001c

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

  • plots/column-stratigraphic/implementations

plots/column-stratigraphic/implementations/altair.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" pyplots.ai
1+
"""pyplots.ai
22
column-stratigraphic: Stratigraphic Column with Lithology Patterns
33
Library: altair 6.0.0 | Python 3.14.3
44
Quality: 79/100 | Created: 2026-03-15
@@ -60,7 +60,7 @@
6060
"Sandstone": "#F5D76E",
6161
"Shale": "#7B8D8E",
6262
"Limestone": "#5DADE2",
63-
"Siltstone": "#A9CCE3",
63+
"Siltstone": "#C39BD3",
6464
"Conglomerate": "#E67E22",
6565
}
6666

@@ -101,7 +101,7 @@
101101
y=alt.Y(
102102
"top:Q",
103103
title="Depth (m)",
104-
scale=alt.Scale(domain=[0, 200]),
104+
scale=alt.Scale(domain=[0, 200], reverse=True),
105105
axis=alt.Axis(labelFontSize=18, titleFontSize=22),
106106
),
107107
y2="bottom:Q",
@@ -136,7 +136,7 @@
136136
# Pattern texture labels inside each layer
137137
pattern_text = (
138138
alt.Chart(layers)
139-
.mark_text(fontSize=16, color="#555555", opacity=0.6)
139+
.mark_text(fontSize=18, color="#333333", opacity=0.85)
140140
.encode(y=alt.Y("mid_depth:Q"), x=alt.X("x_mid:Q", scale=alt.Scale(domain=[0, 14])), text="pattern_label:N")
141141
.transform_calculate(x_mid="5")
142142
)
@@ -174,9 +174,7 @@
174174
.properties(
175175
width=1200,
176176
height=900,
177-
title=alt.Title(
178-
"Stratigraphic Column · column-stratigraphic · altair · pyplots.ai", fontSize=26, anchor="middle", offset=20
179-
),
177+
title=alt.Title("column-stratigraphic · altair · pyplots.ai", fontSize=26, anchor="middle", offset=20),
180178
)
181179
.configure_view(strokeWidth=0)
182180
)

0 commit comments

Comments
 (0)