bsplot 0.0.6__tar.gz → 0.0.8__tar.gz

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.
Files changed (90) hide show
  1. {bsplot-0.0.6 → bsplot-0.0.8}/MANIFEST.in +4 -1
  2. {bsplot-0.0.6 → bsplot-0.0.8}/PKG-INFO +1 -1
  3. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/__init__.py +1 -1
  4. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/streamlines.py +0 -8
  5. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/style.py +4 -0
  6. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot.egg-info/SOURCES.txt +0 -6
  7. {bsplot-0.0.6 → bsplot-0.0.8}/pyproject.toml +4 -1
  8. bsplot-0.0.6/bsplot/data/STN_lh.nii.gz +0 -0
  9. bsplot-0.0.6/bsplot/data/STN_rh.nii.gz +0 -0
  10. bsplot-0.0.6/bsplot/data/left_electrode.ply +0 -257270
  11. bsplot-0.0.6/bsplot/data/parcellations/code/split_hcpmmp1.sh +0 -4
  12. bsplot-0.0.6/bsplot/data/right_electrode.ply +0 -257270
  13. bsplot-0.0.6/bsplot/data/tpl-MNI152NLin2009b_atlas-hcpmmp1_desc-ordered_dseg.nii.gz +0 -0
  14. {bsplot-0.0.6 → bsplot-0.0.8}/LICENSE +0 -0
  15. {bsplot-0.0.6 → bsplot-0.0.8}/README.md +0 -0
  16. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/anat.py +0 -0
  17. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/animate.py +0 -0
  18. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/bioicons.py +0 -0
  19. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/brain.py +0 -0
  20. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/colors.py +0 -0
  21. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/data/HCP_avg-SC.txt +0 -0
  22. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/data/MNI152.rh.pial +0 -0
  23. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/data/__init__.py +0 -0
  24. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/data/parcellations/HCP-MMP1.L.label.gii +0 -0
  25. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/data/parcellations/HCP-MMP1.R.label.gii +0 -0
  26. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/data/surface.py +0 -0
  27. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/figure.py +0 -0
  28. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/graph/__init__.py +0 -0
  29. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/graph/edges.py +0 -0
  30. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/graph/flowchart.py +0 -0
  31. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/graph/layout.py +0 -0
  32. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/graph/network.py +0 -0
  33. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/graph/nodes.py +0 -0
  34. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/panels.py +0 -0
  35. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/__init__.py +0 -0
  36. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/_sync_from_zenodo_download.sh +0 -0
  37. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/batlowK.txt +0 -0
  38. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/batlowW.txt +0 -0
  39. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/cyclic/bamO.txt +0 -0
  40. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/cyclic/brocO.txt +0 -0
  41. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/cyclic/corkO.txt +0 -0
  42. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/cyclic/romaO.txt +0 -0
  43. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/cyclic/vikO.txt +0 -0
  44. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/diverging/bam.txt +0 -0
  45. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/diverging/berlin.txt +0 -0
  46. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/diverging/broc.txt +0 -0
  47. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/diverging/cork.txt +0 -0
  48. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/diverging/lisbon.txt +0 -0
  49. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/diverging/managua.txt +0 -0
  50. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/diverging/roma.txt +0 -0
  51. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/diverging/tofino.txt +0 -0
  52. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/diverging/vanimo.txt +0 -0
  53. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/diverging/vik.txt +0 -0
  54. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/multisequential/bukavu.txt +0 -0
  55. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/multisequential/fes.txt +0 -0
  56. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/multisequential/oleron.txt +0 -0
  57. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/naviaW.txt +0 -0
  58. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/acton.txt +0 -0
  59. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/bamako.txt +0 -0
  60. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/batlow.txt +0 -0
  61. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/bilbao.txt +0 -0
  62. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/buda.txt +0 -0
  63. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/davos.txt +0 -0
  64. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/devon.txt +0 -0
  65. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/glasgow.txt +0 -0
  66. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/grayC.txt +0 -0
  67. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/hawaii.txt +0 -0
  68. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/imola.txt +0 -0
  69. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/lajolla.txt +0 -0
  70. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/lapaz.txt +0 -0
  71. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/lipari.txt +0 -0
  72. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/navia.txt +0 -0
  73. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/nuuk.txt +0 -0
  74. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/oslo.txt +0 -0
  75. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/tokyo.txt +0 -0
  76. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/turku.txt +0 -0
  77. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/styles/black.mplstyle +0 -0
  78. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/styles/bss.mplstyle +0 -0
  79. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/styles/bwcomp.mplstyle +0 -0
  80. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/styles/nature.mplstyle +0 -0
  81. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/styles/transparent.mplstyle +0 -0
  82. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/styles/tvbo.mplstyle +0 -0
  83. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/surface.py +0 -0
  84. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/templates.py +0 -0
  85. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/text.py +0 -0
  86. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/text2obj.py +0 -0
  87. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/timeseries.py +0 -0
  88. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/utils.py +0 -0
  89. {bsplot-0.0.6 → bsplot-0.0.8}/bsplot/volume.py +0 -0
  90. {bsplot-0.0.6 → bsplot-0.0.8}/setup.cfg +0 -0
@@ -4,7 +4,10 @@ include pyproject.toml
4
4
 
5
5
  recursive-include bsplot *.py
6
6
  recursive-include bsplot/styles *.mplstyle
7
- recursive-include bsplot/data *
7
+ include bsplot/data/HCP_avg-SC.txt
8
+ include bsplot/data/MNI152.rh.pial
9
+ include bsplot/data/parcellations/HCP-MMP1.L.label.gii
10
+ include bsplot/data/parcellations/HCP-MMP1.R.label.gii
8
11
  recursive-include bsplot/scientific_color_maps *
9
12
 
10
13
  prune docs
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bsplot
3
- Version: 0.0.6
3
+ Version: 0.0.8
4
4
  Summary: Plotting utilities for neuroscience: styles, palettes, surfaces, glass-brain, and panel helpers.
5
5
  License-Expression: EUPL-1.2
6
6
  Project-URL: Repository, https://github.com/leon-k-martin/bsplot
@@ -1,7 +1,7 @@
1
1
  # Copyright © Charité Universitätsmedizin Berlin. This software is licensed under the terms of the European Union Public Licence (EUPL) version 1.2 or later.
2
2
  from os.path import abspath, dirname, join
3
3
 
4
- __version__ = "0.0.6"
4
+ __version__ = "0.0.8"
5
5
 
6
6
  ROOT = abspath(dirname(__file__))
7
7
  datadir = join(ROOT, "data")
@@ -136,14 +136,6 @@ def plot_tractogram(
136
136
  **kwargs,
137
137
  ):
138
138
  from tqdm import tqdm
139
- import importlib
140
-
141
- try:
142
- dipy = importlib.import_module("dipy")
143
- except ImportError as e:
144
- raise ImportError(
145
- "plot_tractogram requires 'dipy'. Please install it: pip install dipy"
146
- ) from e
147
139
  from matplotlib.cm import ScalarMappable
148
140
 
149
141
  # Load tractogram from file if path is provided
@@ -628,6 +628,10 @@ def _apply_axis_offset(ax, axis, offset, pos="top"):
628
628
 
629
629
 
630
630
  def format_colorbar(ax, colorbar_decimals=None):
631
+ # Accept both Colorbar objects and Axes objects
632
+ import matplotlib.colorbar
633
+ if isinstance(ax, matplotlib.colorbar.Colorbar):
634
+ ax = ax.ax
631
635
  for spine in ax.spines.values():
632
636
  spine.set_visible(False)
633
637
  orientation = (
@@ -21,16 +21,10 @@ bsplot/utils.py
21
21
  bsplot/volume.py
22
22
  bsplot/data/HCP_avg-SC.txt
23
23
  bsplot/data/MNI152.rh.pial
24
- bsplot/data/STN_lh.nii.gz
25
- bsplot/data/STN_rh.nii.gz
26
24
  bsplot/data/__init__.py
27
- bsplot/data/left_electrode.ply
28
- bsplot/data/right_electrode.ply
29
25
  bsplot/data/surface.py
30
- bsplot/data/tpl-MNI152NLin2009b_atlas-hcpmmp1_desc-ordered_dseg.nii.gz
31
26
  bsplot/data/parcellations/HCP-MMP1.L.label.gii
32
27
  bsplot/data/parcellations/HCP-MMP1.R.label.gii
33
- bsplot/data/parcellations/code/split_hcpmmp1.sh
34
28
  bsplot/graph/__init__.py
35
29
  bsplot/graph/edges.py
36
30
  bsplot/graph/flowchart.py
@@ -40,7 +40,10 @@ include = ["bsplot*"]
40
40
  [tool.setuptools.package-data]
41
41
  "bsplot" = [
42
42
  "styles/*.mplstyle",
43
- "data/*",
43
+ "data/HCP_avg-SC.txt",
44
+ "data/MNI152.rh.pial",
45
+ "data/parcellations/HCP-MMP1.L.label.gii",
46
+ "data/parcellations/HCP-MMP1.R.label.gii",
44
47
  "scientific_color_maps/*",
45
48
  "scientific_color_maps/*/*",
46
49
  "scientific_color_maps/*/*/*",
Binary file
Binary file