|
1 | | -""" anyplot.ai |
| 1 | +"""anyplot.ai |
2 | 2 | scatter-marginal: Scatter Plot with Marginal Distributions |
3 | 3 | Library: plotnine 0.15.4 | Python 3.13.13 |
4 | 4 | Quality: 89/100 | Updated: 2026-05-09 |
|
50 | 50 | main_w, main_h = 12, 6.5 |
51 | 51 | marg_w, marg_h = 4, 2.5 |
52 | 52 |
|
53 | | -# Shared theme |
| 53 | +# Shared theme - L-shaped spine (left + bottom only) |
54 | 54 | base_theme = theme_minimal() + theme( |
55 | 55 | plot_background=element_rect(fill=PAGE_BG, color=PAGE_BG), |
56 | 56 | panel_background=element_rect(fill=PAGE_BG, color=PAGE_BG), |
57 | 57 | panel_grid_major=element_line(color=INK, size=0.3, alpha=0.10), |
58 | 58 | panel_grid_minor=element_blank(), |
59 | | - panel_border=element_rect(color=INK_SOFT, fill=None, size=0.4), |
60 | | - axis_title=element_text(color=INK, size=20), |
| 59 | + panel_border=element_blank(), |
| 60 | + axis_title=element_text(color=INK, size=20, weight="bold"), |
61 | 61 | axis_text=element_text(color=INK_SOFT, size=16), |
62 | | - axis_line=element_line(color=INK_SOFT, size=0.4), |
63 | | - plot_title=element_text(color=INK, size=24, margin={"t": 10, "b": 10}), |
| 62 | + axis_line=element_line(color=INK_SOFT, size=0.5), |
| 63 | + axis_ticks=element_line(color=INK_SOFT, size=0.4), |
| 64 | + plot_title=element_text(color=INK, size=24, weight="bold", margin={"t": 10, "b": 10}), |
64 | 65 | ) |
65 | 66 |
|
66 | 67 | # Top histogram (x distribution) |
|
74 | 75 | figure_size=(main_w, marg_h), |
75 | 76 | axis_text_x=element_blank(), |
76 | 77 | axis_ticks_major_x=element_blank(), |
| 78 | + axis_ticks_minor_x=element_blank(), |
| 79 | + axis_line_x=element_blank(), |
77 | 80 | axis_title_y=element_blank(), |
78 | 81 | axis_text_y=element_blank(), |
79 | 82 | axis_ticks_major_y=element_blank(), |
| 83 | + axis_ticks_minor_y=element_blank(), |
| 84 | + axis_line_y=element_blank(), |
| 85 | + panel_grid_major=element_blank(), |
80 | 86 | ) |
81 | 87 | ) |
82 | 88 |
|
|
92 | 98 | figure_size=(marg_w, main_h), |
93 | 99 | axis_text_y=element_blank(), |
94 | 100 | axis_ticks_major_y=element_blank(), |
| 101 | + axis_ticks_minor_y=element_blank(), |
| 102 | + axis_line_y=element_blank(), |
95 | 103 | axis_title_x=element_blank(), |
96 | 104 | axis_text_x=element_blank(), |
97 | 105 | axis_ticks_major_x=element_blank(), |
| 106 | + axis_ticks_minor_x=element_blank(), |
| 107 | + axis_line_x=element_blank(), |
| 108 | + panel_grid_major=element_blank(), |
98 | 109 | ) |
99 | 110 | ) |
100 | 111 |
|
|
0 commit comments