adopt-plot 0.1.6__tar.gz → 0.1.8__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: adopt-plot
3
- Version: 0.1.6
3
+ Version: 0.1.8
4
4
  Summary: A universal plotter for implicit functions using adaptive engine selection.
5
5
  Author: VartRusData
6
6
  License: BSD 3-Clause
@@ -14,7 +14,7 @@ Requires-Dist: numpy
14
14
  Dynamic: license-file
15
15
 
16
16
  # adopt-plot
17
-
17
+ ### Or AdoptPlot
18
18
  A library for plotting implicit functions using two rendering engines:
19
19
 
20
20
  - `contour` from `matplotlib`.
@@ -43,7 +43,7 @@ Or with deferred display (to add custom elements first):
43
43
  ```python
44
44
  from adopt_plot import AdoptPlot
45
45
 
46
- plot = AdoptPlot("y = 1/x", show=False)
46
+ plot = AdoptPlot("y = sqrt(x)", show=False)
47
47
  # Add custom elements here:
48
48
  plot.ax.scatter(2, 2, color='red')
49
49
  plot.show()
@@ -55,9 +55,9 @@ All plot elements (`axes`, `fig`, `plt`) are accessible via the plot object and
55
55
  from adopt_plot import AdoptPlot
56
56
  plot = AdoptPlot("y = 1/x", show=False)
57
57
  plot.ax.set_xlim(-10, 10) # Change X-axis limits
58
- plot.fig.savefig("my_plot.png", dpi=300)# Save to file
58
+ plot.save("my_plot.png", dpi=300)# Save to file
59
59
  ```
60
- ![my_plot](https://i.yapx.ru/eCFD2.png)
60
+ [![my_plot.png](https://s6.iimage.su/s/06/g81ZrIAx4tGB8TvoKr0Rzd13wLuOoqnIAoEzBQVBz.png)](y=1/x)
61
61
  ```python
62
62
  from adopt_plot import AdoptPlot
63
63
 
@@ -68,11 +68,15 @@ plot.ax.set_title("Implicit function with radial oscillations")
68
68
  plot.ax.grid(True, linestyle=':', alpha=0.5)
69
69
 
70
70
  # Сохраняем с высоким DPI
71
- plot.fig.savefig("publication_ready.png", dpi=300, bbox_inches='tight')
71
+ plot.save("publication_ready.png", dpi=300, bbox_inches='tight')
72
72
  plot.show()
73
73
  ```
74
- ![Сложная функция](https://i.yapx.ru/eCFBo.png) Сложная функция построенная через AdoptPlot
75
74
 
75
+
76
+ [![publication_ready.png](https://s6.iimage.su/s/06/g98NejXxyBk91Qy5ygthSKyBm89B2OZZLlKcy5nUp.png)]("sin(sqrt(x**2 + y**2)) / log(x**2 + y**2 + 1) = 0)
77
+ ## Methods
78
+ - **`show`**: Show the figure
79
+ - **`save`**: Save the figure
76
80
  ## Parameters
77
81
 
78
82
  When creating an `AdoptPlot` object, the following parameters are available:
@@ -1,5 +1,5 @@
1
1
  # adopt-plot
2
-
2
+ ### Or AdoptPlot
3
3
  A library for plotting implicit functions using two rendering engines:
4
4
 
5
5
  - `contour` from `matplotlib`.
@@ -28,7 +28,7 @@ Or with deferred display (to add custom elements first):
28
28
  ```python
29
29
  from adopt_plot import AdoptPlot
30
30
 
31
- plot = AdoptPlot("y = 1/x", show=False)
31
+ plot = AdoptPlot("y = sqrt(x)", show=False)
32
32
  # Add custom elements here:
33
33
  plot.ax.scatter(2, 2, color='red')
34
34
  plot.show()
@@ -40,9 +40,9 @@ All plot elements (`axes`, `fig`, `plt`) are accessible via the plot object and
40
40
  from adopt_plot import AdoptPlot
41
41
  plot = AdoptPlot("y = 1/x", show=False)
42
42
  plot.ax.set_xlim(-10, 10) # Change X-axis limits
43
- plot.fig.savefig("my_plot.png", dpi=300)# Save to file
43
+ plot.save("my_plot.png", dpi=300)# Save to file
44
44
  ```
45
- ![my_plot](https://i.yapx.ru/eCFD2.png)
45
+ [![my_plot.png](https://s6.iimage.su/s/06/g81ZrIAx4tGB8TvoKr0Rzd13wLuOoqnIAoEzBQVBz.png)](y=1/x)
46
46
  ```python
47
47
  from adopt_plot import AdoptPlot
48
48
 
@@ -53,11 +53,15 @@ plot.ax.set_title("Implicit function with radial oscillations")
53
53
  plot.ax.grid(True, linestyle=':', alpha=0.5)
54
54
 
55
55
  # Сохраняем с высоким DPI
56
- plot.fig.savefig("publication_ready.png", dpi=300, bbox_inches='tight')
56
+ plot.save("publication_ready.png", dpi=300, bbox_inches='tight')
57
57
  plot.show()
58
58
  ```
59
- ![Сложная функция](https://i.yapx.ru/eCFBo.png) Сложная функция построенная через AdoptPlot
60
59
 
60
+
61
+ [![publication_ready.png](https://s6.iimage.su/s/06/g98NejXxyBk91Qy5ygthSKyBm89B2OZZLlKcy5nUp.png)]("sin(sqrt(x**2 + y**2)) / log(x**2 + y**2 + 1) = 0)
62
+ ## Methods
63
+ - **`show`**: Show the figure
64
+ - **`save`**: Save the figure
61
65
  ## Parameters
62
66
 
63
67
  When creating an `AdoptPlot` object, the following parameters are available:
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "adopt-plot"
7
- version = "0.1.6"
7
+ version = "0.1.8"
8
8
  description = "A universal plotter for implicit functions using adaptive engine selection."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: adopt-plot
3
- Version: 0.1.6
3
+ Version: 0.1.8
4
4
  Summary: A universal plotter for implicit functions using adaptive engine selection.
5
5
  Author: VartRusData
6
6
  License: BSD 3-Clause
@@ -14,7 +14,7 @@ Requires-Dist: numpy
14
14
  Dynamic: license-file
15
15
 
16
16
  # adopt-plot
17
-
17
+ ### Or AdoptPlot
18
18
  A library for plotting implicit functions using two rendering engines:
19
19
 
20
20
  - `contour` from `matplotlib`.
@@ -43,7 +43,7 @@ Or with deferred display (to add custom elements first):
43
43
  ```python
44
44
  from adopt_plot import AdoptPlot
45
45
 
46
- plot = AdoptPlot("y = 1/x", show=False)
46
+ plot = AdoptPlot("y = sqrt(x)", show=False)
47
47
  # Add custom elements here:
48
48
  plot.ax.scatter(2, 2, color='red')
49
49
  plot.show()
@@ -55,9 +55,9 @@ All plot elements (`axes`, `fig`, `plt`) are accessible via the plot object and
55
55
  from adopt_plot import AdoptPlot
56
56
  plot = AdoptPlot("y = 1/x", show=False)
57
57
  plot.ax.set_xlim(-10, 10) # Change X-axis limits
58
- plot.fig.savefig("my_plot.png", dpi=300)# Save to file
58
+ plot.save("my_plot.png", dpi=300)# Save to file
59
59
  ```
60
- ![my_plot](https://i.yapx.ru/eCFD2.png)
60
+ [![my_plot.png](https://s6.iimage.su/s/06/g81ZrIAx4tGB8TvoKr0Rzd13wLuOoqnIAoEzBQVBz.png)](y=1/x)
61
61
  ```python
62
62
  from adopt_plot import AdoptPlot
63
63
 
@@ -68,11 +68,15 @@ plot.ax.set_title("Implicit function with radial oscillations")
68
68
  plot.ax.grid(True, linestyle=':', alpha=0.5)
69
69
 
70
70
  # Сохраняем с высоким DPI
71
- plot.fig.savefig("publication_ready.png", dpi=300, bbox_inches='tight')
71
+ plot.save("publication_ready.png", dpi=300, bbox_inches='tight')
72
72
  plot.show()
73
73
  ```
74
- ![Сложная функция](https://i.yapx.ru/eCFBo.png) Сложная функция построенная через AdoptPlot
75
74
 
75
+
76
+ [![publication_ready.png](https://s6.iimage.su/s/06/g98NejXxyBk91Qy5ygthSKyBm89B2OZZLlKcy5nUp.png)]("sin(sqrt(x**2 + y**2)) / log(x**2 + y**2 + 1) = 0)
77
+ ## Methods
78
+ - **`show`**: Show the figure
79
+ - **`save`**: Save the figure
76
80
  ## Parameters
77
81
 
78
82
  When creating an `AdoptPlot` object, the following parameters are available:
File without changes
File without changes