marsilea 0.5.6__py3-none-any.whl → 0.5.8__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/_version.py CHANGED
@@ -1 +1 @@
1
- version = "0.5.6"
1
+ version = "0.5.8"
marsilea/dendrogram.py CHANGED
@@ -236,13 +236,12 @@ class Dendrogram(_DendrogramBase):
236
236
  ylim = self._render_ylim
237
237
  if orient in ["right", "left"]:
238
238
  xlim, ylim = ylim, xlim
239
-
240
239
  if control_ax:
241
240
  ax.set_xlim(*xlim)
242
241
  ax.set_ylim(*ylim)
243
242
  if orient == "left":
244
243
  ax.invert_xaxis()
245
- if orient == "bottom":
244
+ if orient != "top":
246
245
  ax.invert_yaxis()
247
246
 
248
247
  if add_root:
marsilea/plotter/bar.py CHANGED
@@ -209,6 +209,8 @@ class CenterBar(_BarBase):
209
209
  show_value=True,
210
210
  fmt=None,
211
211
  label=None,
212
+ label_loc=None,
213
+ label_props=None,
212
214
  value_pad=2.0,
213
215
  props=None,
214
216
  **kwargs,
@@ -225,6 +227,7 @@ class CenterBar(_BarBase):
225
227
  self._process_params(
226
228
  width, orient, show_value, fmt, label, value_pad, props, **kwargs
227
229
  )
230
+ self.set_label(label, label_loc, label_props)
228
231
 
229
232
  def render_ax(self, spec):
230
233
  ax = spec.ax
@@ -346,6 +349,8 @@ class StackBar(_BarBase):
346
349
  fmt=None,
347
350
  props=None,
348
351
  label=None,
352
+ label_loc=None,
353
+ label_props=None,
349
354
  value_pad=0,
350
355
  legend_kws=None,
351
356
  **kwargs,
@@ -388,6 +393,7 @@ class StackBar(_BarBase):
388
393
  self._process_params(
389
394
  width, orient, show_value, fmt, label, value_pad, value_props, **kwargs
390
395
  )
396
+ self.set_label(label, label_loc, label_props)
391
397
 
392
398
  self.value_size = value_size
393
399
  self._legend_kws = dict(title=self.label, size=1)
marsilea/plotter/mesh.py CHANGED
@@ -603,7 +603,7 @@ class SizedMesh(MeshBase):
603
603
  self.kwargs = kwargs
604
604
 
605
605
  self._collections = None
606
- self._transparent_marker = "none" in self.color2d
606
+ self._transparent_marker = "none" in self.color2d # If the marker is filled
607
607
  render_data = [self.size_matrix, self.color2d]
608
608
  if self.edgecolor is not None:
609
609
  render_data.append(self.edgecolor)
@@ -659,7 +659,7 @@ class SizedMesh(MeshBase):
659
659
  "If edgecolor legend text is provided, the number of unique edgecolors "
660
660
  "must match the number of texts"
661
661
  )
662
- if self._has_colormesh & (self._transparent_marker):
662
+ if self._has_colormesh & (not self._transparent_marker):
663
663
  if self.palette is not None:
664
664
  labels, colors = [], []
665
665
  for label, c in self.palette.items():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: marsilea
3
- Version: 0.5.6
3
+ Version: 0.5.8
4
4
  Summary: Declarative creation of composable visualizations
5
5
  Project-URL: Home, https://github.com/Marsilea-viz/marsilea
6
6
  Project-URL: Documentation, https://marsilea.readthedocs.io
@@ -1,10 +1,10 @@
1
1
  marsilea/__init__.py,sha256=mMtII0QzSVGrr1vJXTglr6wBd2AHElrDnDp1iGQbOxo,626
2
2
  marsilea/_api.py,sha256=tymWZHfjhx8-0NNd9762znfdIu36NrARRweEIr5L1mA,283
3
3
  marsilea/_deform.py,sha256=QRz4OGXMsQzbiIkC3ASzZayMPhHhoFsEK38oBzSeQG8,14440
4
- marsilea/_version.py,sha256=FtfC8ptaFH0Unc72bPRynMH_N62bxa4tnazGgIcgnTY,18
4
+ marsilea/_version.py,sha256=IAa3xnF9S8cqANXapf16xG7B-aQG7AHxJ3Iio8QzYuc,18
5
5
  marsilea/base.py,sha256=GBgSirueH65nhfkunCVYhV7ePX4i01jog5gzkBBOsi0,46951
6
6
  marsilea/dataset.py,sha256=Qh8k1DhTiwP_Me709CkpNwRaYLDzlenRTIk0U6D58_g,4631
7
- marsilea/dendrogram.py,sha256=Ung43zseybZKzTEvH5P_ge3WGfsr7i7qsX7YEVDlC74,15590
7
+ marsilea/dendrogram.py,sha256=T3Sct6z7cZu19zVjF1UOQ2lEGRf0glnHqkl9Iq-1vyM,15586
8
8
  marsilea/exceptions.py,sha256=wN5ElUZxuaJKSnnwWdkNx6P-Oc16dzSuaRPbRKWIBEM,1046
9
9
  marsilea/heatmap.py,sha256=8Wo1NxFTBp1a7NOISmer0yQYWWgf51Xsvjav1h1vTYk,4316
10
10
  marsilea/layers.py,sha256=w_yvghwYAO112mVvp1krjUjEIQYq_1nz2uCsTUJdB-Y,12909
@@ -16,17 +16,17 @@ marsilea/plotter/_seaborn.py,sha256=Ahy5id35KV-PZ50rI5lmEpA4Oov51u8w6VVQzVZH6hM,
16
16
  marsilea/plotter/_utils.py,sha256=vRnG7kKddwVgDzAqLB8r5EQrLBG9znOw74wh4GdJBX4,712
17
17
  marsilea/plotter/arc.py,sha256=44BKVGvDc_OpghfgEvaiVCovZe7_OwZiM20iepaRMFw,8139
18
18
  marsilea/plotter/area.py,sha256=zjjAhvgKHYe9rqzcseqZqhwfpgvzm0w2FRJ_vr9Fxm4,2650
19
- marsilea/plotter/bar.py,sha256=RWDsNbyCUKbybpsBOgbl43lVZc_ynZmTOevE-CtJ5KE,12354
19
+ marsilea/plotter/bar.py,sha256=X0e0o4JklSpM_xoPTFTGksRN2yoSV1IcvxunP-FpPfc,12562
20
20
  marsilea/plotter/base.py,sha256=b_NmrW_oNPc-HwQsjx1NsC2lknYK6qSaDp_7SxeoUEM,18938
21
21
  marsilea/plotter/bio.py,sha256=34tucmxs4LM3TFZoGsrjnXTolyrzYaHVEiRe4dzDH68,5040
22
22
  marsilea/plotter/images.py,sha256=gb0xIQhUch3rNAt3FfvuUoamSGEynoBBBky2eE754ec,9560
23
- marsilea/plotter/mesh.py,sha256=ARDPWrQLbdIS22B7Ct_aYPXY7IxwVKcICdBBhg8UplE,27482
23
+ marsilea/plotter/mesh.py,sha256=Wlls34kQYd82PUI0i_e03TJHlNItrQNZTwu5LBl0bOM,27513
24
24
  marsilea/plotter/range.py,sha256=sXWKrvpq7nU7giiHPjayM7h9Q7gblhjXxHm8ioB3cm4,3770
25
25
  marsilea/plotter/text.py,sha256=6S4mnAxLJLMkduKiyor03lPd86oTOJ5TojVREA9oU6s,37466
26
26
  oncoprinter/__init__.py,sha256=efshcAD1h9s-NVJj4HLU9-hXc_LtTeIrNYqLHl-sm_g,106
27
27
  oncoprinter/core.py,sha256=XBIwTsAvcA-mJSwHU0xpaTBCxBNh7yusmzblRATmekY,11866
28
28
  oncoprinter/preset.py,sha256=lo6Llz31KVFt3QOFgFc0BunloZV1FxcFVpH8kOfarNw,8363
29
- marsilea-0.5.6.dist-info/METADATA,sha256=Ve7qLr7YzOz8bKG10ZIgJHYxPSiGyOXfdhhQrk4oDTE,7265
30
- marsilea-0.5.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
31
- marsilea-0.5.6.dist-info/licenses/LICENSE,sha256=RhHHDuP61qzKmfHtOQUVLZfCgMkKx9PXzxzkLtmAjHo,1078
32
- marsilea-0.5.6.dist-info/RECORD,,
29
+ marsilea-0.5.8.dist-info/METADATA,sha256=K1zVNQmON1MaJTDU4N1ostBGiwVvDdxTHft4K-ocxyk,7265
30
+ marsilea-0.5.8.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
31
+ marsilea-0.5.8.dist-info/licenses/LICENSE,sha256=RhHHDuP61qzKmfHtOQUVLZfCgMkKx9PXzxzkLtmAjHo,1078
32
+ marsilea-0.5.8.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
2
+ Generator: hatchling 1.28.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any