tikzplot42 0.3.8__tar.gz → 0.3.9__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.
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/PKG-INFO +1 -1
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/pyproject.toml +1 -1
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/axes.py +1 -2
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/elements.py +2 -2
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot42.egg-info/PKG-INFO +1 -1
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/tests/test7.py +2 -2
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/LICENSE +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/README.md +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/setup.cfg +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/__init__.py +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/__init__.pyi +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/axes.pyi +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/axes3d.py +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/colorbar.py +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/colorbar.pyi +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/colors.py +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/colors.pyi +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/config.py +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/config.pyi +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/elements.pyi +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/figure.py +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/figure.pyi +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/latex_special.py +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/plots.py +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/plots.pyi +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/py.typed +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/state.py +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/state.pyi +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot/texts.py +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot42.egg-info/SOURCES.txt +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot42.egg-info/dependency_links.txt +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot42.egg-info/requires.txt +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/src/tikzplot42.egg-info/top_level.txt +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/tests/test1.py +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/tests/test10.py +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/tests/test2.py +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/tests/test3.py +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/tests/test4.py +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/tests/test5.py +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/tests/test6.py +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/tests/test8.py +0 -0
- {tikzplot42-0.3.8 → tikzplot42-0.3.9}/tests/test9.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tikzplot42"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.9"
|
|
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" }
|
|
@@ -589,7 +589,6 @@ class Axes(BaseAxes):
|
|
|
589
589
|
#kws = {"fmt", "alpha", "color", "c", "linestyle", "ls", "linewidth", "lw", "marker", "markersize", "ms", "label"}
|
|
590
590
|
#kwargs = self._check_kwargs("imshow", kws, **kwargs)
|
|
591
591
|
self._imshow = (args, kwargs)
|
|
592
|
-
#self._axis_args.add("axis on top")
|
|
593
592
|
self._axis_options["enlargelimits"] = "false"
|
|
594
593
|
#self._fig._add_global("\\pgfplotsset{set layers}")
|
|
595
594
|
data = args[0]
|
|
@@ -744,7 +743,7 @@ class Axes(BaseAxes):
|
|
|
744
743
|
if TikzConfig.SCHOOL_AXIS:
|
|
745
744
|
axis_opt_str += f",\n set layers,\n axis line style={{on layer=axis foreground}}"
|
|
746
745
|
else:
|
|
747
|
-
axis_opt_str += f",\n
|
|
746
|
+
axis_opt_str += f",\n set layers=standard, cell picture=true, grid style={{on layer=axis grid}}"
|
|
748
747
|
if self._ext_xmin or self._ext_xmax:
|
|
749
748
|
lower = self._get_range("xmin")
|
|
750
749
|
upper = self._get_range("xmax")
|
|
@@ -138,8 +138,8 @@ class BaseGraph:
|
|
|
138
138
|
if "alpha" in self._style:
|
|
139
139
|
self._opacity = self._style["alpha"]
|
|
140
140
|
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
if "onlayer" in self._style:
|
|
142
|
+
opts.append(f"on layer={self._style['onlayer']}")
|
|
143
143
|
|
|
144
144
|
if self._opacity < 1:
|
|
145
145
|
opts.append(f"opacity={self._opacity}")
|
|
@@ -23,9 +23,9 @@ fig, axs = plt.subplots(3,2)
|
|
|
23
23
|
# =========================
|
|
24
24
|
ax = axs[0, 0]
|
|
25
25
|
ax.plot(x, y, color="blue", lw=1.5, label="sin(x)")
|
|
26
|
+
ax.text(1.5, 0.5, r"text $\alpha$", color="blue", ha="center", on_top=False, va="center", backgroundcolor="cyan", rotation=30)
|
|
26
27
|
ax.plot(x, y2, ls="--", color="red", label="cos(x)")
|
|
27
|
-
ax.text(1.5, 0.5, r"text $\
|
|
28
|
-
ax.text(1.5, -0.5, r"text $\beta$", color="teal", ha="center", on_top=False, va="center", rotation=-70)
|
|
28
|
+
ax.text(1.5, -0.5, r"text $\beta$", color="teal", ha="center", va="center", rotation=-70)
|
|
29
29
|
|
|
30
30
|
ax.grid()
|
|
31
31
|
ax.legend(loc="upper right")
|
|
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
|
|
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
|
|
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
|