mayutils 1.2.32__tar.gz → 1.2.34__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.32 → mayutils-1.2.34}/PKG-INFO +1 -1
- {mayutils-1.2.32 → mayutils-1.2.34}/pyproject.toml +1 -1
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/visualisation/graphs/plotly/charts.py +34 -10
- {mayutils-1.2.32 → mayutils-1.2.34}/LICENSE +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/README.md +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/__init__.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/core/__init__.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/core/constants.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/data/__init__.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/data/analysis/__init__.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/data/cache/.gitkeep +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/data/live.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/data/local.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/data/queries/.gitkeep +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/data/queries/__init__.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/data/queries/examples/.gitkeep +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/data/read.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/environment/__init__.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/environment/benchmarking.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/environment/databases.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/environment/filesystem.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/environment/logging.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/environment/memoisation.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/environment/oauth.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/environment/secrets.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/environment/webdrivers.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/export/__init__.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/export/images.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/export/pdf.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/export/slides.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/interfaces/__init__.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/interfaces/google.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/interfaces/microsoft.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/interfaces/streamlit.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/mathematics/__init__.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/mathematics/numba.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/mathematics/numpy.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/objects/__init__.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/objects/classes.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/objects/colours.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/objects/dataframes.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/objects/datetime.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/objects/decorators.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/objects/dictionaries.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/objects/functions.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/objects/hashing.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/objects/numbers.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/objects/strings.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/objects/types.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/py.typed +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/scripts/__init__.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/scripts/clear_cache.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/scripts/versioning.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/testing/__init__.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/visualisation/__init__.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/visualisation/console.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/visualisation/graphs/__init__.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/visualisation/graphs/combine.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/visualisation/graphs/matplotlib/__init__.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/visualisation/graphs/matplotlib/template.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/visualisation/graphs/plotly/__init__.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/visualisation/graphs/plotly/templates.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/visualisation/graphs/plotly/traces.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/visualisation/graphs/plotly/utilities.py +0 -0
- {mayutils-1.2.32 → mayutils-1.2.34}/src/mayutils/visualisation/notebook.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import os
|
|
2
2
|
from math import isqrt, ceil
|
|
3
3
|
from pathlib import Path
|
|
4
|
-
from typing import Any, Literal, Optional, Self, final
|
|
4
|
+
from typing import Any, Literal, Mapping, Optional, Self, final, Sequence
|
|
5
5
|
from dataclasses import dataclass, field
|
|
6
6
|
from mayutils.export.images import IMAGES_FOLDER
|
|
7
7
|
import numpy as np
|
|
@@ -241,7 +241,7 @@ class Plot(go.Figure):
|
|
|
241
241
|
self,
|
|
242
242
|
description: str,
|
|
243
243
|
plot_config: PlotConfig,
|
|
244
|
-
layout:
|
|
244
|
+
layout: Mapping = {},
|
|
245
245
|
*args,
|
|
246
246
|
**kwargs,
|
|
247
247
|
) -> None:
|
|
@@ -603,6 +603,18 @@ class Plot(go.Figure):
|
|
|
603
603
|
|
|
604
604
|
return self
|
|
605
605
|
|
|
606
|
+
def update_traces(
|
|
607
|
+
self,
|
|
608
|
+
*args,
|
|
609
|
+
**kwargs,
|
|
610
|
+
) -> Self:
|
|
611
|
+
super().update_traces(
|
|
612
|
+
*args,
|
|
613
|
+
**kwargs,
|
|
614
|
+
)
|
|
615
|
+
|
|
616
|
+
return self
|
|
617
|
+
|
|
606
618
|
def add_title(
|
|
607
619
|
self,
|
|
608
620
|
title: str,
|
|
@@ -653,7 +665,7 @@ class Plot(go.Figure):
|
|
|
653
665
|
def show(
|
|
654
666
|
self,
|
|
655
667
|
show: bool = True,
|
|
656
|
-
layout:
|
|
668
|
+
layout: Mapping = {},
|
|
657
669
|
*args,
|
|
658
670
|
**kwargs,
|
|
659
671
|
) -> None:
|
|
@@ -684,7 +696,7 @@ class Plot(go.Figure):
|
|
|
684
696
|
def save(
|
|
685
697
|
self,
|
|
686
698
|
filename: str,
|
|
687
|
-
image_formats:
|
|
699
|
+
image_formats: Sequence[str] = ["png"], # ["png", "jpeg", "pdf"]
|
|
688
700
|
scale: Optional[int] = 5,
|
|
689
701
|
template: Optional[str] = None,
|
|
690
702
|
*args,
|
|
@@ -1295,6 +1307,18 @@ class Plot(go.Figure):
|
|
|
1295
1307
|
|
|
1296
1308
|
return self
|
|
1297
1309
|
|
|
1310
|
+
def hide_traces(
|
|
1311
|
+
self,
|
|
1312
|
+
trace_names: Sequence[str],
|
|
1313
|
+
) -> Self:
|
|
1314
|
+
for name in trace_names:
|
|
1315
|
+
self = self.update_traces(
|
|
1316
|
+
visible="legendonly",
|
|
1317
|
+
selector=dict(name=name),
|
|
1318
|
+
)
|
|
1319
|
+
|
|
1320
|
+
return self
|
|
1321
|
+
|
|
1298
1322
|
def __call__(
|
|
1299
1323
|
self,
|
|
1300
1324
|
save: bool = True,
|
|
@@ -1317,16 +1341,16 @@ class SubPlot(Plot):
|
|
|
1317
1341
|
self,
|
|
1318
1342
|
description: str,
|
|
1319
1343
|
subplot_config: SubPlotConfig,
|
|
1320
|
-
layout:
|
|
1344
|
+
layout: Mapping = {},
|
|
1321
1345
|
x_datetime: bool = False,
|
|
1322
|
-
x_spacing:
|
|
1323
|
-
y_spacing:
|
|
1346
|
+
x_spacing: Mapping[str, float] = {},
|
|
1347
|
+
y_spacing: Mapping[str, float] = {},
|
|
1324
1348
|
line_title_offsets: tuple[float, float] = (22.5, 22.5),
|
|
1325
|
-
line_title_styles:
|
|
1349
|
+
line_title_styles: Mapping = dict(
|
|
1326
1350
|
font_weight=700,
|
|
1327
1351
|
font_size=12,
|
|
1328
1352
|
),
|
|
1329
|
-
plot_title_styles:
|
|
1353
|
+
plot_title_styles: Mapping = dict(),
|
|
1330
1354
|
fill_nulls: bool = True,
|
|
1331
1355
|
*args,
|
|
1332
1356
|
**kwargs,
|
|
@@ -1716,7 +1740,7 @@ def get_domains(
|
|
|
1716
1740
|
|
|
1717
1741
|
|
|
1718
1742
|
def sort_traces_by_axes(
|
|
1719
|
-
traces:
|
|
1743
|
+
traces: Sequence[Trace],
|
|
1720
1744
|
) -> dict:
|
|
1721
1745
|
traces_axes: dict[tuple[str, str], list[Trace]] = {}
|
|
1722
1746
|
for trace in traces:
|
|
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.32 → mayutils-1.2.34}/src/mayutils/visualisation/graphs/matplotlib/__init__.py
RENAMED
|
File without changes
|
{mayutils-1.2.32 → mayutils-1.2.34}/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
|