bsplot 0.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- bsplot/__init__.py +23 -0
- bsplot/anat.py +55 -0
- bsplot/animate.py +194 -0
- bsplot/bioicons.py +777 -0
- bsplot/brain.py +188 -0
- bsplot/colors.py +1935 -0
- bsplot/data/HCP_avg-SC.txt +379 -0
- bsplot/data/MNI152.rh.pial +0 -0
- bsplot/data/STN_lh.nii.gz +0 -0
- bsplot/data/STN_rh.nii.gz +0 -0
- bsplot/data/__init__.py +22 -0
- bsplot/data/left_electrode.ply +257270 -0
- bsplot/data/parcellations/HCP-MMP1.L.label.gii +442 -0
- bsplot/data/parcellations/HCP-MMP1.R.label.gii +442 -0
- bsplot/data/parcellations/code/split_hcpmmp1.sh +4 -0
- bsplot/data/right_electrode.ply +257270 -0
- bsplot/data/surface.py +112 -0
- bsplot/data/tpl-MNI152NLin2009b_atlas-hcpmmp1_desc-ordered_dseg.nii.gz +0 -0
- bsplot/figure.py +177 -0
- bsplot/graph/__init__.py +31 -0
- bsplot/graph/edges.py +312 -0
- bsplot/graph/flowchart.py +762 -0
- bsplot/graph/layout.py +201 -0
- bsplot/graph/network.py +974 -0
- bsplot/graph/nodes.py +452 -0
- bsplot/panels.py +110 -0
- bsplot/scientific_color_maps/__init__.py +0 -0
- bsplot/scientific_color_maps/_sync_from_zenodo_download.sh +1 -0
- bsplot/scientific_color_maps/batlowK.txt +256 -0
- bsplot/scientific_color_maps/batlowW.txt +256 -0
- bsplot/scientific_color_maps/cyclic/bamO.txt +256 -0
- bsplot/scientific_color_maps/cyclic/brocO.txt +256 -0
- bsplot/scientific_color_maps/cyclic/corkO.txt +256 -0
- bsplot/scientific_color_maps/cyclic/romaO.txt +256 -0
- bsplot/scientific_color_maps/cyclic/vikO.txt +256 -0
- bsplot/scientific_color_maps/diverging/bam.txt +256 -0
- bsplot/scientific_color_maps/diverging/berlin.txt +256 -0
- bsplot/scientific_color_maps/diverging/broc.txt +256 -0
- bsplot/scientific_color_maps/diverging/cork.txt +256 -0
- bsplot/scientific_color_maps/diverging/lisbon.txt +256 -0
- bsplot/scientific_color_maps/diverging/managua.txt +256 -0
- bsplot/scientific_color_maps/diverging/roma.txt +256 -0
- bsplot/scientific_color_maps/diverging/tofino.txt +256 -0
- bsplot/scientific_color_maps/diverging/vanimo.txt +256 -0
- bsplot/scientific_color_maps/diverging/vik.txt +256 -0
- bsplot/scientific_color_maps/multisequential/bukavu.txt +256 -0
- bsplot/scientific_color_maps/multisequential/fes.txt +256 -0
- bsplot/scientific_color_maps/multisequential/oleron.txt +256 -0
- bsplot/scientific_color_maps/naviaW.txt +256 -0
- bsplot/scientific_color_maps/sequential/acton.txt +256 -0
- bsplot/scientific_color_maps/sequential/bamako.txt +256 -0
- bsplot/scientific_color_maps/sequential/batlow.txt +256 -0
- bsplot/scientific_color_maps/sequential/bilbao.txt +256 -0
- bsplot/scientific_color_maps/sequential/buda.txt +256 -0
- bsplot/scientific_color_maps/sequential/davos.txt +256 -0
- bsplot/scientific_color_maps/sequential/devon.txt +256 -0
- bsplot/scientific_color_maps/sequential/glasgow.txt +256 -0
- bsplot/scientific_color_maps/sequential/grayC.txt +256 -0
- bsplot/scientific_color_maps/sequential/hawaii.txt +256 -0
- bsplot/scientific_color_maps/sequential/imola.txt +256 -0
- bsplot/scientific_color_maps/sequential/lajolla.txt +256 -0
- bsplot/scientific_color_maps/sequential/lapaz.txt +256 -0
- bsplot/scientific_color_maps/sequential/lipari.txt +256 -0
- bsplot/scientific_color_maps/sequential/navia.txt +256 -0
- bsplot/scientific_color_maps/sequential/nuuk.txt +256 -0
- bsplot/scientific_color_maps/sequential/oslo.txt +256 -0
- bsplot/scientific_color_maps/sequential/tokyo.txt +256 -0
- bsplot/scientific_color_maps/sequential/turku.txt +256 -0
- bsplot/streamlines.py +314 -0
- bsplot/style.py +791 -0
- bsplot/styles/black.mplstyle +78 -0
- bsplot/styles/bss.mplstyle +50 -0
- bsplot/styles/bwcomp.mplstyle +30 -0
- bsplot/styles/nature.mplstyle +57 -0
- bsplot/styles/transparent.mplstyle +16 -0
- bsplot/styles/tvbo.mplstyle +57 -0
- bsplot/surface.py +2370 -0
- bsplot/templates.py +270 -0
- bsplot/text.py +199 -0
- bsplot/text2obj.py +59 -0
- bsplot/timeseries.py +10 -0
- bsplot/utils.py +13 -0
- bsplot/volume.py +958 -0
- bsplot-0.0.2.dist-info/METADATA +60 -0
- bsplot-0.0.2.dist-info/RECORD +89 -0
- bsplot-0.0.2.dist-info/WHEEL +5 -0
- bsplot-0.0.2.dist-info/entry_points.txt +2 -0
- bsplot-0.0.2.dist-info/licenses/LICENSE +193 -0
- bsplot-0.0.2.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# --- Axes ---
|
|
2
|
+
axes.linewidth: 1.5
|
|
3
|
+
axes.edgecolor: white
|
|
4
|
+
axes.spines.top: False
|
|
5
|
+
axes.spines.right: False
|
|
6
|
+
axes.autolimit_mode: data
|
|
7
|
+
axes.titlesize: 10
|
|
8
|
+
axes.labelsize: 9
|
|
9
|
+
axes.labelpad: 4
|
|
10
|
+
axes.titlepad: 6
|
|
11
|
+
axes.facecolor: black
|
|
12
|
+
|
|
13
|
+
# --- Font ---
|
|
14
|
+
font.size: 9
|
|
15
|
+
font.family: sans-serif
|
|
16
|
+
font.sans-serif: Helvetica, Arial, DejaVu Sans
|
|
17
|
+
text.color: white
|
|
18
|
+
axes.labelcolor: white
|
|
19
|
+
axes.titlecolor: white
|
|
20
|
+
|
|
21
|
+
# --- Ticks ---
|
|
22
|
+
xtick.direction: out
|
|
23
|
+
ytick.direction: out
|
|
24
|
+
xtick.major.size: 6
|
|
25
|
+
ytick.major.size: 6
|
|
26
|
+
xtick.major.width: 1.5
|
|
27
|
+
ytick.major.width: 1.5
|
|
28
|
+
xtick.minor.visible: False
|
|
29
|
+
ytick.minor.visible: False
|
|
30
|
+
xtick.bottom: True
|
|
31
|
+
ytick.left: True
|
|
32
|
+
xtick.labelsize: 8
|
|
33
|
+
ytick.labelsize: 8
|
|
34
|
+
xtick.color: white
|
|
35
|
+
ytick.color: white
|
|
36
|
+
|
|
37
|
+
# --- Grid ---
|
|
38
|
+
axes.grid: False
|
|
39
|
+
grid.linestyle: -
|
|
40
|
+
grid.linewidth: 0.5
|
|
41
|
+
grid.alpha: 0.3
|
|
42
|
+
grid.color: 0.4
|
|
43
|
+
|
|
44
|
+
# --- Figure ---
|
|
45
|
+
figure.dpi: 150
|
|
46
|
+
figure.figsize: 7.2, 5.0
|
|
47
|
+
figure.constrained_layout.use: True
|
|
48
|
+
figure.facecolor: black
|
|
49
|
+
figure.edgecolor: black
|
|
50
|
+
|
|
51
|
+
# --- Savefig ---
|
|
52
|
+
savefig.dpi: 300
|
|
53
|
+
savefig.bbox: tight
|
|
54
|
+
savefig.pad_inches: 0.05
|
|
55
|
+
savefig.format: pdf
|
|
56
|
+
savefig.facecolor: black
|
|
57
|
+
savefig.edgecolor: black
|
|
58
|
+
savefig.transparent: False
|
|
59
|
+
|
|
60
|
+
# --- Lines and markers ---
|
|
61
|
+
lines.linewidth: 1.5
|
|
62
|
+
lines.markersize: 4
|
|
63
|
+
|
|
64
|
+
# --- Legend ---
|
|
65
|
+
legend.frameon: True
|
|
66
|
+
legend.fontsize: 8
|
|
67
|
+
legend.loc: best
|
|
68
|
+
legend.facecolor: 0.07
|
|
69
|
+
legend.edgecolor: white
|
|
70
|
+
legend.framealpha: 0.8
|
|
71
|
+
legend.labelcolor: white
|
|
72
|
+
|
|
73
|
+
# --- Patches ---
|
|
74
|
+
patch.edgecolor: white
|
|
75
|
+
patch.force_edgecolor: True
|
|
76
|
+
|
|
77
|
+
# --- Color cycle ---
|
|
78
|
+
axes.prop_cycle: cycler(color=["#FFFFFF", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7"])
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Font settings for Arial or Helvetica
|
|
2
|
+
font.family: Arial # Or Helvetica if Arial is unavailable
|
|
3
|
+
font.size: 10 # Font size 5-7 pt as required for figures
|
|
4
|
+
text.color: black
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# Color-safe and distinct color palette, avoiding red and green
|
|
8
|
+
axes.prop_cycle: cycler(color=["#000000", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7"])
|
|
9
|
+
|
|
10
|
+
# Grid and tick settings
|
|
11
|
+
axes.grid: False
|
|
12
|
+
axes.facecolor: white
|
|
13
|
+
axes.edgecolor: black
|
|
14
|
+
axes.spines.right: False
|
|
15
|
+
axes.spines.top: False
|
|
16
|
+
axes.linewidth: 1
|
|
17
|
+
xtick.major.width: 1
|
|
18
|
+
ytick.major.width: 1
|
|
19
|
+
axes.labelcolor: black # White font color for labels
|
|
20
|
+
axes.titlecolor: black # White font color for titles
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
axes.titlesize: medium
|
|
24
|
+
axes.labelpad: 2
|
|
25
|
+
|
|
26
|
+
xtick.direction: out
|
|
27
|
+
ytick.direction: out
|
|
28
|
+
xtick.color: black # White font color for x-ticks
|
|
29
|
+
ytick.color: black # White font color for y-ticks
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# Figure dimensions for journal specifications (double column by default)
|
|
33
|
+
figure.figsize: 7.09, 4.38 # Width for double-column figures, max height
|
|
34
|
+
|
|
35
|
+
# Line settings
|
|
36
|
+
lines.antialiased: True
|
|
37
|
+
|
|
38
|
+
# Background color for figures
|
|
39
|
+
figure.facecolor: white
|
|
40
|
+
figure.edgecolor: none # Transparent edges for cleaner vector graphics
|
|
41
|
+
|
|
42
|
+
# File export settings (vector-based preferred)
|
|
43
|
+
savefig.format: pdf # Default to PDF for vector graphics
|
|
44
|
+
savefig.transparent: True
|
|
45
|
+
savefig.bbox: tight
|
|
46
|
+
savefig.dpi: 1000
|
|
47
|
+
|
|
48
|
+
# Text settings
|
|
49
|
+
text.usetex: False # Set to True if using LaTeX-rendered text for symbols
|
|
50
|
+
text.parse_math: True
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Style module: bwcomp (black-white compatible)
|
|
2
|
+
# Uses #767676 grey for all chrome — the mathematically optimal grey
|
|
3
|
+
# that maximises minimum WCAG contrast against both black and white
|
|
4
|
+
# (~4.54:1 each, meeting WCAG AA).
|
|
5
|
+
# Combine with other styles:
|
|
6
|
+
# bsplot.style.use("bwcomp")
|
|
7
|
+
# bsplot.style.use("tvbo-bwcomp")
|
|
8
|
+
# bsplot.style.use("bwcomp-transparent")
|
|
9
|
+
# bsplot.style.use("tvbo-bwcomp-transparent")
|
|
10
|
+
|
|
11
|
+
# --- Colors ---
|
|
12
|
+
text.color: 767676
|
|
13
|
+
axes.edgecolor: 767676
|
|
14
|
+
axes.labelcolor: 767676
|
|
15
|
+
axes.titlecolor: 767676
|
|
16
|
+
xtick.color: 767676
|
|
17
|
+
ytick.color: 767676
|
|
18
|
+
|
|
19
|
+
# --- Grid ---
|
|
20
|
+
grid.color: 767676
|
|
21
|
+
|
|
22
|
+
# --- Legend ---
|
|
23
|
+
legend.edgecolor: 767676
|
|
24
|
+
legend.labelcolor: 767676
|
|
25
|
+
|
|
26
|
+
# --- Patches ---
|
|
27
|
+
patch.edgecolor: 767676
|
|
28
|
+
|
|
29
|
+
# --- Color cycle (grey-first, then colorblind-safe) ---
|
|
30
|
+
axes.prop_cycle: cycler(color=["#767676", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7"])
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# --- Axes ---
|
|
2
|
+
axes.linewidth: 1.5
|
|
3
|
+
axes.edgecolor: black
|
|
4
|
+
axes.spines.top: False
|
|
5
|
+
axes.spines.right: False
|
|
6
|
+
axes.autolimit_mode: data
|
|
7
|
+
axes.titlesize: 10
|
|
8
|
+
axes.labelsize: 9
|
|
9
|
+
axes.labelpad: 4
|
|
10
|
+
axes.titlepad: 6
|
|
11
|
+
|
|
12
|
+
# --- Font ---
|
|
13
|
+
font.size: 9
|
|
14
|
+
font.family: sans-serif
|
|
15
|
+
font.sans-serif: Helvetica, Arial, DejaVu Sans
|
|
16
|
+
|
|
17
|
+
# --- Ticks ---
|
|
18
|
+
xtick.direction: out
|
|
19
|
+
ytick.direction: out
|
|
20
|
+
xtick.major.size: 6
|
|
21
|
+
ytick.major.size: 6
|
|
22
|
+
xtick.major.width: 1.5
|
|
23
|
+
ytick.major.width: 1.5
|
|
24
|
+
xtick.minor.visible: False
|
|
25
|
+
ytick.minor.visible: False
|
|
26
|
+
xtick.bottom: True
|
|
27
|
+
ytick.left: True
|
|
28
|
+
xtick.labelsize: 8
|
|
29
|
+
ytick.labelsize: 8
|
|
30
|
+
|
|
31
|
+
# --- Grid ---
|
|
32
|
+
grid.linestyle: -
|
|
33
|
+
grid.linewidth: 0.5
|
|
34
|
+
grid.alpha: 0.3
|
|
35
|
+
grid.color: grey
|
|
36
|
+
|
|
37
|
+
# --- Figure ---
|
|
38
|
+
figure.dpi: 300
|
|
39
|
+
figure.figsize: 7.2, 5.0
|
|
40
|
+
|
|
41
|
+
# --- Savefig ---
|
|
42
|
+
savefig.dpi: 300
|
|
43
|
+
savefig.bbox: tight
|
|
44
|
+
savefig.pad_inches: 0.05
|
|
45
|
+
savefig.format: pdf
|
|
46
|
+
|
|
47
|
+
# --- Lines and markers ---
|
|
48
|
+
lines.linewidth: 1.5
|
|
49
|
+
lines.markersize: 4
|
|
50
|
+
|
|
51
|
+
# --- Legend ---
|
|
52
|
+
legend.frameon: True
|
|
53
|
+
legend.fontsize: 8
|
|
54
|
+
legend.loc: best
|
|
55
|
+
|
|
56
|
+
# --- Color cycle ---
|
|
57
|
+
axes.prop_cycle: cycler("color", ["black", "#1b9e77", "#d95f02", "#7570b3", "#e7298a", "#66a61e"])
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Style module: transparent
|
|
2
|
+
# Removes all background patches (axes + figure). Combine with any base style:
|
|
3
|
+
# bsplot.style.use("black-transparent")
|
|
4
|
+
# bsplot.style.use("tvbo-transparent")
|
|
5
|
+
|
|
6
|
+
# --- Axes ---
|
|
7
|
+
axes.facecolor: none
|
|
8
|
+
|
|
9
|
+
# --- Figure ---
|
|
10
|
+
figure.facecolor: none
|
|
11
|
+
figure.edgecolor: none
|
|
12
|
+
|
|
13
|
+
# --- Savefig ---
|
|
14
|
+
savefig.facecolor: none
|
|
15
|
+
savefig.edgecolor: none
|
|
16
|
+
savefig.transparent: True
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# --- Axes ---
|
|
2
|
+
axes.linewidth: 1.5
|
|
3
|
+
axes.edgecolor: black
|
|
4
|
+
axes.spines.top: False
|
|
5
|
+
axes.spines.right: False
|
|
6
|
+
axes.autolimit_mode: data
|
|
7
|
+
axes.titlesize: 10
|
|
8
|
+
axes.labelsize: 9
|
|
9
|
+
axes.labelpad: 4
|
|
10
|
+
axes.titlepad: 6
|
|
11
|
+
|
|
12
|
+
# --- Font ---
|
|
13
|
+
font.size: 9
|
|
14
|
+
font.family: sans-serif
|
|
15
|
+
font.sans-serif: Helvetica, Arial, DejaVu Sans
|
|
16
|
+
|
|
17
|
+
# --- Ticks ---
|
|
18
|
+
xtick.direction: out
|
|
19
|
+
ytick.direction: out
|
|
20
|
+
xtick.major.size: 6
|
|
21
|
+
ytick.major.size: 6
|
|
22
|
+
xtick.major.width: 1.5
|
|
23
|
+
ytick.major.width: 1.5
|
|
24
|
+
xtick.minor.visible: False
|
|
25
|
+
ytick.minor.visible: False
|
|
26
|
+
xtick.bottom: True
|
|
27
|
+
ytick.left: True
|
|
28
|
+
xtick.labelsize: 8
|
|
29
|
+
ytick.labelsize: 8
|
|
30
|
+
|
|
31
|
+
# --- Grid ---
|
|
32
|
+
grid.linestyle: -
|
|
33
|
+
grid.linewidth: 0.5
|
|
34
|
+
grid.alpha: 0.3
|
|
35
|
+
grid.color: grey
|
|
36
|
+
|
|
37
|
+
# --- Figure ---
|
|
38
|
+
figure.dpi: 300
|
|
39
|
+
figure.figsize: 7.2, 5.0
|
|
40
|
+
|
|
41
|
+
# --- Savefig ---
|
|
42
|
+
savefig.dpi: 300
|
|
43
|
+
savefig.bbox: tight
|
|
44
|
+
savefig.pad_inches: 0.05
|
|
45
|
+
savefig.format: pdf
|
|
46
|
+
|
|
47
|
+
# --- Lines and markers ---
|
|
48
|
+
lines.linewidth: 1.5
|
|
49
|
+
lines.markersize: 4
|
|
50
|
+
|
|
51
|
+
# --- Legend ---
|
|
52
|
+
legend.frameon: True
|
|
53
|
+
legend.fontsize: 8
|
|
54
|
+
legend.loc: best
|
|
55
|
+
|
|
56
|
+
# --- Color cycle ---
|
|
57
|
+
axes.prop_cycle: cycler(color=["#000000", "#440154", "#414487", "#2a788e", "#22a884", "#7ad151", "#fde725"])
|