prefig 0.3.9.dev20250730054824__py3-none-any.whl → 0.4.0__py3-none-any.whl
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.
- prefig/core/axes.py +3 -4
- prefig/core/slope_field.py +5 -0
- {prefig-0.3.9.dev20250730054824.dist-info → prefig-0.4.0.dist-info}/METADATA +1 -1
- {prefig-0.3.9.dev20250730054824.dist-info → prefig-0.4.0.dist-info}/RECORD +7 -7
- {prefig-0.3.9.dev20250730054824.dist-info → prefig-0.4.0.dist-info}/LICENSE +0 -0
- {prefig-0.3.9.dev20250730054824.dist-info → prefig-0.4.0.dist-info}/WHEEL +0 -0
- {prefig-0.3.9.dev20250730054824.dist-info → prefig-0.4.0.dist-info}/entry_points.txt +0 -0
prefig/core/axes.py
CHANGED
|
@@ -528,8 +528,7 @@ class Axes():
|
|
|
528
528
|
log.error(f"Error in <axes> parsing hlabels={hlabels}")
|
|
529
529
|
return
|
|
530
530
|
if self.h_pi_format:
|
|
531
|
-
|
|
532
|
-
|
|
531
|
+
h_positions = 1/math.pi * h_positions
|
|
533
532
|
h_scale = 1
|
|
534
533
|
if self.h_pi_format:
|
|
535
534
|
h_scale = math.pi
|
|
@@ -636,7 +635,7 @@ class Axes():
|
|
|
636
635
|
return
|
|
637
636
|
|
|
638
637
|
if self.v_pi_format:
|
|
639
|
-
|
|
638
|
+
v_positions = 1/math.pi * v_positions
|
|
640
639
|
|
|
641
640
|
v_scale = 1
|
|
642
641
|
if self.v_pi_format:
|
|
@@ -748,7 +747,7 @@ def label_text(x, commas):
|
|
|
748
747
|
suffix = text[period:]
|
|
749
748
|
text = text[:period]
|
|
750
749
|
while len(text) > 3:
|
|
751
|
-
suffix = ',' + text[-3:] + suffix
|
|
750
|
+
suffix = '{,}' + text[-3:] + suffix
|
|
752
751
|
text = text[:-3]
|
|
753
752
|
text = text + suffix
|
|
754
753
|
return r'\text{' + prefix + text + r'}'
|
prefig/core/slope_field.py
CHANGED
|
@@ -26,6 +26,8 @@ def slope_field(element, diagram, parent, outline_status):
|
|
|
26
26
|
return
|
|
27
27
|
bbox = diagram.bbox()
|
|
28
28
|
|
|
29
|
+
if element.get('id', None) is None:
|
|
30
|
+
diagram.add_id(element, None)
|
|
29
31
|
# We're going to turn this element into a group and add lines to it
|
|
30
32
|
element.tag = "group"
|
|
31
33
|
if element.get('outline', 'no') == 'yes':
|
|
@@ -127,6 +129,9 @@ def vector_field(element, diagram, parent, outline_status):
|
|
|
127
129
|
return
|
|
128
130
|
bbox = diagram.bbox()
|
|
129
131
|
|
|
132
|
+
if element.get('id', None) is None:
|
|
133
|
+
diagram.add_id(element, None)
|
|
134
|
+
|
|
130
135
|
# We're going to turn this element into a group and add lines to it
|
|
131
136
|
element.tag = "group"
|
|
132
137
|
if element.get('outline', 'no') == 'yes':
|
|
@@ -5,7 +5,7 @@ prefig/core/__init__.py,sha256=roT0a8-iBrp8WXTbPN5RzMWFiCXfpKrEXa2xE-F-yBo,728
|
|
|
5
5
|
prefig/core/annotations.py,sha256=9wStnLhEHFmkIocufHLiBcUZ3NSce7ZESor5kjj-vzg,3998
|
|
6
6
|
prefig/core/area.py,sha256=U-AxXvaZJWgVccpLlh-aaRfM_QtTa09NR2TqAd8Yk0o,3710
|
|
7
7
|
prefig/core/arrow.py,sha256=h8lFm1rMdpiZRyQu5kvAiptBmMYr5aKCZuB5JypAGDM,11283
|
|
8
|
-
prefig/core/axes.py,sha256
|
|
8
|
+
prefig/core/axes.py,sha256=T-n0P-Sk2e1cD3upzHtJCrh4CH8Kus7GduEF_yMRzZ4,31694
|
|
9
9
|
prefig/core/calculus.py,sha256=Q4kSGTTTeQYEEVKgmYWpFP0JLHmCsBchB5OF9qSclQk,498
|
|
10
10
|
prefig/core/circle.py,sha256=_v1eMVhl4nnD4WXCz-Boa_SAdQg_kKeU3NhP42z2Yzw,15668
|
|
11
11
|
prefig/core/clip.py,sha256=X3TcFYPuZwjZ9SFBWMc1MYY__6XTJqLafPeOLFNOdIE,806
|
|
@@ -35,7 +35,7 @@ prefig/core/rectangle.py,sha256=b_ki7yqA4-mke1_0khvKqSKBRToB667mZc-xZhhPIBA,3473
|
|
|
35
35
|
prefig/core/repeat.py,sha256=DAO5w4BxUMGU-8ymsv8EwsifI0zPa_cgIRUcWWS8BWU,2755
|
|
36
36
|
prefig/core/riemann_sum.py,sha256=T2dQgJIY17QuuPDOB8XWIP8HYmg5jOQ-LroFH7tiGAU,3012
|
|
37
37
|
prefig/core/shape.py,sha256=Qb_-upbSHwEoYrrAnbCoFFFuVIb3JgJLdyP9ckD5evc,8675
|
|
38
|
-
prefig/core/slope_field.py,sha256=
|
|
38
|
+
prefig/core/slope_field.py,sha256=KThnVBuO_3QK7k6xxCWnsbiv-X9P8oS1SgFPLoynA-E,8797
|
|
39
39
|
prefig/core/statistics.py,sha256=5qN_-ABN0EFVG12ZP95uSPk82INbWRqI3w2fUdR3wsw,3458
|
|
40
40
|
prefig/core/tags.py,sha256=7w6E3960o_ZgZl4xYJLVJ1eLttt0vVlB4IgMZGTMyyE,4134
|
|
41
41
|
prefig/core/tangent_line.py,sha256=I9wf9VAqhnmmsh8Lzynwi7_Z1DonHXqHf8ym7eO40tk,3400
|
|
@@ -61,8 +61,8 @@ prefig/resources/schema/pf_schema.rng,sha256=TmZQLgyK2wntXDXOiQXYcVQedlPuPh8IWrt
|
|
|
61
61
|
prefig/resources/template/pf_publication.xml,sha256=eEv8HACv610Apw5DSVNy0reLfELYqHlNy9Oq0GH7C_c,200
|
|
62
62
|
prefig/scripts/__init__.py,sha256=qJcPi1WRh9UAwu4zIFJbmxWalAMilMYqgi6LxRkF7bI,25
|
|
63
63
|
prefig/scripts/install_mj.py,sha256=5A6-oc1xbIXka5mkFE70vlp9-Rh_QoxOxGMrQi9Hkio,1219
|
|
64
|
-
prefig-0.
|
|
65
|
-
prefig-0.
|
|
66
|
-
prefig-0.
|
|
67
|
-
prefig-0.
|
|
68
|
-
prefig-0.
|
|
64
|
+
prefig-0.4.0.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
65
|
+
prefig-0.4.0.dist-info/METADATA,sha256=DqDUadOpS3ponxtyu1Gq9MApbG5EfwhgMA07jPVpST8,8710
|
|
66
|
+
prefig-0.4.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
67
|
+
prefig-0.4.0.dist-info/entry_points.txt,sha256=OP4ZQT71q2b0Zfbie-oM2Z1HlxpkuX7qaxJnzwsBOVQ,42
|
|
68
|
+
prefig-0.4.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|