modusa 0.3.47__py3-none-any.whl → 0.3.50__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/tools/plotter.py +12 -3
- {modusa-0.3.47.dist-info → modusa-0.3.50.dist-info}/METADATA +2 -1
- {modusa-0.3.47.dist-info → modusa-0.3.50.dist-info}/RECORD +6 -6
- {modusa-0.3.47.dist-info → modusa-0.3.50.dist-info}/WHEEL +0 -0
- {modusa-0.3.47.dist-info → modusa-0.3.50.dist-info}/entry_points.txt +0 -0
- {modusa-0.3.47.dist-info → modusa-0.3.50.dist-info}/licenses/LICENSE.md +0 -0
modusa/tools/plotter.py
CHANGED
|
@@ -1103,7 +1103,7 @@ class Fig:
|
|
|
1103
1103
|
label: str
|
|
1104
1104
|
- Label for the plot.
|
|
1105
1105
|
- Legend will use this.
|
|
1106
|
-
- Default:
|
|
1106
|
+
- Default: None
|
|
1107
1107
|
ylabel: str
|
|
1108
1108
|
- y-label for the plot.
|
|
1109
1109
|
- Default: None
|
|
@@ -1159,7 +1159,7 @@ class Fig:
|
|
|
1159
1159
|
label: str
|
|
1160
1160
|
- Label for the event type.
|
|
1161
1161
|
- This will appear in the legend.
|
|
1162
|
-
- Default:
|
|
1162
|
+
- Default: None
|
|
1163
1163
|
ax: int
|
|
1164
1164
|
- Which specific axis to plot (1, 2, 3, ...)
|
|
1165
1165
|
- None
|
|
@@ -1188,7 +1188,7 @@ class Fig:
|
|
|
1188
1188
|
else:
|
|
1189
1189
|
curr_row[0].axvline(x=event, color=c, linestyle=ls, linewidth=lw)
|
|
1190
1190
|
|
|
1191
|
-
def add_annotation(self, ann, ax=None):
|
|
1191
|
+
def add_annotation(self, ann, label=None, ax=None):
|
|
1192
1192
|
"""
|
|
1193
1193
|
Add annotation to the figure.
|
|
1194
1194
|
|
|
@@ -1197,6 +1197,10 @@ class Fig:
|
|
|
1197
1197
|
ann : list[tuple[Number, Number, str]] | None
|
|
1198
1198
|
- A list of annotation spans. Each tuple should be (start, end, label).
|
|
1199
1199
|
- Default: None (no annotations).
|
|
1200
|
+
label: str
|
|
1201
|
+
- Label for the annotation type.
|
|
1202
|
+
- This will appear to the right of the aux plot.
|
|
1203
|
+
- Default: None
|
|
1200
1204
|
ax: int
|
|
1201
1205
|
- Which specific axis to plot (1, 2, 3, ...)
|
|
1202
1206
|
- None
|
|
@@ -1248,6 +1252,11 @@ class Fig:
|
|
|
1248
1252
|
|
|
1249
1253
|
text_obj.set_clip_path(rect)
|
|
1250
1254
|
|
|
1255
|
+
if label is not None:
|
|
1256
|
+
curr_row[0].set_ylabel(label, rotation=0, ha="center", va="center")
|
|
1257
|
+
curr_row[0].yaxis.set_label_position("right")
|
|
1258
|
+
curr_row[0].yaxis.set_label_coords(1.05, 0.75)
|
|
1259
|
+
|
|
1251
1260
|
def add_legend(self, ypos=1.0):
|
|
1252
1261
|
"""
|
|
1253
1262
|
Add legend to the figure.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: modusa
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.50
|
|
4
4
|
Summary: A modular signal analysis python library.
|
|
5
5
|
Author-Email: Ankit Anand <ankit0.anand0@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -11,6 +11,7 @@ Requires-Dist: yt-dlp>=2025.8.22
|
|
|
11
11
|
Requires-Dist: librosa==0.11.0
|
|
12
12
|
Requires-Dist: IPython>=8.0.0
|
|
13
13
|
Requires-Dist: sounddevice>=0.5.2
|
|
14
|
+
Requires-Dist: ipywidgets>=8.1.7
|
|
14
15
|
Description-Content-Type: text/markdown
|
|
15
16
|
|
|
16
17
|
# modusa
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
modusa-0.3.
|
|
2
|
-
modusa-0.3.
|
|
3
|
-
modusa-0.3.
|
|
4
|
-
modusa-0.3.
|
|
1
|
+
modusa-0.3.50.dist-info/METADATA,sha256=_Zs_SXu7wtVHvknOekARTFPVX79zcBbgcSgNU4AVYZM,1436
|
|
2
|
+
modusa-0.3.50.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
|
|
3
|
+
modusa-0.3.50.dist-info/entry_points.txt,sha256=fmKpleVXj6CdaBVL14WoEy6xx7JQCs85jvzwTi3lePM,73
|
|
4
|
+
modusa-0.3.50.dist-info/licenses/LICENSE.md,sha256=JTaXAjx5awk76VArKCx5dUW8vmLEWsL_ZlR7-umaHbA,1078
|
|
5
5
|
modusa/.DS_Store,sha256=_gm6qJREwfMi8dE7n5S89_RG46u5t3xHyD-smNhtNoM,6148
|
|
6
6
|
modusa/__init__.py,sha256=_Fk3GxsI0GT-uhsZaHgs6p5YcIkqPGb3s78_dzFy1lE,291
|
|
7
7
|
modusa/config.py,sha256=bTqK4t00FZqERVITrxW_q284aDDJAa9aMSfFknfR-oU,280
|
|
@@ -50,7 +50,7 @@ modusa/tools/audio_player.py,sha256=GP04TWW4jBwQBjANkfR_cJtEy7cIhvbu8RTwnf9hD6E,
|
|
|
50
50
|
modusa/tools/audio_recorder.py,sha256=d2fVt0Sd2tlBdb2WlUs60K4N23zuxM3KUpQqX0ifPi8,2769
|
|
51
51
|
modusa/tools/base.py,sha256=C0ESJ0mIfjjRlAkRbSetNtMoOfS6IrHBjexRp3l_Mh4,1293
|
|
52
52
|
modusa/tools/math_ops.py,sha256=ZZ7U4DgqT7cOeE7_Lzi_Qq-48WYfwR9_osbZwTmE9eg,8690
|
|
53
|
-
modusa/tools/plotter.py,sha256=
|
|
53
|
+
modusa/tools/plotter.py,sha256=x3hOBWg1hNg0iGBIJR2mrgjlhQBQ0HOnjNv_h6pqJ5c,34358
|
|
54
54
|
modusa/tools/youtube_downloader.py,sha256=hB_X8-7nOHXOlxg6vv3wyhBLoAsWyomrULP6_uCQL7s,1698
|
|
55
55
|
modusa/utils/.DS_Store,sha256=nLXMwF7QJNuglLI_Gk74F7vl5Dyus2Wd74Mgowijmdo,6148
|
|
56
56
|
modusa/utils/__init__.py,sha256=1oLL20yLB1GL9IbFiZD8OReDqiCpFr-yetIR6x1cNkI,23
|
|
@@ -59,4 +59,4 @@ modusa/utils/excp.py,sha256=L9vhaGjKpv9viJYdmC9n5ndmk2GVbUBuFyZyhAQZmWY,906
|
|
|
59
59
|
modusa/utils/logger.py,sha256=K0rsnObeNKCxlNeSnVnJeRhgfmob6riB2uyU7h3dDmA,571
|
|
60
60
|
modusa/utils/np_func_cat.py,sha256=TyIFgRc6bARRMDnZxlVURO5Z0I-GWhxRONYyIv-Vwxs,1007
|
|
61
61
|
modusa/utils/plot.py,sha256=s_vNdxvKfwxEngvJPgrF1PcmxZNnNaaXPViHWjyjJ-c,5335
|
|
62
|
-
modusa-0.3.
|
|
62
|
+
modusa-0.3.50.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|