modusa 0.3.93__py3-none-any.whl → 0.3.95__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.
modusa/__init__.py CHANGED
@@ -8,4 +8,4 @@ from modusa.tools import play, convert, record, save
8
8
  from modusa.tools import download
9
9
  from modusa.tools import load, load_ann
10
10
 
11
- __version__ = "0.3.93"
11
+ __version__ = "0.3.95"
modusa/tools/plotter.py CHANGED
@@ -720,28 +720,28 @@ def hill_plot(*args, labels=None, xlabel=None, ylabel=None, title=None, widths=0
720
720
 
721
721
  Parameters
722
722
  ----------
723
- *args : array-like
723
+ *args: array-like
724
724
  - Data arrays for each group.
725
- labels : list of str, optional
725
+ labels: list of str, optional
726
726
  - Labels for each group (y-axis).
727
- side : str, 'upper' or 'lower'
728
- Which half of the violin to draw (upper or lower relative to y-axis).
729
- show_stats : bool, optional
730
- Whether to show mean and median markers.
731
- xlabel : str, optional
732
- Label for x-axis.
733
- ylabel : str, optional
727
+ ylabel: str, optional
734
728
  Label for y-axis.
735
- ax : matplotlib axes, optional
736
- Axes to plot on.
737
- title : str, optional
729
+ xlabel: str, optional
730
+ Label for x-axis.
731
+ title: str, optional
738
732
  Plot title.
739
- widths : float, optional
733
+ widths: float, optional
740
734
  Width of violins.
741
- bw_method : float, optional
735
+ bw_method: float, optional
742
736
  Bandwidth method for KDE.
743
- jitter_amount : float, optional
737
+ jitter_amount: float, optional
744
738
  Amount of vertical jitter for strip points.
739
+ side: str, 'upper' or 'lower'
740
+ Which half of the violin to draw (upper or lower relative to y-axis).
741
+ show_stats: bool, optional
742
+ Whether to show mean and median markers.
743
+ ax: matplotlib axes, optional
744
+ Axes to plot on.
745
745
  """
746
746
 
747
747
  created_fig = False
@@ -754,6 +754,8 @@ def hill_plot(*args, labels=None, xlabel=None, ylabel=None, title=None, widths=0
754
754
  # Default labels/colors
755
755
  if labels is None:
756
756
  labels = [f"Group {i}" for i in range(1, n+1)]
757
+ if isinstance(labels, str):
758
+ labels = [labels]
757
759
 
758
760
  colors = plt.cm.tab10.colors
759
761
  if len(colors) < n:
@@ -852,9 +854,10 @@ def hill_plot(*args, labels=None, xlabel=None, ylabel=None, title=None, widths=0
852
854
  if ylabel:
853
855
  ax.set_ylabel(ylabel, fontsize=11, fontweight='bold')
854
856
  if title:
855
- ax.set_title(title, fontsize=13, fontweight='bold', pad=15)
857
+ ax.set_title(title, fontsize=11, fontweight='bold', pad=20)
856
858
 
857
859
  plt.tight_layout()
860
+ plt.close()
858
861
  return fig
859
862
 
860
863
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: modusa
3
- Version: 0.3.93
3
+ Version: 0.3.95
4
4
  Summary: A modular signal analysis python library.
5
5
  Author-Email: Ankit Anand <ankit0.anand0@gmail.com>
6
6
  License: MIT
@@ -1,9 +1,9 @@
1
- modusa-0.3.93.dist-info/METADATA,sha256=RDrVzEQDd_gSKmqp5zJb3sEXW1qf8ly0pUr_mMoT3ds,1436
2
- modusa-0.3.93.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
3
- modusa-0.3.93.dist-info/entry_points.txt,sha256=fmKpleVXj6CdaBVL14WoEy6xx7JQCs85jvzwTi3lePM,73
4
- modusa-0.3.93.dist-info/licenses/LICENSE.md,sha256=JTaXAjx5awk76VArKCx5dUW8vmLEWsL_ZlR7-umaHbA,1078
1
+ modusa-0.3.95.dist-info/METADATA,sha256=GBREB-ncvUr_hmp8a-nZognmM1W1a6Ar-DX-JAQzjcY,1436
2
+ modusa-0.3.95.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
3
+ modusa-0.3.95.dist-info/entry_points.txt,sha256=fmKpleVXj6CdaBVL14WoEy6xx7JQCs85jvzwTi3lePM,73
4
+ modusa-0.3.95.dist-info/licenses/LICENSE.md,sha256=JTaXAjx5awk76VArKCx5dUW8vmLEWsL_ZlR7-umaHbA,1078
5
5
  modusa/.DS_Store,sha256=_gm6qJREwfMi8dE7n5S89_RG46u5t3xHyD-smNhtNoM,6148
6
- modusa/__init__.py,sha256=NlYjCzGVEesvEr3X2fIpNC4ZmNoEcoB3uUo-9VeI-8A,318
6
+ modusa/__init__.py,sha256=tj3gm02XEemHS6BhmjtgqznUwrJo6lMLo8DkbTIdgEs,318
7
7
  modusa/config.py,sha256=bTqK4t00FZqERVITrxW_q284aDDJAa9aMSfFknfR-oU,280
8
8
  modusa/decorators.py,sha256=8zeNX_wE37O6Vp0ysR4-WCZaEL8mq8dyCF_I5DHOzks,5905
9
9
  modusa/devtools/generate_docs_source.py,sha256=UDflHsk-Yh9-3YJTVBzKL32y8hcxiRgAlFEBTMiDqwM,3301
@@ -51,7 +51,7 @@ modusa/tools/audio_recorder.py,sha256=K_LGqsPdjTdf3figEZTSQLmgMzYWgz18HTO8C1j5fE
51
51
  modusa/tools/audio_saver.py,sha256=ldzfr_AydsHTnKbxmBLJblN-hLzTmOlppOm306xI4Ug,510
52
52
  modusa/tools/base.py,sha256=C0ESJ0mIfjjRlAkRbSetNtMoOfS6IrHBjexRp3l_Mh4,1293
53
53
  modusa/tools/math_ops.py,sha256=ZZ7U4DgqT7cOeE7_Lzi_Qq-48WYfwR9_osbZwTmE9eg,8690
54
- modusa/tools/plotter.py,sha256=QUeFYJLP0u88VM_HJVRDzLRU0d8jTndgIvz8-OzUGuI,29786
54
+ modusa/tools/plotter.py,sha256=gCGtO-oDJfIpi-66_Hl1Zgl4_uC-odHozz4M-9ZYI5E,29840
55
55
  modusa/tools/youtube_downloader.py,sha256=hB_X8-7nOHXOlxg6vv3wyhBLoAsWyomrULP6_uCQL7s,1698
56
56
  modusa/utils/.DS_Store,sha256=nLXMwF7QJNuglLI_Gk74F7vl5Dyus2Wd74Mgowijmdo,6148
57
57
  modusa/utils/__init__.py,sha256=1oLL20yLB1GL9IbFiZD8OReDqiCpFr-yetIR6x1cNkI,23
@@ -60,4 +60,4 @@ modusa/utils/excp.py,sha256=L9vhaGjKpv9viJYdmC9n5ndmk2GVbUBuFyZyhAQZmWY,906
60
60
  modusa/utils/logger.py,sha256=K0rsnObeNKCxlNeSnVnJeRhgfmob6riB2uyU7h3dDmA,571
61
61
  modusa/utils/np_func_cat.py,sha256=TyIFgRc6bARRMDnZxlVURO5Z0I-GWhxRONYyIv-Vwxs,1007
62
62
  modusa/utils/plot.py,sha256=s_vNdxvKfwxEngvJPgrF1PcmxZNnNaaXPViHWjyjJ-c,5335
63
- modusa-0.3.93.dist-info/RECORD,,
63
+ modusa-0.3.95.dist-info/RECORD,,