PlotConfig¶
questvar.plot._config.PlotConfig
dataclass
¶
Unified design configuration for all QuEStVar plot functions.
Attributes are grouped by concern. Every attribute has a sensible default so you only need to override what you care about.
Source code in src/questvar/plot/_config.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 | |
Attributes¶
figsize
class-attribute
instance-attribute
¶
Overall figure dimensions (width, height) in inches.
fig_facecolor
class-attribute
instance-attribute
¶
Figure background colour. Use 'none' for transparent output.
ax_facecolor
class-attribute
instance-attribute
¶
Axes area background colour.
spine_color
class-attribute
instance-attribute
¶
Colour of axis spines (borders).
title_loc
class-attribute
instance-attribute
¶
Horizontal alignment of the axis title: 'left', 'center', or 'right'.
legend_frameon
class-attribute
instance-attribute
¶
Whether to draw a frame around the legend.
annotation_sep
class-attribute
instance-attribute
¶
Separator string between annotation items.
top_margin
class-attribute
instance-attribute
¶
Fraction of figure height used by the axes (leaves room for title and annotation).
ci_multiplier
class-attribute
instance-attribute
¶
Number of standard errors to use for the CI shading (default: 1 SE).
eq_threshold_color
class-attribute
instance-attribute
¶
Colour for equivalence threshold lines (blue family).
df_threshold_color
class-attribute
instance-attribute
¶
Colour for difference threshold lines (red family).
threshold_linewidth
class-attribute
instance-attribute
¶
Stroke width applied to all equivalence/difference threshold lines.
threshold_label_fontsize
class-attribute
instance-attribute
¶
Font size for inline threshold value labels.
annotate_box_colors
class-attribute
instance-attribute
¶
annotate_box_colors = field(
default_factory=lambda: {
"Unexplained": {"bg": "#F5F5F5", "edge": "#C2C0C0"},
"Upregulated": {"bg": "#FFEBEE", "edge": "#780000"},
"Downregulated": {
"bg": "#FFF3E0",
"edge": "#e36414",
},
"Equivalent": {"bg": "#E3F2FD", "edge": "#003049"},
}
)
Per-status background and edge colours for annotation label boxes.
annotate_top_n
class-attribute
instance-attribute
¶
Default number of top features per status to annotate when top_n=True.
cv_group_palette
class-attribute
instance-attribute
¶
cv_group_palette = field(
default_factory=lambda: {
"<10%": "#081c15",
"<25%": "#1b4332",
"<50%": "#2d6a4f",
"<100%": "#52b788",
">100%": "#95d5b2",
}
)
Green-scale palette for CV group categories (ascending brightness = higher CV).
status_colors
class-attribute
instance-attribute
¶
status_colors = field(
default_factory=lambda: {
"Unexplained": "#C2C0C0",
"Excluded": "#565d61",
"Upregulated": "#780000",
"Downregulated": "#e36414",
"Equivalent": "#003049",
}
)
Colour mapping for QuEStVar feature status categories.
status_order
class-attribute
instance-attribute
¶
status_order = field(
default_factory=lambda: [
"Unexplained",
"Excluded",
"Upregulated",
"Downregulated",
"Equivalent",
]
)
Canonical display order for status categories.
heatmap_diverging_cmap
class-attribute
instance-attribute
¶
Diverging colormap for log2-FC style heatmaps (red-blue).
heatmap_sequential_cmap
class-attribute
instance-attribute
¶
Sequential colormap for single-direction intensity heatmaps.
multi_line_cmap
class-attribute
instance-attribute
¶
Sequential colormap used when multiple n_reps lines are drawn in the power plot.
count_cmap
class-attribute
instance-attribute
¶
Colormap for count-based panels: exclusion matrix (G) and sample size hexbin (H).
main_width_ratio
class-attribute
instance-attribute
¶
Relative width of the main (line) panel vs the side (boxplot) panel.
side_width_ratio
class-attribute
instance-attribute
¶
Relative width of the side boxplot panel.
panel_wspace
class-attribute
instance-attribute
¶
Horizontal spacing between main and side panels (keep minimal).
box_color
class-attribute
instance-attribute
¶
Fill colour of the box (light grey keeps it neutral).
box_mediancolor
class-attribute
instance-attribute
¶
Amber median line - echoes the target line colour.
box_meancolor
class-attribute
instance-attribute
¶
Teal mean diamond - echoes the ideal line colour.
box_meansize
class-attribute
instance-attribute
¶
Size of the mean diamond marker.
box_stat_color
class-attribute
instance-attribute
¶
Colour of the mean/median text annotations inside the CV panel.
cv_sample_size
class-attribute
instance-attribute
¶
Number of random samples drawn to visualise the CV distribution.