-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvis_config.py
More file actions
91 lines (85 loc) · 2.56 KB
/
vis_config.py
File metadata and controls
91 lines (85 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
VIS_CONFIG = {
# Font settings
'font': {
'family': 'Times New Roman',
'sizes': {
'main_title': 30, # Main title, bold, dark gray(#333)
'axis_label': 30, # Axis labels, 45 degree rotation
'values': 25, # Values in plots
'sample_info': 25, # Sample size info, light gray(#666)
'annotation': 25 # All annotations
},
'colors': {
'title': '#333333', # Dark gray for titles
'info': '#666666' # Light gray for additional info
}
},
# Figure dimensions (in cm)
'figure': {
'correlation': {
'width': 10,
'height': 10
},
'outliers': {
'width': 24,
'height': 10
},
'comparison': {
'width': 12.5, # Quarter A4 width
'height': 10
}
},
# Color schemes
'colors': {
'correlation': 'RdBu_r', # Red-Blue diverging colormap
'hexbin': 'Blues', # Blues colormap for density plots
'comparison': {
'primary': '#1f77b4',
'secondary': '#ff7f0e',
'tertiary': '#2ca02c',
'quaternary': '#d62728'
}
},
# Plot elements
'elements': {
'scatter_size': 80, # Size for scatter points
'line_width': 3, # Width for lines
'grid': True, # Show grid by default
'dpi': 300 # High resolution for publication
},
# Special annotations
'annotations': {
'correlation': {
'strong_correlation': 0.5, # Threshold for white text
'high_correlation': 0.8 # Threshold for gold border
},
'outliers': {
'iqr_factor': 1.5, # IQR factor for outlier detection
'boundary_style': {
'color': 'red',
'linestyle': '--',
'linewidth': 2
}
}
},
# Output settings
'output': {
'format': 'png',
'dpi': 300,
'bbox_inches': 'tight'
}
}
# Plot style settings
PLOT_STYLE = {
'figure.figsize': (10, 10),
'font.family': 'Times New Roman',
'font.size': 30,
'font.weight': 'bold',
'axes.titlesize': 30,
'axes.labelsize': 30,
'xtick.labelsize': 25,
'ytick.labelsize': 25,
'legend.fontsize': 25,
'axes.grid': True,
'grid.alpha': 0.3
}