tikzplot42 0.5.0__tar.gz → 0.5.2__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 (50) hide show
  1. {tikzplot42-0.5.0/src/tikzplot42.egg-info → tikzplot42-0.5.2}/PKG-INFO +18 -3
  2. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/README.md +17 -2
  3. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/pyproject.toml +1 -1
  4. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/axes.py +589 -52
  5. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/axes.pyi +287 -28
  6. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/elements.py +124 -49
  7. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/elements.pyi +2 -1
  8. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/figure.pyi +1 -1
  9. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/plots.py +21 -0
  10. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/plots.pyi +230 -33
  11. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/styles.py +11 -8
  12. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/texts.py +1 -6
  13. {tikzplot42-0.5.0 → tikzplot42-0.5.2/src/tikzplot42.egg-info}/PKG-INFO +18 -3
  14. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot42.egg-info/SOURCES.txt +2 -2
  15. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/tests/test11.py +7 -3
  16. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/tests/test14.py +3 -2
  17. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/tests/test15.py +5 -2
  18. tikzplot42-0.5.2/tests/test16.py +24 -0
  19. tikzplot42-0.5.0/tests/test_styles.py +0 -17
  20. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/LICENSE +0 -0
  21. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/setup.cfg +0 -0
  22. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/__init__.py +0 -0
  23. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/__init__.pyi +0 -0
  24. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/axes3d.py +0 -0
  25. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/axes3d.pyi +0 -0
  26. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/colorbar.py +0 -0
  27. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/colorbar.pyi +0 -0
  28. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/colors.py +0 -0
  29. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/config.py +0 -0
  30. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/config.pyi +0 -0
  31. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/figure.py +0 -0
  32. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/latex_special.py +0 -0
  33. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/py.typed +0 -0
  34. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/state.py +0 -0
  35. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot/styles.pyi +0 -0
  36. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot42.egg-info/dependency_links.txt +0 -0
  37. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot42.egg-info/requires.txt +0 -0
  38. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/src/tikzplot42.egg-info/top_level.txt +0 -0
  39. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/tests/test1.py +0 -0
  40. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/tests/test10.py +0 -0
  41. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/tests/test12.py +0 -0
  42. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/tests/test13.py +0 -0
  43. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/tests/test2.py +0 -0
  44. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/tests/test3.py +0 -0
  45. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/tests/test4.py +0 -0
  46. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/tests/test5.py +0 -0
  47. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/tests/test6.py +0 -0
  48. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/tests/test7.py +0 -0
  49. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/tests/test8.py +0 -0
  50. {tikzplot42-0.5.0 → tikzplot42-0.5.2}/tests/test9.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tikzplot42
3
- Version: 0.5.0
3
+ Version: 0.5.2
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,6 +706,18 @@ Please report any bugs or unexpected behaviour in Issues. Examples may be found
706
706
  <img src="https://raw.githubusercontent.com/ZanAmb/TikzPlot/main/tests/demo.png" width="60%">
707
707
  </p>
708
708
 
709
+ ## Why use pgfplots instead of matplotlib?
710
+ - Tikz/pgfplots is a LaTeX package, so it is easy to integrate into your LaTeX document, and the fonts will match your document, rescaling will not affect font sizes.
711
+ - Tikz/pgfplots graph is easy to edit, especially if only minor style changes are needed, while matplotlib requires re-running the code to generate a new graph.
712
+ - Full math mode is supported, so you can use LaTeX math in your labels, legends, etc.
713
+
714
+ ## Why use this package instead of other available?
715
+ - It is easy to use, with code being very similar to matplotlib and only minor changes are needed to switch from matplotlib to this package.
716
+ - It relies on frontend commands, which is less likley to change in matplotlib, so new updates do not break it.
717
+ - It generates clean and readable Tikz code, which is easy to edit and understand. Code is also efficient and does not contain unnecessary commands, which is important escpecially for large graphs.
718
+ - If you use LLMs to generate pgfplots code, you will often get code that is not compilable, since for more complex requirements, LLMs make up commands that do not exist. This package covers many use cases and generates compilable code.
719
+
720
+
709
721
  # Installation
710
722
  PyPI: `pip install tikzplot42`.
711
723
  Alternativley, download this package and install using: `pip install [path]`, where [path] is the path to the directory, containing `pyproject.toml`.
@@ -740,6 +752,8 @@ Some basic plot commands are already implemented with commonly used arguments:
740
752
  - `hlines()/vlines()`,
741
753
  - `hist()`,
742
754
  - `bar()/barh()`,
755
+ - `bar_label()`,
756
+ - `stackplot()`,
743
757
  - `step()`,
744
758
  - `imshow()`,
745
759
  - `text()`,
@@ -763,7 +777,8 @@ If axes and plot have different name for command with same effect, both are impl
763
777
  - `ax.set_xticklabels()/ax.set_yticklabels()`,
764
778
  - `legend()` (basic position control),
765
779
  - `ax.twinx()`,
766
- - `ax.set()`.
780
+ - `ax.set()`,
781
+ - `ax.tick_params()`,
767
782
 
768
783
  There is a limited support for built-in styles (e.g. `plt.style.use("default")`), you may also define your own style using `plt.style.set_profile()`. Currently supported features are: color cycle (hex colors sequence), line width (in pt), grid (with matplotlib kwargs), background (latex style key=value), additional settings (raw latex code for optional arguments to axis: key=value).
769
784
 
@@ -790,6 +805,6 @@ For plot configurations (default sizes, paddings, etc.), use `from tikzplot impo
790
805
  Currently supported parameters are listed with their default values in `src/tikzplot/config.py`.
791
806
 
792
807
  ## More features coming soon...
793
- - additional arguments supprot for implemented commands,
808
+ - additional arguments support for implemented commands,
794
809
  - improved 3D plots (currently only basic support: plot, errorbar, fill_between, scatter, plot_wireframe, plot_surface),
795
810
  - ...
@@ -7,6 +7,18 @@ Please report any bugs or unexpected behaviour in Issues. Examples may be found
7
7
  <img src="https://raw.githubusercontent.com/ZanAmb/TikzPlot/main/tests/demo.png" width="60%">
8
8
  </p>
9
9
 
10
+ ## Why use pgfplots instead of matplotlib?
11
+ - Tikz/pgfplots is a LaTeX package, so it is easy to integrate into your LaTeX document, and the fonts will match your document, rescaling will not affect font sizes.
12
+ - Tikz/pgfplots graph is easy to edit, especially if only minor style changes are needed, while matplotlib requires re-running the code to generate a new graph.
13
+ - Full math mode is supported, so you can use LaTeX math in your labels, legends, etc.
14
+
15
+ ## Why use this package instead of other available?
16
+ - It is easy to use, with code being very similar to matplotlib and only minor changes are needed to switch from matplotlib to this package.
17
+ - It relies on frontend commands, which is less likley to change in matplotlib, so new updates do not break it.
18
+ - It generates clean and readable Tikz code, which is easy to edit and understand. Code is also efficient and does not contain unnecessary commands, which is important escpecially for large graphs.
19
+ - If you use LLMs to generate pgfplots code, you will often get code that is not compilable, since for more complex requirements, LLMs make up commands that do not exist. This package covers many use cases and generates compilable code.
20
+
21
+
10
22
  # Installation
11
23
  PyPI: `pip install tikzplot42`.
12
24
  Alternativley, download this package and install using: `pip install [path]`, where [path] is the path to the directory, containing `pyproject.toml`.
@@ -41,6 +53,8 @@ Some basic plot commands are already implemented with commonly used arguments:
41
53
  - `hlines()/vlines()`,
42
54
  - `hist()`,
43
55
  - `bar()/barh()`,
56
+ - `bar_label()`,
57
+ - `stackplot()`,
44
58
  - `step()`,
45
59
  - `imshow()`,
46
60
  - `text()`,
@@ -64,7 +78,8 @@ If axes and plot have different name for command with same effect, both are impl
64
78
  - `ax.set_xticklabels()/ax.set_yticklabels()`,
65
79
  - `legend()` (basic position control),
66
80
  - `ax.twinx()`,
67
- - `ax.set()`.
81
+ - `ax.set()`,
82
+ - `ax.tick_params()`,
68
83
 
69
84
  There is a limited support for built-in styles (e.g. `plt.style.use("default")`), you may also define your own style using `plt.style.set_profile()`. Currently supported features are: color cycle (hex colors sequence), line width (in pt), grid (with matplotlib kwargs), background (latex style key=value), additional settings (raw latex code for optional arguments to axis: key=value).
70
85
 
@@ -91,6 +106,6 @@ For plot configurations (default sizes, paddings, etc.), use `from tikzplot impo
91
106
  Currently supported parameters are listed with their default values in `src/tikzplot/config.py`.
92
107
 
93
108
  ## More features coming soon...
94
- - additional arguments supprot for implemented commands,
109
+ - additional arguments support for implemented commands,
95
110
  - improved 3D plots (currently only basic support: plot, errorbar, fill_between, scatter, plot_wireframe, plot_surface),
96
111
  - ...
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tikzplot42"
7
- version = "0.5.0"
7
+ version = "0.5.2"
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" }