marsilea 0.3.1__py3-none-any.whl → 0.3.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  """Create x-layout visualization"""
2
2
 
3
- __version__ = "0.3.1"
3
+ __version__ = "0.3.2"
4
4
 
5
5
  from ._deform import Deformation
6
6
  from .base import WhiteBoard, ClusterBoard
marsilea/plotter/arc.py CHANGED
@@ -210,8 +210,8 @@ class Arc(StatsBase):
210
210
  xy = (arc_mid, 0)
211
211
  angle = 0
212
212
  sizes.append(arc_width)
213
- arc = mArc(xy, arc_width, arc_width * 2, angle,
214
- **options)
213
+ arc = mArc(xy, arc_width, arc_width * 2,
214
+ angle=angle, **options)
215
215
  ax.add_patch(arc)
216
216
 
217
217
  lim = np.max(sizes)
marsilea/plotter/bar.py CHANGED
@@ -204,7 +204,7 @@ class CenterBar(_BarBase):
204
204
  if orient == "h":
205
205
  bar = ax.barh
206
206
  line = ax.axvline
207
- data = data[::-1, ::-1]
207
+ data = data[::-1]
208
208
 
209
209
  del options["bottom"]
210
210
  options["left"] = 0
@@ -387,6 +387,10 @@ class StackBar(_BarBase):
387
387
  if self.side == "left":
388
388
  ax.invert_xaxis()
389
389
 
390
+ # Hanlde data
391
+ if orient == "h":
392
+ data = data[:, ::-1]
393
+
390
394
  locs = np.arange(0, lim) + 0.5
391
395
  bottom = np.zeros(lim)
392
396
 
@@ -395,8 +399,8 @@ class StackBar(_BarBase):
395
399
  labels = self.labels[::-1]
396
400
  else:
397
401
  labels = [None for _ in range(len(data))]
398
- colors = self.bar_colors[:len(data)][::-1]
399
- for ix, row in enumerate(data[::-1]):
402
+ colors = self.bar_colors[:len(data)]
403
+ for ix, row in enumerate(data):
400
404
  bars = bar(locs, row, self.width, bottom,
401
405
  fc=colors[ix],
402
406
  label=labels[ix], **self.options)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: marsilea
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: Create x-layout visualization
5
5
  Author: Zhihang Zheng
6
6
  Author-email: Mr-Milk <yb97643@um.edu.mo>
@@ -1,4 +1,4 @@
1
- marsilea/__init__.py,sha256=orRsj1rPHppt7MQgkzZXWTsHnn8UKXUOf4neBg-Lthg,398
1
+ marsilea/__init__.py,sha256=HuFssQKZgyp993Vh7vJupVG9KUVdBylpaxVzQ5LTdnU,398
2
2
  marsilea/_api.py,sha256=txHnWiKWrQTm2CXB2t3_3F6xFuwi7-95N5cJ5s6xD5o,282
3
3
  marsilea/_deform.py,sha256=I8Oh5ug8o0KNJRIxsfL7mBrqjHrkkOoZftT6GQg8gJM,14231
4
4
  marsilea/base.py,sha256=iEW2N4QbwHcDApniTNdcmu0tdTkUKfM-09-TuAnYIt8,28408
@@ -14,13 +14,13 @@ marsilea/plotter/__init__.py,sha256=Og-b5LDBhe7h0VZ-m9zbaGzzdwCnbx8zrzTy8cApOdY,
14
14
  marsilea/plotter/_images.py,sha256=xjEegaONfeMq0CBXGitHQfXdzVHt31hFV8S6leKcac8,2028
15
15
  marsilea/plotter/_seaborn.py,sha256=bZf2eVoCGzWg3q8RguQJ6_Og_qv5FRVVs6Ek3Kaj7NE,7548
16
16
  marsilea/plotter/_utils.py,sha256=ehYHVZOUA3R5v8gE2ysaIdyiM6to_0GGrMDhb-g_xlk,683
17
- marsilea/plotter/arc.py,sha256=w-k86uvoM3z1JD-Si8Bm6kNP1gN46H-k_DInZoBA78U,8053
18
- marsilea/plotter/bar.py,sha256=zrDSTJaEw_ws9GBotdNxwlOR8r_FspHAhji4atFiC7U,12257
17
+ marsilea/plotter/arc.py,sha256=7epdsdxxawE0V2EIQEPxBE0LvnXCAqYx2dS-c0sIUV4,8059
18
+ marsilea/plotter/bar.py,sha256=XnLrF8EtTrmSC7YJBalTcVmh7X3CCw9Q-HcJc9hYblk,12321
19
19
  marsilea/plotter/base.py,sha256=xhABfFpUbjAwVuj4FljDdYjFzm10eKyXDHVH6wMLnRY,19071
20
20
  marsilea/plotter/bio.py,sha256=Q7EgghHwqtMmXrEEBKZk4TTOjW8kq6hylmUwMf07mt8,5115
21
21
  marsilea/plotter/mesh.py,sha256=tw9yAn5b6kZWq4d_BGXUvDeU8LIluYgAsZnWqaRkUzA,22316
22
22
  marsilea/plotter/text.py,sha256=-H247bkol0fjPAE3GsWgpT5q4XaVo2UcirCF7FtLjEI,35155
23
- marsilea-0.3.1.dist-info/LICENSE,sha256=UwNW8x-13BDuItvInfX2c0O_9TUp6vC9bjt8lsHqm5w,1074
24
- marsilea-0.3.1.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
25
- marsilea-0.3.1.dist-info/METADATA,sha256=0XrHNyGo3KcXD-fCKAAjKRuO5DJYuGW7VFXMBUk0is4,1701
26
- marsilea-0.3.1.dist-info/RECORD,,
23
+ marsilea-0.3.2.dist-info/LICENSE,sha256=UwNW8x-13BDuItvInfX2c0O_9TUp6vC9bjt8lsHqm5w,1074
24
+ marsilea-0.3.2.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
25
+ marsilea-0.3.2.dist-info/METADATA,sha256=4gt3Dw7-sDR6T0U7bv6nqpsK8fYfOOcPFsRvun5x1Eo,1701
26
+ marsilea-0.3.2.dist-info/RECORD,,