Skip to content

Commit b83fdac

Browse files
committed
font_size -> font-size
1 parent b7c7873 commit b83fdac

10 files changed

+4
-3
lines changed

img/dual_polygon_numbering.png

8.74 KB
Loading

img/hexahedron_numbering.png

13.8 KB
Loading

img/interval_numbering.png

1.31 KB
Loading

img/prism_numbering.png

13.3 KB
Loading

img/pyramid_numbering.png

9.97 KB
Loading

img/quadrilateral_numbering.png

5.47 KB
Loading

img/tetrahedron_numbering.png

9.17 KB
Loading

img/triangle_numbering.png

4.45 KB
Loading

scripts/draw_references.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@
2222

2323
filename = shape.replace(" ", "_") + "_numbering"
2424
ref.plot_entity_diagrams(
25-
f"{folder}/{filename}.png", {"png_width": 230 + 200 * ref.tdim})
25+
f"{folder}/{filename}.png", {"png_width": 207 * (ref.tdim + 1)},
26+
scale=300)

symfem/plotting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def as_svg(
441441

442442
return (f"<circle cx='{c[0]}' cy='{c[1]}' r='{self.radius}' "
443443
f"stroke='{self.color}' stroke-width='{self.width}' fill='{self.fill_color}' />\n"
444-
f"<text x='{c[0]}' y='{c[1]}' fill='{self.text_color}' font_size='{self.font_size}'"
444+
f"<text x='{c[0]}' y='{c[1]}' fill='{self.text_color}' font-size='{self.font_size}'"
445445
f" style=\"text-anchor:middle;dominant-baseline:middle;font-family:{self.font}\">"
446446
f"{self.number}</text>\n")
447447

@@ -582,7 +582,7 @@ def as_svg(
582582

583583
c = map_pt(self.point)
584584

585-
return (f"<text x='{c[0]}' y='{c[1]}' fill='{self.color}' font_size='{self.font_size}'"
585+
return (f"<text x='{c[0]}' y='{c[1]}' fill='{self.color}' font-size='{self.font_size}'"
586586
f" style=\"{anchor};font-family:'CMU Serif',serif;font-style:italic\">"
587587
f"{self.math}</text>\n")
588588

0 commit comments

Comments
 (0)