marsilea 0.4.1__py3-none-any.whl → 0.4.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.
- marsilea/__init__.py +1 -1
- marsilea/plotter/mesh.py +1 -1
- marsilea/utils.py +3 -5
- {marsilea-0.4.1.dist-info → marsilea-0.4.2.dist-info}/METADATA +1 -1
- {marsilea-0.4.1.dist-info → marsilea-0.4.2.dist-info}/RECORD +7 -7
- {marsilea-0.4.1.dist-info → marsilea-0.4.2.dist-info}/LICENSE +0 -0
- {marsilea-0.4.1.dist-info → marsilea-0.4.2.dist-info}/WHEEL +0 -0
marsilea/__init__.py
CHANGED
marsilea/plotter/mesh.py
CHANGED
|
@@ -357,7 +357,7 @@ class Colors(MeshBase):
|
|
|
357
357
|
self.palette = palette
|
|
358
358
|
|
|
359
359
|
self.render_cmap = ListedColormap(render_colors)
|
|
360
|
-
self.vmax = len(render_colors)
|
|
360
|
+
self.vmax = len(render_colors) - 1
|
|
361
361
|
# Encode data into cmap range
|
|
362
362
|
encode_data = encode_numeric(data, encoder)
|
|
363
363
|
self.set_data(_mask_data(encode_data, mask=mask))
|
marsilea/utils.py
CHANGED
|
@@ -69,15 +69,13 @@ def relative_luminance(color):
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
def get_colormap(cmap):
|
|
72
|
-
if isinstance(cmap, Colormap):
|
|
73
|
-
return cmap
|
|
74
72
|
try:
|
|
75
|
-
return mpl.
|
|
73
|
+
return mpl.cm.ColormapRegistry.get_cmap(cmap)
|
|
76
74
|
except AttributeError:
|
|
77
75
|
try:
|
|
78
|
-
return mpl.
|
|
76
|
+
return mpl.colormaps.get(cmap)
|
|
79
77
|
except AttributeError:
|
|
80
|
-
return mpl.cm.
|
|
78
|
+
return mpl.cm.get_cmap(cmap)
|
|
81
79
|
|
|
82
80
|
|
|
83
81
|
def get_canvas_size_by_data(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
marsilea/__init__.py,sha256=
|
|
1
|
+
marsilea/__init__.py,sha256=d0Ly-YfvxU50ILe2FqnmpvcnSg6XwCHVIh1LRIqQfNE,541
|
|
2
2
|
marsilea/_api.py,sha256=tymWZHfjhx8-0NNd9762znfdIu36NrARRweEIr5L1mA,283
|
|
3
3
|
marsilea/_deform.py,sha256=SKXLvhyUrwTRAw7Fl--OpupDLk6T3S5DRfwCAdewHQs,14138
|
|
4
4
|
marsilea/base.py,sha256=HSY25Ax39Vj80FxSZkg4es0YklNtFJ_DgfQzbFIJseI,46637
|
|
@@ -9,7 +9,7 @@ marsilea/heatmap.py,sha256=lKGt0lTtziNFDsb_SBfFt3zoYzVYRzezc9aae5RxHyk,4168
|
|
|
9
9
|
marsilea/layers.py,sha256=puXLlGGpEqAzaTqadpgpsYmIDPH33WyyHIuysRSqFZQ,12163
|
|
10
10
|
marsilea/layout.py,sha256=X8MGPlAbbr7dcZiqW4pI7sEb8U3jVaiS7t1DKOqMYLI,27758
|
|
11
11
|
marsilea/upset.py,sha256=U1Rsmo1WpCAV9z3LBlE2L4T0nAW9ols8Z36fXzmXycw,30388
|
|
12
|
-
marsilea/utils.py,sha256=
|
|
12
|
+
marsilea/utils.py,sha256=LJ7U0aVw_Ru45DXo4x5zi1FEjjIKt4j0mpdDY34wiNA,2903
|
|
13
13
|
marsilea/plotter/__init__.py,sha256=n1E53C5oqnsHZcXAtN6HgZsZdcAvANONNx-fupTxzN0,738
|
|
14
14
|
marsilea/plotter/_images.py,sha256=RWCI4FhcxJZimLrhdy9CHw3ri1kweGRICUyByE4wzmg,3065
|
|
15
15
|
marsilea/plotter/_seaborn.py,sha256=aK0EnboshfNCNvNjsIc7dxDE_4KBKi4HMUt7CKWt_6U,8188
|
|
@@ -19,9 +19,9 @@ marsilea/plotter/area.py,sha256=zjjAhvgKHYe9rqzcseqZqhwfpgvzm0w2FRJ_vr9Fxm4,2650
|
|
|
19
19
|
marsilea/plotter/bar.py,sha256=TeX6li--kE9NtqCRflDTX0jkG1-uIq0Dn8ILKSv-AuA,12080
|
|
20
20
|
marsilea/plotter/base.py,sha256=NgaoFnbMS6Mj4BghVcGaSYYN8A9e3DD_rRomDIm4C5c,20456
|
|
21
21
|
marsilea/plotter/bio.py,sha256=_pZkGoAei7eirFCpu7AcZJhebBneNjUKcZlI36bpqUE,5044
|
|
22
|
-
marsilea/plotter/mesh.py,sha256=
|
|
22
|
+
marsilea/plotter/mesh.py,sha256=YY6aq62QS1HyTeIWF79rpIJUUQTOxWXx3LZ7oZXYlzU,23797
|
|
23
23
|
marsilea/plotter/text.py,sha256=oYJ5py3_nGHKi60DSVzFgPg4drnTSTw__IcYs0cut4M,36222
|
|
24
|
-
marsilea-0.4.
|
|
25
|
-
marsilea-0.4.
|
|
26
|
-
marsilea-0.4.
|
|
27
|
-
marsilea-0.4.
|
|
24
|
+
marsilea-0.4.2.dist-info/LICENSE,sha256=2TLD8FnLJqXzg8YBRs7W3VZBwfWfp4ArDfBl-rn96Qc,1074
|
|
25
|
+
marsilea-0.4.2.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
|
26
|
+
marsilea-0.4.2.dist-info/METADATA,sha256=3H95A_-TertDPICUSKoJECa8Hf29atnkEYs28p00lLE,4074
|
|
27
|
+
marsilea-0.4.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|