adopt-plot 0.2.9__tar.gz → 0.2.11__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.2.9/src/adopt_plot.egg-info → adopt_plot-0.2.11}/PKG-INFO +1 -1
- {adopt_plot-0.2.9 → adopt_plot-0.2.11}/pyproject.toml +1 -1
- {adopt_plot-0.2.9 → adopt_plot-0.2.11}/src/adopt_plot/plot.py +18 -18
- {adopt_plot-0.2.9 → adopt_plot-0.2.11/src/adopt_plot.egg-info}/PKG-INFO +1 -1
- {adopt_plot-0.2.9 → adopt_plot-0.2.11}/LICENSE +0 -0
- {adopt_plot-0.2.9 → adopt_plot-0.2.11}/README.md +0 -0
- {adopt_plot-0.2.9 → adopt_plot-0.2.11}/setup.cfg +0 -0
- {adopt_plot-0.2.9 → adopt_plot-0.2.11}/src/adopt_plot/__init__.py +0 -0
- {adopt_plot-0.2.9 → adopt_plot-0.2.11}/src/adopt_plot.egg-info/SOURCES.txt +0 -0
- {adopt_plot-0.2.9 → adopt_plot-0.2.11}/src/adopt_plot.egg-info/dependency_links.txt +0 -0
- {adopt_plot-0.2.9 → adopt_plot-0.2.11}/src/adopt_plot.egg-info/requires.txt +0 -0
- {adopt_plot-0.2.9 → adopt_plot-0.2.11}/src/adopt_plot.egg-info/top_level.txt +0 -0
|
@@ -170,8 +170,8 @@ class AdoptPlot:
|
|
|
170
170
|
return
|
|
171
171
|
else:
|
|
172
172
|
raise TooManyVariablesError(
|
|
173
|
-
f"adopt_plot
|
|
174
|
-
|
|
173
|
+
f"adopt_plot supports only 2D plots. Received {len(self.vars_list)} variables: {self.vars_list}. "
|
|
174
|
+
f"If you need a 3D plot, wait for the next version!"
|
|
175
175
|
)
|
|
176
176
|
|
|
177
177
|
|
|
@@ -428,19 +428,19 @@ class AdoptPlot:
|
|
|
428
428
|
|
|
429
429
|
|
|
430
430
|
def add_plot(self, other):
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
431
|
+
"""Добавляет график другой функции на этот же объект."""
|
|
432
|
+
# Копируем все обычные линии (например, y = x)
|
|
433
|
+
for line in other.ax.lines:
|
|
434
|
+
self.ax.add_line(line)
|
|
435
|
+
|
|
436
|
+
# Копируем все коллекции (контуры от plot_implicit)
|
|
437
|
+
for collection in other.ax.collections:
|
|
438
|
+
self.ax.add_collection(collection)
|
|
439
|
+
|
|
440
|
+
# Обновляем легенду, если она включена
|
|
441
|
+
if self.legend:
|
|
442
|
+
self.ax.legend()
|
|
443
|
+
|
|
444
|
+
# Обновляем границы осей, чтобы графики были видны
|
|
445
|
+
self.ax.set_xlim(self.xlims)
|
|
446
|
+
self.ax.set_ylim(self.ylims)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|