bsplot 0.0.7__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.
- {bsplot-0.0.7 → bsplot-0.0.8}/PKG-INFO +1 -1
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/__init__.py +1 -1
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/streamlines.py +0 -8
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/style.py +4 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/LICENSE +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/MANIFEST.in +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/README.md +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/anat.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/animate.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/bioicons.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/brain.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/colors.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/data/HCP_avg-SC.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/data/MNI152.rh.pial +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/data/__init__.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/data/parcellations/HCP-MMP1.L.label.gii +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/data/parcellations/HCP-MMP1.R.label.gii +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/data/surface.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/figure.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/graph/__init__.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/graph/edges.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/graph/flowchart.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/graph/layout.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/graph/network.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/graph/nodes.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/panels.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/__init__.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/_sync_from_zenodo_download.sh +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/batlowK.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/batlowW.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/cyclic/bamO.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/cyclic/brocO.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/cyclic/corkO.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/cyclic/romaO.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/cyclic/vikO.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/diverging/bam.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/diverging/berlin.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/diverging/broc.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/diverging/cork.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/diverging/lisbon.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/diverging/managua.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/diverging/roma.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/diverging/tofino.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/diverging/vanimo.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/diverging/vik.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/multisequential/bukavu.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/multisequential/fes.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/multisequential/oleron.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/naviaW.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/acton.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/bamako.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/batlow.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/bilbao.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/buda.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/davos.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/devon.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/glasgow.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/grayC.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/hawaii.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/imola.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/lajolla.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/lapaz.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/lipari.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/navia.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/nuuk.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/oslo.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/tokyo.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/scientific_color_maps/sequential/turku.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/styles/black.mplstyle +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/styles/bss.mplstyle +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/styles/bwcomp.mplstyle +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/styles/nature.mplstyle +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/styles/transparent.mplstyle +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/styles/tvbo.mplstyle +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/surface.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/templates.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/text.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/text2obj.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/timeseries.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/utils.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot/volume.py +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/bsplot.egg-info/SOURCES.txt +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/pyproject.toml +0 -0
- {bsplot-0.0.7 → bsplot-0.0.8}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bsplot
|
|
3
|
-
Version: 0.0.
|
|
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.
|
|
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 = (
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|