kaxe 1.4.4.dev7__tar.gz → 1.4.4.dev9__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.
- {kaxe-1.4.4.dev7/src/kaxe.egg-info → kaxe-1.4.4.dev9}/PKG-INFO +1 -1
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/pyproject.toml +1 -1
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/d2/point.py +23 -15
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/point.py +1 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/plot/grid.py +16 -2
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9/src/kaxe.egg-info}/PKG-INFO +1 -1
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/LICENSE +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/MANIFEST.in +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/README.md +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/setup.cfg +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/__init__.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/chart/__init__.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/chart/bar.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/chart/box.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/chart/pie.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/chart/qqplot.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/__init__.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/axis.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/color.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/d3/backend.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/d3/camera.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/d3/helper.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/d3/hud.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/d3/objects/__init__.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/d3/objects/color.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/d3/objects/line.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/d3/objects/point.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/d3/objects/pointer.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/d3/objects/triangle.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/d3/openglrender.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/d3/translator.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/draw.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/fileloader.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/helper.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/legend.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/line.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/marker.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/profiler.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/round.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/shapes.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/styles.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/svg.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/svg_pdf.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/symbol.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/text.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/core/window.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/data/__init__.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/data/excel.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/__init__.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/_lazy.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/d2/__init__.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/d2/arrow.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/d2/bubble.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/d2/contour.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/d2/equation.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/d2/fill.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/d2/function.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/d2/map.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/d2/parameter.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/d2/pillar.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/d3/__init__.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/d3/base.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/d3/function.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/d3/mesh.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/d3/point.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/d3/potato.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/function.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/legend.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/mapdata.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/objects/text.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/plot/__init__.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/plot/_lazy.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/plot/box.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/plot/constants.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/plot/d3/__init__.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/plot/d3/axes.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/plot/d3/geometry.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/plot/d3/plot3d.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/plot/d3/variants.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/plot/double.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/plot/empty.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/plot/log.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/plot/polar.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/plot/standard.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/plot/themes.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/plot/zoom.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/plot/zoom_connector.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/__init__.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/__init__.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.bright-oblique.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.bright-roman.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.bright-semibold.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.bright-semiboldoblique.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.classical-serif-italic.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.concrete-bold.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.concrete-bolditalic.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.concrete-italic.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.concrete-roman.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.sans-serif-bold.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.sans-serif-boldoblique.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.sans-serif-demi-condensed-demicondensed.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.sans-serif-medium.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.sans-serif-oblique.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.serif-bold.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.serif-bolditalic.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.serif-extra-boldslanted.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.serif-extra-romanslanted.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.serif-italic.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.serif-roman.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.serif-upright-italic-uprightitalic.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.typewriter-text-bold.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.typewriter-text-bolditalic.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.typewriter-text-italic.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.typewriter-text-light.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.typewriter-text-lightoblique.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.typewriter-text-regular.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.typewriter-text-variable-width-italic.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.typewriter-text-variable-width-medium.ttf +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/readme.txt +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/logo-small.png +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/symbolcross.png +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/symboldonut.png +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/symbollollipop.png +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/symboltriangle.png +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe.egg-info/SOURCES.txt +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe.egg-info/dependency_links.txt +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe.egg-info/requires.txt +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe.egg-info/top_level.txt +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/tests/test.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/tests/test2.py +0 -0
- {kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/tests/test3.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kaxe
|
|
3
|
-
Version: 1.4.4.
|
|
3
|
+
Version: 1.4.4.dev9
|
|
4
4
|
Summary: A small graphing tool for functions, points, equations and more
|
|
5
5
|
Author-email: Valter Yde Daugberg <valteryde@hotmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/valteryde/kaxe
|
|
@@ -27,9 +27,12 @@ class Points2D:
|
|
|
27
27
|
If True, the points will be connected by lines. Default is False.
|
|
28
28
|
lollipop : bool, optional
|
|
29
29
|
If True, the points will be represented as lollipops. Default is False.
|
|
30
|
+
show_points : bool, optional
|
|
31
|
+
If False, point markers are not drawn. With ``connect=True``, junction
|
|
32
|
+
circles matching the line width are still drawn. Default is True.
|
|
30
33
|
"""
|
|
31
34
|
|
|
32
|
-
def __init__(self, x, y, color:tuple=None, size:int=None, symbol:str=None, connect:bool=False, lollipop=False):
|
|
35
|
+
def __init__(self, x, y, color:tuple=None, size:int=None, symbol:str=None, connect:bool=False, lollipop=False, show_points:bool=True):
|
|
33
36
|
self.batch = shapes.Batch()
|
|
34
37
|
self.points = []
|
|
35
38
|
self.lines = []
|
|
@@ -64,6 +67,9 @@ class Points2D:
|
|
|
64
67
|
|
|
65
68
|
self.legendColor = self.color
|
|
66
69
|
self.connect = connect
|
|
70
|
+
self.show_points = show_points
|
|
71
|
+
if not show_points and connect and not symbol:
|
|
72
|
+
self.legendSymbol = symbols.LINE
|
|
67
73
|
|
|
68
74
|
if len(self.x) > 0:
|
|
69
75
|
self.farLeft = min(self.x)
|
|
@@ -80,6 +86,7 @@ class Points2D:
|
|
|
80
86
|
if self.size is None: self.size = round(parent.getAttr('fontSize') / 3)
|
|
81
87
|
scale = parent.getVisualScale()
|
|
82
88
|
size = max(1, round(self.size * scale))
|
|
89
|
+
line_width = max(1, int(size * 0.5))
|
|
83
90
|
|
|
84
91
|
for i, (x,y) in enumerate(zip(self.x,self.y)):
|
|
85
92
|
x,y = parent.pixel(x, y)
|
|
@@ -88,22 +95,22 @@ class Points2D:
|
|
|
88
95
|
continue
|
|
89
96
|
|
|
90
97
|
# symbol
|
|
91
|
-
if self.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
shapes.Circle(x, y,
|
|
98
|
+
if self.show_points:
|
|
99
|
+
if self.symbol:
|
|
100
|
+
symbol = makeSymbolShapes(self.symbol, size, self.color, batch=self.batch)
|
|
101
|
+
symbol.x = x
|
|
102
|
+
symbol.y = y
|
|
103
|
+
if hasattr(symbol, 'centerAlign'): symbol.centerAlign()
|
|
104
|
+
self.points.append(symbol)
|
|
105
|
+
else:
|
|
106
|
+
shapes.Circle(x, y, self.size/2, self.color, batch=self.batch)
|
|
107
|
+
elif self.connect:
|
|
108
|
+
shapes.Circle(x, y, line_width / 2, self.color, batch=self.batch)
|
|
102
109
|
|
|
103
110
|
# lollipop (lagt til lines)
|
|
104
111
|
if self.lollipop:
|
|
105
112
|
_, y0 = parent.pixel(x, min(max(0, parent.windowAxis[2]), parent.windowAxis[3]))
|
|
106
|
-
line = shapes.Line(x, y, x, y0, color=self.color, width=
|
|
113
|
+
line = shapes.Line(x, y, x, y0, color=self.color, width=line_width, batch=self.batch, center=True)
|
|
107
114
|
self.lines.append(line)
|
|
108
115
|
|
|
109
116
|
# connect
|
|
@@ -114,13 +121,14 @@ class Points2D:
|
|
|
114
121
|
if x1 is None or y1 is None or x is None or y is None:
|
|
115
122
|
continue
|
|
116
123
|
|
|
117
|
-
if
|
|
124
|
+
skip_dist = size if self.symbol else (line_width if not self.show_points else None)
|
|
125
|
+
if skip_dist and vlen(vdiff((x1, y1), (x,y))) < skip_dist:
|
|
118
126
|
continue
|
|
119
127
|
|
|
120
128
|
if not parent.inside(x1, y1):
|
|
121
129
|
continue
|
|
122
130
|
|
|
123
|
-
line = shapes.Line(x,y, x1, y1, color=self.color, width=
|
|
131
|
+
line = shapes.Line(x,y, x1, y1, color=self.color, width=line_width, batch=self.batch, center=True)
|
|
124
132
|
self.lines.append(line)
|
|
125
133
|
|
|
126
134
|
|
|
@@ -22,6 +22,7 @@ class Points:
|
|
|
22
22
|
Y coordinates of the points.
|
|
23
23
|
**kwargs
|
|
24
24
|
Additional keyword arguments. For the appropiate keyworks see arguments for Points2D and Points3D.
|
|
25
|
+
``show_points`` is supported by Points2D only (line-only plots with ``connect=True``).
|
|
25
26
|
|
|
26
27
|
Returns
|
|
27
28
|
-------
|
|
@@ -96,6 +96,21 @@ class Grid(AttrObject):
|
|
|
96
96
|
self.__legends = legends
|
|
97
97
|
|
|
98
98
|
|
|
99
|
+
def theme(self, theme):
|
|
100
|
+
"""Apply a theme dict (e.g. :data:`kaxe.Themes.A4Medium`) to the grid."""
|
|
101
|
+
self.style(**theme)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def _apply_cell_styles(self, plot, cellWidth, cellHeight):
|
|
105
|
+
plot.style(
|
|
106
|
+
width=cellWidth,
|
|
107
|
+
height=cellHeight,
|
|
108
|
+
outerPadding=self.outerPadding,
|
|
109
|
+
fontSize=self.getAttr('fontSize'),
|
|
110
|
+
color=self.getAttr('color'),
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
|
|
99
114
|
def _prepare_cells(self, vector: bool = False):
|
|
100
115
|
"""Style cells, export to memory, and compute composite layout."""
|
|
101
116
|
grid = self.grid
|
|
@@ -117,8 +132,7 @@ class Grid(AttrObject):
|
|
|
117
132
|
maxHeight = 0
|
|
118
133
|
|
|
119
134
|
for colNum, plot in enumerate(row):
|
|
120
|
-
|
|
121
|
-
plot.style(outerPadding=self.outerPadding)
|
|
135
|
+
self._apply_cell_styles(plot, cellWidth, cellHeight)
|
|
122
136
|
|
|
123
137
|
memfile = BytesIO()
|
|
124
138
|
plot.showProgressBar = False
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kaxe
|
|
3
|
-
Version: 1.4.4.
|
|
3
|
+
Version: 1.4.4.dev9
|
|
4
4
|
Summary: A small graphing tool for functions, points, equations and more
|
|
5
5
|
Author-email: Valter Yde Daugberg <valteryde@hotmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/valteryde/kaxe
|
|
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
|
|
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
|
|
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
|
{kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.bright-oblique.ttf
RENAMED
|
File without changes
|
{kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.bright-roman.ttf
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.concrete-bold.ttf
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.concrete-roman.ttf
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.serif-bold.ttf
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.serif-italic.ttf
RENAMED
|
File without changes
|
{kaxe-1.4.4.dev7 → kaxe-1.4.4.dev9}/src/kaxe/resources/computer-modern-family/cmu.serif-roman.ttf
RENAMED
|
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
|