marsilea 0.5.3__tar.gz → 0.5.4__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 (33) hide show
  1. {marsilea-0.5.3 → marsilea-0.5.4}/PKG-INFO +1 -1
  2. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/__init__.py +1 -1
  3. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/plotter/mesh.py +4 -4
  4. {marsilea-0.5.3 → marsilea-0.5.4}/.gitignore +0 -0
  5. {marsilea-0.5.3 → marsilea-0.5.4}/LICENSE +0 -0
  6. {marsilea-0.5.3 → marsilea-0.5.4}/README.md +0 -0
  7. {marsilea-0.5.3 → marsilea-0.5.4}/pyproject.toml +0 -0
  8. {marsilea-0.5.3 → marsilea-0.5.4}/setup.py +0 -0
  9. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/_api.py +0 -0
  10. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/_deform.py +0 -0
  11. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/base.py +0 -0
  12. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/dataset.py +0 -0
  13. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/dendrogram.py +0 -0
  14. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/exceptions.py +0 -0
  15. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/heatmap.py +0 -0
  16. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/layers.py +0 -0
  17. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/layout.py +0 -0
  18. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/plotter/__init__.py +0 -0
  19. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/plotter/_seaborn.py +0 -0
  20. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/plotter/_utils.py +0 -0
  21. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/plotter/arc.py +0 -0
  22. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/plotter/area.py +0 -0
  23. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/plotter/bar.py +0 -0
  24. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/plotter/base.py +0 -0
  25. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/plotter/bio.py +0 -0
  26. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/plotter/images.py +0 -0
  27. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/plotter/range.py +0 -0
  28. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/plotter/text.py +0 -0
  29. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/upset.py +0 -0
  30. {marsilea-0.5.3 → marsilea-0.5.4}/src/marsilea/utils.py +0 -0
  31. {marsilea-0.5.3 → marsilea-0.5.4}/src/oncoprinter/__init__.py +0 -0
  32. {marsilea-0.5.3 → marsilea-0.5.4}/src/oncoprinter/core.py +0 -0
  33. {marsilea-0.5.3 → marsilea-0.5.4}/src/oncoprinter/preset.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: marsilea
3
- Version: 0.5.3
3
+ Version: 0.5.4
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,6 +1,6 @@
1
1
  """Declarative creation of composable visualization"""
2
2
 
3
- __version__ = "0.5.3"
3
+ __version__ = "0.5.4"
4
4
 
5
5
  import marsilea.plotter as plotter
6
6
  from ._deform import Deformation
@@ -483,8 +483,6 @@ class SizedMesh(MeshBase):
483
483
  >>> h.add_right(mesh, size=0.2, pad=0.05)
484
484
  >>> h.render()
485
485
 
486
-
487
-
488
486
  """
489
487
 
490
488
  def __init__(
@@ -550,6 +548,9 @@ class SizedMesh(MeshBase):
550
548
  render_colors.append(c)
551
549
  self.cmap = ListedColormap(render_colors)
552
550
  self.color2d = encode_numeric(color, encoder)
551
+ if self.norm is None:
552
+ vs = encoder.values()
553
+ self.norm = Normalize(vmin=min(vs), vmax=max(vs))
553
554
  else:
554
555
  self._process_cmap(color, vmin, vmax, cmap, norm, center)
555
556
  self.color2d = color
@@ -636,9 +637,8 @@ class SizedMesh(MeshBase):
636
637
  linewidths=self.linewidth,
637
638
  marker=self.marker,
638
639
  )
639
-
640
640
  if self.color is not None:
641
- options["c"] = self.color
641
+ options["c"] = color
642
642
  else:
643
643
  options.update(dict(c=color, norm=self.norm, cmap=self.cmap))
644
644
  self._collections = ax.scatter(xv, yv, **options, **self.kwargs)
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