tikzplot42 0.5.13__tar.gz → 0.5.14__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 (62) hide show
  1. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/PKG-INFO +1 -1
  2. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/pyproject.toml +1 -1
  3. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/axes.py +9 -5
  4. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/axes.pyi +2 -2
  5. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/elements.py +4 -0
  6. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot42.egg-info/PKG-INFO +1 -1
  7. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/LICENSE +0 -0
  8. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/README.md +0 -0
  9. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/setup.cfg +0 -0
  10. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/__init__.py +0 -0
  11. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/__init__.pyi +0 -0
  12. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/axes3d.py +0 -0
  13. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/axes3d.pyi +0 -0
  14. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/border_finder.py +0 -0
  15. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/colorbar.py +0 -0
  16. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/colorbar.pyi +0 -0
  17. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/colors.py +0 -0
  18. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/config.py +0 -0
  19. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/config.pyi +0 -0
  20. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/elements.pyi +0 -0
  21. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/figure.py +0 -0
  22. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/figure.pyi +0 -0
  23. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/latex_special.py +0 -0
  24. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/pie.py +0 -0
  25. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/plots.py +0 -0
  26. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/plots.pyi +0 -0
  27. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/py.typed +0 -0
  28. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/state.py +0 -0
  29. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/styles.py +0 -0
  30. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/styles.pyi +0 -0
  31. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot/texts.py +0 -0
  32. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot42.egg-info/SOURCES.txt +0 -0
  33. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot42.egg-info/dependency_links.txt +0 -0
  34. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot42.egg-info/requires.txt +0 -0
  35. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/src/tikzplot42.egg-info/top_level.txt +0 -0
  36. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test1.py +0 -0
  37. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test10.py +0 -0
  38. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test11.py +0 -0
  39. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test12.py +0 -0
  40. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test13.py +0 -0
  41. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test14.py +0 -0
  42. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test15.py +0 -0
  43. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test16.py +0 -0
  44. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test17.py +0 -0
  45. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test18.py +0 -0
  46. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test19.py +0 -0
  47. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test2.py +0 -0
  48. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test20.py +0 -0
  49. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test21.py +0 -0
  50. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test22.py +0 -0
  51. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test23.py +0 -0
  52. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test24.py +0 -0
  53. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test25.py +0 -0
  54. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test26.py +0 -0
  55. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test27.py +0 -0
  56. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test3.py +0 -0
  57. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test4.py +0 -0
  58. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test5.py +0 -0
  59. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test6.py +0 -0
  60. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test7.py +0 -0
  61. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test8.py +0 -0
  62. {tikzplot42-0.5.13 → tikzplot42-0.5.14}/tests/test9.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tikzplot42
3
- Version: 0.5.13
3
+ Version: 0.5.14
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tikzplot42"
7
- version = "0.5.13"
7
+ version = "0.5.14"
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" }
@@ -819,12 +819,14 @@ class BaseAxes:
819
819
  for k in kws - {"label"}:
820
820
  if k in kwargs:
821
821
  st[k] = kwargs.pop(k)
822
+ output = []
822
823
  for i in range(len(ys)):
823
824
  if i == 0 and "label" in kwargs:
824
- return self._plot([xmins[i], xmaxs[i]], [ys[i]]*2, None, None, None, c=colorss[i], ls=lss[i], label=kwargs["label"], **st)
825
+ output.append(self._plot([xmins[i], xmaxs[i]], [ys[i]]*2, None, None, None, c=colorss[i], ls=lss[i], label=kwargs["label"], **st))
825
826
  else:
826
- return self._plot([xmins[i], xmaxs[i]], [ys[i]]*2, None, None, None, c=colorss[i], ls=lss[i], **st)
827
-
827
+ output.append(self._plot([xmins[i], xmaxs[i]], [ys[i]]*2, None, None, None, c=colorss[i], ls=lss[i], **st))
828
+ return output
829
+
828
830
  def vlines(self, x, ymin, ymax, colors="k", linestyles="solid", **kwargs):
829
831
  kws = {"label", "color", "c", "linewidth", "lw", "linestyle", "ls", "alpha"}
830
832
  kwargs = self._check_kwargs("vlines", kws, **kwargs)
@@ -847,11 +849,13 @@ class BaseAxes:
847
849
  for k in kws - {"label"}:
848
850
  if k in kwargs:
849
851
  st[k] = kwargs.pop(k)
852
+ output = []
850
853
  for i in range(len(xs)):
851
854
  if i == 0 and "label" in kwargs:
852
- self._plot([xs[i]]*2, [ymins[i], ymaxs[i]], None, None, None, c=colorss[i], ls=lss[i], label=kwargs["label"], **st)
855
+ output.append(self._plot([xs[i]]*2, [ymins[i], ymaxs[i]], None, None, None, c=colorss[i], ls=lss[i], label=kwargs["label"], **st))
853
856
  else:
854
- self._plot([xs[i]]*2, [ymins[i], ymaxs[i]], None, None, None, c=colorss[i], ls=lss[i], **st)
857
+ output.append(self._plot([xs[i]]*2, [ymins[i], ymaxs[i]], None, None, None, c=colorss[i], ls=lss[i], **st))
858
+ return output
855
859
 
856
860
  def hist(self, x, bins=10, density=False,**kwargs):
857
861
  kws = {"alpha", "color", "c", "label", "facecolor", "fc", "edgecolor", "ec", "orientation", "rwidth", "cumulative", "range", "histtype", "weights", "cumulative", "align", "stacked", "fill", "hatch", "hatch_color", "hatch_linewidth", "hatch_distance"}
@@ -404,7 +404,7 @@ class BaseAxes:
404
404
  colors: Union[str, Sequence[str]] = "k",
405
405
  linestyles: Union[str, Sequence[str]] = "solid",
406
406
  label: Optional[str] = None, color: Optional[ColorLike] = ..., c: Optional[ColorLike] = ..., linewidth: Optional[float] = ..., lw: Optional[float] = ..., linestyle: Optional[LineStyle] = ..., ls: Optional[LineStyle] = ..., alpha: float = 1.0
407
- ) -> None:
407
+ ) -> List[Graph]:
408
408
  """
409
409
  Draw horizontal lines to the selected axis.
410
410
  """
@@ -417,7 +417,7 @@ class BaseAxes:
417
417
  colors: Union[str, Sequence[str]] = "k",
418
418
  linestyles: Union[str, Sequence[str]] = "solid",
419
419
  label: Optional[str] = None, color: Optional[ColorLike] = ..., c: Optional[ColorLike] = ..., linewidth: Optional[float] = ..., lw: Optional[float] = ..., linestyle: Optional[LineStyle] = ..., ls: Optional[LineStyle] = ..., alpha: float = 1.0
420
- ) -> None:
420
+ ) -> List[Graph]:
421
421
  """
422
422
  Draw vertical lines to the selected axis.
423
423
  """
@@ -648,6 +648,10 @@ class Graph(BaseGraph):
648
648
  elif isinstance(coordinates, tuple):
649
649
  self._classic = True
650
650
  x,y=coordinates
651
+ if isinstance(x, (list, tuple)):
652
+ x = [x]
653
+ if isinstance(y, (list, tuple)):
654
+ y = [y]
651
655
  self._x = np.asarray(x)
652
656
  self._y = np.asarray(y)
653
657
  self._meta = self._settings.pop("meta", None)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tikzplot42
3
- Version: 0.5.13
3
+ Version: 0.5.14
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
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