tikzplot42 0.3.3__tar.gz → 0.3.4__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.
Files changed (42) hide show
  1. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/PKG-INFO +4 -3
  2. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/README.md +3 -2
  3. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/pyproject.toml +1 -1
  4. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/figure.py +5 -0
  5. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/figure.pyi +6 -0
  6. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot42.egg-info/PKG-INFO +4 -3
  7. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/LICENSE +0 -0
  8. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/setup.cfg +0 -0
  9. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/__init__.py +0 -0
  10. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/__init__.pyi +0 -0
  11. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/axes.py +0 -0
  12. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/axes.pyi +0 -0
  13. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/axes3d.py +0 -0
  14. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/colorbar.py +0 -0
  15. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/colorbar.pyi +0 -0
  16. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/colors.py +0 -0
  17. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/colors.pyi +0 -0
  18. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/config.py +0 -0
  19. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/config.pyi +0 -0
  20. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/elements.py +0 -0
  21. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/elements.pyi +0 -0
  22. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/latex_special.py +0 -0
  23. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/plots.py +0 -0
  24. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/plots.pyi +0 -0
  25. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/py.typed +0 -0
  26. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/state.py +0 -0
  27. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/state.pyi +0 -0
  28. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot/texts.py +0 -0
  29. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot42.egg-info/SOURCES.txt +0 -0
  30. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot42.egg-info/dependency_links.txt +0 -0
  31. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot42.egg-info/requires.txt +0 -0
  32. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/src/tikzplot42.egg-info/top_level.txt +0 -0
  33. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/tests/test1.py +0 -0
  34. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/tests/test10.py +0 -0
  35. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/tests/test2.py +0 -0
  36. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/tests/test3.py +0 -0
  37. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/tests/test4.py +0 -0
  38. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/tests/test5.py +0 -0
  39. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/tests/test6.py +0 -0
  40. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/tests/test7.py +0 -0
  41. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/tests/test8.py +0 -0
  42. {tikzplot42-0.3.3 → tikzplot42-0.3.4}/tests/test9.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tikzplot42
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Summary: TikzPlot to make TikZ/PGFPlots plots with matplotlib.pyplot-like syntax.
5
5
  Author-email: Zan Ambrozic <zan.ambrozic7@gmail.com>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -706,7 +706,7 @@ A clean version of PltToTikz, this time as Python package. Easy to use: only rep
706
706
  Please let me know if you find any bugs or unexpected behaviour. Examples may be found in repository under `tests/` directory.
707
707
 
708
708
  <p align="center">
709
- <img src="https://github.com/ZanAmb/TikzPlot/blob/main/tests/demo.png" width="60%">
709
+ <img src="https://raw.githubusercontent.com/ZanAmb/TikzPlot/main/tests/demo.png" width="60%">
710
710
  </p>
711
711
 
712
712
  # Installation
@@ -747,7 +747,8 @@ Some basic plot commands are already implemented with commonly used arguments:
747
747
  #### Figures
748
748
  - `plt.figure()` (currently only to give you figure object or to set `figsize`),
749
749
  - `plt.subplot()`, `plt.subplots()` (with `sharex/sharey` fully implemented, projection `polar` and `3d` with basic support),
750
- - `set_size_inches()`.
750
+ - `set_size_inches()`,
751
+ - `delaxes()`.
751
752
 
752
753
  #### Styles
753
754
  If axes and plot have different name for command with same effect, both are implemented (e.g. `plt.xlim()` and `ax.set_xlim()`).
@@ -4,7 +4,7 @@ A clean version of PltToTikz, this time as Python package. Easy to use: only rep
4
4
  Please let me know if you find any bugs or unexpected behaviour. Examples may be found in repository under `tests/` directory.
5
5
 
6
6
  <p align="center">
7
- <img src="https://github.com/ZanAmb/TikzPlot/blob/main/tests/demo.png" width="60%">
7
+ <img src="https://raw.githubusercontent.com/ZanAmb/TikzPlot/main/tests/demo.png" width="60%">
8
8
  </p>
9
9
 
10
10
  # Installation
@@ -45,7 +45,8 @@ Some basic plot commands are already implemented with commonly used arguments:
45
45
  #### Figures
46
46
  - `plt.figure()` (currently only to give you figure object or to set `figsize`),
47
47
  - `plt.subplot()`, `plt.subplots()` (with `sharex/sharey` fully implemented, projection `polar` and `3d` with basic support),
48
- - `set_size_inches()`.
48
+ - `set_size_inches()`,
49
+ - `delaxes()`.
49
50
 
50
51
  #### Styles
51
52
  If axes and plot have different name for command with same effect, both are implemented (e.g. `plt.xlim()` and `ax.set_xlim()`).
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tikzplot42"
7
- version = "0.3.3"
7
+ version = "0.3.4"
8
8
  description = "TikzPlot to make TikZ/PGFPlots plots with matplotlib.pyplot-like syntax."
9
9
  authors = [
10
10
  { name = "Zan Ambrozic", email = "zan.ambrozic7@gmail.com" }
@@ -70,6 +70,11 @@ class Figure:
70
70
  ax._update_size()
71
71
  except:
72
72
  pass
73
+
74
+ def delaxes(self, ax):
75
+ if ax in self._axes:
76
+ self._axes.remove(ax)
77
+ del ax
73
78
 
74
79
  def _compute_group_spacing(self):
75
80
  grid = np.zeros((self._nrows, self._ncols, 4))
@@ -20,6 +20,12 @@ class Figure:
20
20
  Set figure size (w,h).
21
21
  """
22
22
  ...
23
+
24
+ def delaxes(self, ax:Axes) -> None:
25
+ """
26
+ Delete axis from figure.
27
+ """
28
+ ...
23
29
  def clear(self) -> None:
24
30
  """
25
31
  Clear figure.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tikzplot42
3
- Version: 0.3.3
3
+ Version: 0.3.4
4
4
  Summary: TikzPlot to make TikZ/PGFPlots plots with matplotlib.pyplot-like syntax.
5
5
  Author-email: Zan Ambrozic <zan.ambrozic7@gmail.com>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -706,7 +706,7 @@ A clean version of PltToTikz, this time as Python package. Easy to use: only rep
706
706
  Please let me know if you find any bugs or unexpected behaviour. Examples may be found in repository under `tests/` directory.
707
707
 
708
708
  <p align="center">
709
- <img src="https://github.com/ZanAmb/TikzPlot/blob/main/tests/demo.png" width="60%">
709
+ <img src="https://raw.githubusercontent.com/ZanAmb/TikzPlot/main/tests/demo.png" width="60%">
710
710
  </p>
711
711
 
712
712
  # Installation
@@ -747,7 +747,8 @@ Some basic plot commands are already implemented with commonly used arguments:
747
747
  #### Figures
748
748
  - `plt.figure()` (currently only to give you figure object or to set `figsize`),
749
749
  - `plt.subplot()`, `plt.subplots()` (with `sharex/sharey` fully implemented, projection `polar` and `3d` with basic support),
750
- - `set_size_inches()`.
750
+ - `set_size_inches()`,
751
+ - `delaxes()`.
751
752
 
752
753
  #### Styles
753
754
  If axes and plot have different name for command with same effect, both are implemented (e.g. `plt.xlim()` and `ax.set_xlim()`).
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