kaxe 1.4.4.dev13__tar.gz → 1.4.5__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.dev13/src/kaxe.egg-info → kaxe-1.4.5}/PKG-INFO +1 -1
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/pyproject.toml +1 -1
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/axis.py +0 -1
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/svg.py +11 -44
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/plot/grid.py +2 -24
- {kaxe-1.4.4.dev13 → kaxe-1.4.5/src/kaxe.egg-info}/PKG-INFO +1 -1
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/LICENSE +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/MANIFEST.in +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/README.md +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/setup.cfg +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/__init__.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/chart/__init__.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/chart/bar.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/chart/box.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/chart/pie.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/chart/qqplot.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/__init__.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/color.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/d3/backend.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/d3/camera.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/d3/helper.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/d3/hud.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/d3/objects/__init__.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/d3/objects/color.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/d3/objects/line.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/d3/objects/point.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/d3/objects/pointer.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/d3/objects/triangle.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/d3/openglrender.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/d3/translator.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/draw.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/fileloader.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/helper.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/legend.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/line.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/marker.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/profiler.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/round.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/shapes.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/styles.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/svg_pdf.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/symbol.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/text.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/core/window.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/data/__init__.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/data/excel.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/__init__.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/_lazy.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/d2/__init__.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/d2/arrow.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/d2/bubble.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/d2/contour.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/d2/equation.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/d2/fill.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/d2/function.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/d2/map.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/d2/parameter.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/d2/pillar.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/d2/point.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/d3/__init__.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/d3/base.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/d3/function.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/d3/mesh.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/d3/point.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/d3/potato.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/function.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/legend.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/mapdata.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/point.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/objects/text.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/plot/__init__.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/plot/_lazy.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/plot/box.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/plot/constants.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/plot/d3/__init__.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/plot/d3/axes.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/plot/d3/geometry.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/plot/d3/plot3d.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/plot/d3/variants.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/plot/double.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/plot/empty.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/plot/log.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/plot/polar.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/plot/standard.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/plot/themes.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/plot/zoom.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/plot/zoom_connector.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/__init__.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/__init__.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.bright-oblique.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.bright-roman.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.bright-semibold.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.bright-semiboldoblique.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.classical-serif-italic.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.concrete-bold.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.concrete-bolditalic.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.concrete-italic.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.concrete-roman.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.sans-serif-bold.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.sans-serif-boldoblique.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.sans-serif-demi-condensed-demicondensed.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.sans-serif-medium.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.sans-serif-oblique.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.serif-bold.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.serif-bolditalic.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.serif-extra-boldslanted.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.serif-extra-romanslanted.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.serif-italic.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.serif-roman.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.serif-upright-italic-uprightitalic.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.typewriter-text-bold.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.typewriter-text-bolditalic.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.typewriter-text-italic.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.typewriter-text-light.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.typewriter-text-lightoblique.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.typewriter-text-regular.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.typewriter-text-variable-width-italic.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.typewriter-text-variable-width-medium.ttf +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/readme.txt +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/logo-small.png +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/symbolcross.png +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/symboldonut.png +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/symbollollipop.png +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/symboltriangle.png +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe.egg-info/SOURCES.txt +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe.egg-info/dependency_links.txt +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe.egg-info/requires.txt +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe.egg-info/top_level.txt +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/tests/test.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/tests/test2.py +0 -0
- {kaxe-1.4.4.dev13 → kaxe-1.4.5}/tests/test3.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kaxe
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.5
|
|
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
|
|
@@ -57,8 +57,6 @@ class SvgDocument:
|
|
|
57
57
|
self._width, self._height = int(size[0]), int(size[1])
|
|
58
58
|
self._elements: list[ET.Element] = []
|
|
59
59
|
self._fondi_font_css: Optional[str] = None
|
|
60
|
-
self._clip_defs: list[ET.Element] = []
|
|
61
|
-
self._clip_counter = 0
|
|
62
60
|
|
|
63
61
|
@property
|
|
64
62
|
def height(self) -> int:
|
|
@@ -287,11 +285,9 @@ class SvgDocument:
|
|
|
287
285
|
rotate: float = 0,
|
|
288
286
|
rotate_center: Optional[tuple[float, float]] = None,
|
|
289
287
|
) -> None:
|
|
290
|
-
"""Place an image; y is in kaxe coords (y-up)
|
|
288
|
+
"""Place an image; y is in kaxe coords (y-up). y_coord='bottom' or 'top'."""
|
|
291
289
|
href = pil_to_data_uri(img)
|
|
292
|
-
if y_coord == "
|
|
293
|
-
svg_top = y
|
|
294
|
-
elif y_coord == "top":
|
|
290
|
+
if y_coord == "top":
|
|
295
291
|
svg_top = self.flip_y(y)
|
|
296
292
|
else:
|
|
297
293
|
svg_top = self.flip_y(y) - img.height
|
|
@@ -363,22 +359,15 @@ class SvgDocument:
|
|
|
363
359
|
"viewBox": f"0 0 {self._width} {self._height}",
|
|
364
360
|
},
|
|
365
361
|
)
|
|
366
|
-
if self._fondi_font_css is not None
|
|
362
|
+
if self._fondi_font_css is not None:
|
|
367
363
|
defs = ET.SubElement(root, f"{{{SVG_NS}}}defs")
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
style.text = self._fondi_font_css
|
|
371
|
-
for clip_el in self._clip_defs:
|
|
372
|
-
defs.append(clip_el)
|
|
364
|
+
style = ET.SubElement(defs, f"{{{SVG_NS}}}style")
|
|
365
|
+
style.text = self._fondi_font_css
|
|
373
366
|
for el in self._elements:
|
|
374
367
|
root.append(el)
|
|
375
368
|
body = ET.tostring(root, encoding="unicode")
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
body = _ascii_safe_svg_markup(body)
|
|
380
|
-
except ImportError:
|
|
381
|
-
pass
|
|
369
|
+
from fondi.backends.svg import _ascii_safe_svg_markup
|
|
370
|
+
body = _ascii_safe_svg_markup(body)
|
|
382
371
|
return '<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n' + body
|
|
383
372
|
|
|
384
373
|
def to_pdf(self, fname: Optional[Union[str, BytesIO]] = None) -> bytes:
|
|
@@ -419,36 +408,14 @@ def embed_svg_children(
|
|
|
419
408
|
children: list[ET.Element],
|
|
420
409
|
tx: float,
|
|
421
410
|
ty: float,
|
|
422
|
-
*,
|
|
423
|
-
clip_size: Optional[tuple[float, float]] = None,
|
|
424
411
|
) -> None:
|
|
425
412
|
"""Embed copied SVG children at top-left offset (SVG y-down coordinates)."""
|
|
426
413
|
if not children:
|
|
427
414
|
return
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
clip_w, clip_h = clip_size
|
|
433
|
-
clip_id = f"kaxe-clip-{doc._clip_counter}"
|
|
434
|
-
doc._clip_counter += 1
|
|
435
|
-
clip_path = ET.Element(
|
|
436
|
-
f"{{{SVG_NS}}}clipPath",
|
|
437
|
-
{"id": clip_id},
|
|
438
|
-
)
|
|
439
|
-
ET.SubElement(
|
|
440
|
-
clip_path,
|
|
441
|
-
f"{{{SVG_NS}}}rect",
|
|
442
|
-
{
|
|
443
|
-
"x": "0",
|
|
444
|
-
"y": "0",
|
|
445
|
-
"width": str(round(clip_w, 3)),
|
|
446
|
-
"height": str(round(clip_h, 3)),
|
|
447
|
-
},
|
|
448
|
-
)
|
|
449
|
-
doc._clip_defs.append(clip_path)
|
|
450
|
-
attribs["clip-path"] = f"url(#{clip_id})"
|
|
451
|
-
group = ET.Element(f"{{{SVG_NS}}}g", attribs)
|
|
415
|
+
group = ET.Element(
|
|
416
|
+
f"{{{SVG_NS}}}g",
|
|
417
|
+
{"transform": f"translate({round(tx, 3)},{round(ty, 3)})"},
|
|
418
|
+
)
|
|
452
419
|
for child in children:
|
|
453
420
|
group.append(copy.deepcopy(child))
|
|
454
421
|
doc._elements.append(group)
|
|
@@ -94,7 +94,6 @@ class Grid(AttrObject):
|
|
|
94
94
|
"""
|
|
95
95
|
|
|
96
96
|
self.__legends = legends
|
|
97
|
-
self._invalidate_bake_cache()
|
|
98
97
|
|
|
99
98
|
|
|
100
99
|
def theme(self, theme):
|
|
@@ -111,21 +110,10 @@ class Grid(AttrObject):
|
|
|
111
110
|
plot.__included__ = []
|
|
112
111
|
plot.__baked__ = False
|
|
113
112
|
plot.__bakedImage__ = False
|
|
114
|
-
for axis in (getattr(plot, "firstAxis", None), getattr(plot, "secondAxis", None)):
|
|
115
|
-
if axis is not None:
|
|
116
|
-
axis.markers = []
|
|
117
|
-
axis.title = None
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
def _invalidate_bake_cache(self):
|
|
121
|
-
self.__bakedImage__ = False
|
|
122
|
-
self.__bakedSvg__ = None
|
|
123
|
-
self.__bakedPdf__ = None
|
|
124
113
|
|
|
125
114
|
|
|
126
115
|
def _apply_cell_styles(self, plot, cellWidth, cellHeight):
|
|
127
116
|
self._reset_cell_bake_state(plot)
|
|
128
|
-
plot.showLegend = False
|
|
129
117
|
plot.style(
|
|
130
118
|
width=cellWidth,
|
|
131
119
|
height=cellHeight,
|
|
@@ -327,19 +315,12 @@ class Grid(AttrObject):
|
|
|
327
315
|
xml = plot.__ioBytes.read().decode("utf-8")
|
|
328
316
|
root = parse_svg_root(xml)
|
|
329
317
|
children, fondi_css = extract_svg_children(root)
|
|
330
|
-
|
|
331
|
-
embed_svg_children(
|
|
332
|
-
doc,
|
|
333
|
-
children,
|
|
334
|
-
px,
|
|
335
|
-
py,
|
|
336
|
-
clip_size=(cell_w, cell_h),
|
|
337
|
-
)
|
|
318
|
+
embed_svg_children(doc, children, px, py)
|
|
338
319
|
merge_fondi_css(doc, fondi_css)
|
|
339
320
|
else:
|
|
340
321
|
plot.__ioBytes.seek(0)
|
|
341
322
|
img = Image.open(plot.__ioBytes)
|
|
342
|
-
doc.add_image(img, px, py, y_coord="
|
|
323
|
+
doc.add_image(img, px, py, y_coord="top")
|
|
343
324
|
|
|
344
325
|
x += cellWidth + gapcol
|
|
345
326
|
|
|
@@ -383,7 +364,6 @@ class Grid(AttrObject):
|
|
|
383
364
|
|
|
384
365
|
"""
|
|
385
366
|
|
|
386
|
-
self._invalidate_bake_cache()
|
|
387
367
|
self.grid.append(row)
|
|
388
368
|
|
|
389
369
|
|
|
@@ -397,8 +377,6 @@ class Grid(AttrObject):
|
|
|
397
377
|
A list of plots to be added as a column in the grid.
|
|
398
378
|
"""
|
|
399
379
|
|
|
400
|
-
self._invalidate_bake_cache()
|
|
401
|
-
|
|
402
380
|
for i, plot in enumerate(column):
|
|
403
381
|
|
|
404
382
|
if i >= len(self.grid):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kaxe
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.5
|
|
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.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.bright-oblique.ttf
RENAMED
|
File without changes
|
{kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.bright-roman.ttf
RENAMED
|
File without changes
|
{kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.bright-semibold.ttf
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.concrete-bold.ttf
RENAMED
|
File without changes
|
|
File without changes
|
{kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.concrete-italic.ttf
RENAMED
|
File without changes
|
{kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.concrete-roman.ttf
RENAMED
|
File without changes
|
{kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.sans-serif-bold.ttf
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.sans-serif-medium.ttf
RENAMED
|
File without changes
|
{kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.sans-serif-oblique.ttf
RENAMED
|
File without changes
|
{kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.serif-bold.ttf
RENAMED
|
File without changes
|
{kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.serif-bolditalic.ttf
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kaxe-1.4.4.dev13 → kaxe-1.4.5}/src/kaxe/resources/computer-modern-family/cmu.serif-italic.ttf
RENAMED
|
File without changes
|
{kaxe-1.4.4.dev13 → kaxe-1.4.5}/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
|