adopt-plot 0.0.5__tar.gz → 0.1.6__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.
- {adopt_plot-0.0.5/src/adopt_plot.egg-info → adopt_plot-0.1.6}/PKG-INFO +2 -2
- {adopt_plot-0.0.5 → adopt_plot-0.1.6}/README.md +1 -1
- {adopt_plot-0.0.5 → adopt_plot-0.1.6}/pyproject.toml +1 -1
- {adopt_plot-0.0.5 → adopt_plot-0.1.6}/src/adopt_plot/plot.py +14 -3
- {adopt_plot-0.0.5 → adopt_plot-0.1.6/src/adopt_plot.egg-info}/PKG-INFO +2 -2
- {adopt_plot-0.0.5 → adopt_plot-0.1.6}/LICENSE +0 -0
- {adopt_plot-0.0.5 → adopt_plot-0.1.6}/setup.cfg +0 -0
- {adopt_plot-0.0.5 → adopt_plot-0.1.6}/src/adopt_plot/__init__.py +0 -0
- {adopt_plot-0.0.5 → adopt_plot-0.1.6}/src/adopt_plot.egg-info/SOURCES.txt +0 -0
- {adopt_plot-0.0.5 → adopt_plot-0.1.6}/src/adopt_plot.egg-info/dependency_links.txt +0 -0
- {adopt_plot-0.0.5 → adopt_plot-0.1.6}/src/adopt_plot.egg-info/requires.txt +0 -0
- {adopt_plot-0.0.5 → adopt_plot-0.1.6}/src/adopt_plot.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: adopt-plot
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: A universal plotter for implicit functions using adaptive engine selection.
|
|
5
5
|
Author: VartRusData
|
|
6
6
|
License: BSD 3-Clause
|
|
@@ -18,7 +18,7 @@ Dynamic: license-file
|
|
|
18
18
|
A library for plotting implicit functions using two rendering engines:
|
|
19
19
|
|
|
20
20
|
- `contour` from `matplotlib`.
|
|
21
|
-
- `plot_implicit` which internally uses **Adaptive Marching Squares (AMR)** — an adaptive algorithm that correctly handles the domain of definition and discontinuities.
|
|
21
|
+
- `plot_implicit` from `sympy` which internally uses **Adaptive Marching Squares (AMR)** — an adaptive algorithm that correctly handles the domain of definition and discontinuities.
|
|
22
22
|
|
|
23
23
|
**Automatic selection:** If the equation has domain restrictions (e.g., logarithm or square root), `plot_implicit` is used. If the function is smooth, the fast `contour` engine is chosen. Visually, they are indistinguishable, but the best algorithm is selected automatically.
|
|
24
24
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
A library for plotting implicit functions using two rendering engines:
|
|
4
4
|
|
|
5
5
|
- `contour` from `matplotlib`.
|
|
6
|
-
- `plot_implicit` which internally uses **Adaptive Marching Squares (AMR)** — an adaptive algorithm that correctly handles the domain of definition and discontinuities.
|
|
6
|
+
- `plot_implicit` from `sympy` which internally uses **Adaptive Marching Squares (AMR)** — an adaptive algorithm that correctly handles the domain of definition and discontinuities.
|
|
7
7
|
|
|
8
8
|
**Automatic selection:** If the equation has domain restrictions (e.g., logarithm or square root), `plot_implicit` is used. If the function is smooth, the fast `contour` engine is chosen. Visually, they are indistinguishable, but the best algorithm is selected automatically.
|
|
9
9
|
|
|
@@ -411,6 +411,17 @@ class AdoptPlot:
|
|
|
411
411
|
p.show()
|
|
412
412
|
def show(self):
|
|
413
413
|
try:
|
|
414
|
-
self
|
|
415
|
-
|
|
416
|
-
|
|
414
|
+
if hasattr(self, 'plt'):
|
|
415
|
+
self.plt.show()
|
|
416
|
+
else:
|
|
417
|
+
raise PltNotFoundError("plt Not Found")
|
|
418
|
+
except Exception as e:
|
|
419
|
+
raise Exception(e)
|
|
420
|
+
def save(self, path, dpi: int = 300, format: str | None = None, bbox_inches: Literal['tight', 'standard', None] = 'tight', pad_inches: float | int = 0, transparent: bool = False, orientation: Literal['landscape', 'portrait']='landscape', metadata=None):
|
|
421
|
+
try:
|
|
422
|
+
if hasattr(self, 'fig'):
|
|
423
|
+
self.fig.savefig(path, dpi=dpi, format=format, bbox_inches=bbox_inches, pad_inches=pad_inches, transparent=transparent, orientation=orientation, metadata=metadata)
|
|
424
|
+
else:
|
|
425
|
+
raise PltNotFoundError("fig not found")
|
|
426
|
+
except Exception as e:
|
|
427
|
+
raise Exception(e)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: adopt-plot
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: A universal plotter for implicit functions using adaptive engine selection.
|
|
5
5
|
Author: VartRusData
|
|
6
6
|
License: BSD 3-Clause
|
|
@@ -18,7 +18,7 @@ Dynamic: license-file
|
|
|
18
18
|
A library for plotting implicit functions using two rendering engines:
|
|
19
19
|
|
|
20
20
|
- `contour` from `matplotlib`.
|
|
21
|
-
- `plot_implicit` which internally uses **Adaptive Marching Squares (AMR)** — an adaptive algorithm that correctly handles the domain of definition and discontinuities.
|
|
21
|
+
- `plot_implicit` from `sympy` which internally uses **Adaptive Marching Squares (AMR)** — an adaptive algorithm that correctly handles the domain of definition and discontinuities.
|
|
22
22
|
|
|
23
23
|
**Automatic selection:** If the equation has domain restrictions (e.g., logarithm or square root), `plot_implicit` is used. If the function is smooth, the fast `contour` engine is chosen. Visually, they are indistinguishable, but the best algorithm is selected automatically.
|
|
24
24
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|