mayutils 1.2.35__tar.gz → 1.2.37__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.
- {mayutils-1.2.35 → mayutils-1.2.37}/PKG-INFO +1 -1
- {mayutils-1.2.35 → mayutils-1.2.37}/pyproject.toml +1 -1
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/visualisation/graphs/plotly/charts.py +30 -24
- {mayutils-1.2.35 → mayutils-1.2.37}/LICENSE +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/README.md +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/__init__.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/core/__init__.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/core/constants.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/data/__init__.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/data/analysis/__init__.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/data/cache/.gitkeep +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/data/live.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/data/local.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/data/queries/.gitkeep +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/data/queries/__init__.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/data/queries/examples/.gitkeep +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/data/read.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/environment/__init__.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/environment/benchmarking.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/environment/databases.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/environment/filesystem.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/environment/logging.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/environment/memoisation.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/environment/oauth.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/environment/secrets.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/environment/webdrivers.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/export/__init__.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/export/images.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/export/pdf.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/export/slides.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/interfaces/__init__.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/interfaces/google.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/interfaces/microsoft.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/interfaces/streamlit.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/mathematics/__init__.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/mathematics/numba.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/mathematics/numpy.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/objects/__init__.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/objects/classes.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/objects/colours.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/objects/dataframes.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/objects/datetime.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/objects/decorators.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/objects/dictionaries.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/objects/functions.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/objects/hashing.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/objects/numbers.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/objects/strings.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/objects/types.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/py.typed +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/scripts/__init__.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/scripts/clear_cache.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/scripts/versioning.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/testing/__init__.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/visualisation/__init__.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/visualisation/console.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/visualisation/graphs/__init__.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/visualisation/graphs/combine.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/visualisation/graphs/matplotlib/__init__.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/visualisation/graphs/matplotlib/template.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/visualisation/graphs/plotly/__init__.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/visualisation/graphs/plotly/templates.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/visualisation/graphs/plotly/traces.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/visualisation/graphs/plotly/utilities.py +0 -0
- {mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/visualisation/notebook.py +0 -0
|
@@ -1321,34 +1321,40 @@ class Plot(go.Figure):
|
|
|
1321
1321
|
|
|
1322
1322
|
def set_visible_yrange(
|
|
1323
1323
|
self,
|
|
1324
|
-
y_min: float,
|
|
1325
|
-
y_max: float,
|
|
1324
|
+
y_min: Optional[float] = None,
|
|
1325
|
+
y_max: Optional[float] = None,
|
|
1326
1326
|
y_padding: float = 0.05,
|
|
1327
1327
|
) -> Self:
|
|
1328
|
-
|
|
1329
|
-
(
|
|
1330
|
-
np.nanmin(trace.y[visible_mask]),
|
|
1331
|
-
np.nanmax(trace.y[visible_mask]),
|
|
1332
|
-
)
|
|
1333
|
-
for trace in self.data
|
|
1334
|
-
if (trace.visible is None or trace.visible is True)
|
|
1335
|
-
and (
|
|
1336
|
-
visible_mask := (trace.x < self.layout.xaxis.range[1]) # type: ignore
|
|
1337
|
-
& (trace.x > self.layout.xaxis.range[0]) # type: ignore
|
|
1338
|
-
).any()
|
|
1339
|
-
]
|
|
1328
|
+
for yaxis in [prop for prop in self.layout if prop.startswith("yaxis")]:
|
|
1329
|
+
yaxis_suffix = yaxis.removeprefix("yaxis")
|
|
1340
1330
|
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1331
|
+
trace_limits = [
|
|
1332
|
+
(
|
|
1333
|
+
np.nanmin(trace.y[visible_mask]),
|
|
1334
|
+
np.nanmax(trace.y[visible_mask]),
|
|
1335
|
+
)
|
|
1336
|
+
for trace in self.data
|
|
1337
|
+
if (trace.visible is None or trace.visible is True)
|
|
1338
|
+
and trace.yaxis == f"y{yaxis_suffix}"
|
|
1339
|
+
and (
|
|
1340
|
+
visible_mask := (trace.x < self.layout.xaxis.range[1]) # type: ignore
|
|
1341
|
+
& (trace.x > self.layout.xaxis.range[0]) # type: ignore
|
|
1342
|
+
).any()
|
|
1343
|
+
]
|
|
1344
1344
|
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1345
|
+
traces_min = min(map(min, trace_limits))
|
|
1346
|
+
traces_max = max(map(max, trace_limits))
|
|
1347
|
+
span = traces_max - traces_min
|
|
1348
|
+
|
|
1349
|
+
y_range = (
|
|
1350
|
+
(traces_min - span * y_padding).clip(min=y_min),
|
|
1351
|
+
(traces_max + span * y_padding).clip(max=y_max),
|
|
1352
|
+
)
|
|
1353
|
+
self.update_layout(
|
|
1354
|
+
{
|
|
1355
|
+
f"yaxis{yaxis_suffix}_range": y_range,
|
|
1356
|
+
}
|
|
1357
|
+
)
|
|
1352
1358
|
|
|
1353
1359
|
return self
|
|
1354
1360
|
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
{mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/visualisation/graphs/matplotlib/__init__.py
RENAMED
|
File without changes
|
{mayutils-1.2.35 → mayutils-1.2.37}/src/mayutils/visualisation/graphs/matplotlib/template.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|