|
1 | | -""" pyplots.ai |
| 1 | +"""pyplots.ai |
2 | 2 | column-stratigraphic: Stratigraphic Column with Lithology Patterns |
3 | 3 | Library: altair 6.0.0 | Python 3.14.3 |
4 | 4 | Quality: 79/100 | Created: 2026-03-15 |
|
60 | 60 | "Sandstone": "#F5D76E", |
61 | 61 | "Shale": "#7B8D8E", |
62 | 62 | "Limestone": "#5DADE2", |
63 | | - "Siltstone": "#A9CCE3", |
| 63 | + "Siltstone": "#C39BD3", |
64 | 64 | "Conglomerate": "#E67E22", |
65 | 65 | } |
66 | 66 |
|
|
101 | 101 | y=alt.Y( |
102 | 102 | "top:Q", |
103 | 103 | title="Depth (m)", |
104 | | - scale=alt.Scale(domain=[0, 200]), |
| 104 | + scale=alt.Scale(domain=[0, 200], reverse=True), |
105 | 105 | axis=alt.Axis(labelFontSize=18, titleFontSize=22), |
106 | 106 | ), |
107 | 107 | y2="bottom:Q", |
|
136 | 136 | # Pattern texture labels inside each layer |
137 | 137 | pattern_text = ( |
138 | 138 | alt.Chart(layers) |
139 | | - .mark_text(fontSize=16, color="#555555", opacity=0.6) |
| 139 | + .mark_text(fontSize=18, color="#333333", opacity=0.85) |
140 | 140 | .encode(y=alt.Y("mid_depth:Q"), x=alt.X("x_mid:Q", scale=alt.Scale(domain=[0, 14])), text="pattern_label:N") |
141 | 141 | .transform_calculate(x_mid="5") |
142 | 142 | ) |
|
174 | 174 | .properties( |
175 | 175 | width=1200, |
176 | 176 | 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), |
180 | 178 | ) |
181 | 179 | .configure_view(strokeWidth=0) |
182 | 180 | ) |
|
0 commit comments