adopt-plot 0.0.5__tar.gz → 0.1.5__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.5}/PKG-INFO +1 -1
- {adopt_plot-0.0.5 → adopt_plot-0.1.5}/pyproject.toml +1 -1
- {adopt_plot-0.0.5 → adopt_plot-0.1.5}/src/adopt_plot/plot.py +14 -3
- {adopt_plot-0.0.5 → adopt_plot-0.1.5/src/adopt_plot.egg-info}/PKG-INFO +1 -1
- {adopt_plot-0.0.5 → adopt_plot-0.1.5}/LICENSE +0 -0
- {adopt_plot-0.0.5 → adopt_plot-0.1.5}/README.md +0 -0
- {adopt_plot-0.0.5 → adopt_plot-0.1.5}/setup.cfg +0 -0
- {adopt_plot-0.0.5 → adopt_plot-0.1.5}/src/adopt_plot/__init__.py +0 -0
- {adopt_plot-0.0.5 → adopt_plot-0.1.5}/src/adopt_plot.egg-info/SOURCES.txt +0 -0
- {adopt_plot-0.0.5 → adopt_plot-0.1.5}/src/adopt_plot.egg-info/dependency_links.txt +0 -0
- {adopt_plot-0.0.5 → adopt_plot-0.1.5}/src/adopt_plot.egg-info/requires.txt +0 -0
- {adopt_plot-0.0.5 → adopt_plot-0.1.5}/src/adopt_plot.egg-info/top_level.txt +0 -0
|
@@ -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)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|