prefig 0.4.2.dev20250814054001__py3-none-any.whl → 0.4.2.dev20250815053946__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 +7 -4
- {prefig-0.4.2.dev20250814054001.dist-info → prefig-0.4.2.dev20250815053946.dist-info}/METADATA +1 -1
- {prefig-0.4.2.dev20250814054001.dist-info → prefig-0.4.2.dev20250815053946.dist-info}/RECORD +6 -6
- {prefig-0.4.2.dev20250814054001.dist-info → prefig-0.4.2.dev20250815053946.dist-info}/LICENSE +0 -0
- {prefig-0.4.2.dev20250814054001.dist-info → prefig-0.4.2.dev20250815053946.dist-info}/WHEEL +0 -0
- {prefig-0.4.2.dev20250814054001.dist-info → prefig-0.4.2.dev20250815053946.dist-info}/entry_points.txt +0 -0
prefig/core/axes.py
CHANGED
|
@@ -571,7 +571,7 @@ class Axes():
|
|
|
571
571
|
xlabel.set('scale', '0.8')
|
|
572
572
|
else:
|
|
573
573
|
#math_element.text = r'\text{'+'{0:g}'.format(x)+'}'
|
|
574
|
-
math_element.text = label_text(x, commas)
|
|
574
|
+
math_element.text = label_text(x, commas, diagram)
|
|
575
575
|
if self.h_pi_format:
|
|
576
576
|
math_element.text = get_pi_text(x)
|
|
577
577
|
|
|
@@ -680,7 +680,7 @@ class Axes():
|
|
|
680
680
|
ylabel.set('scale', '0.8')
|
|
681
681
|
else:
|
|
682
682
|
#math_element.text = r'\text{'+'{0:g}'.format(y)+'}'
|
|
683
|
-
math_element.text = label_text(y, commas)
|
|
683
|
+
math_element.text = label_text(y, commas, diagram)
|
|
684
684
|
if self.v_pi_format:
|
|
685
685
|
math_element.text = get_pi_text(y)
|
|
686
686
|
# process as a math number
|
|
@@ -712,7 +712,7 @@ class Axes():
|
|
|
712
712
|
user_coords=False)
|
|
713
713
|
self.v_tick_group.append(line_el)
|
|
714
714
|
|
|
715
|
-
def label_text(x, commas):
|
|
715
|
+
def label_text(x, commas, diagram):
|
|
716
716
|
# we'll construct a text representation of x
|
|
717
717
|
# maybe it's simple
|
|
718
718
|
if x < 0:
|
|
@@ -741,13 +741,16 @@ def label_text(x, commas):
|
|
|
741
741
|
return r'\text{' + prefix + text + r'}'
|
|
742
742
|
|
|
743
743
|
period = text.find('.')
|
|
744
|
+
comma_include = '{,}'
|
|
745
|
+
if diagram.get_environment() == 'pyodide':
|
|
746
|
+
comma_include = ','
|
|
744
747
|
if period < 0:
|
|
745
748
|
suffix = ''
|
|
746
749
|
else:
|
|
747
750
|
suffix = text[period:]
|
|
748
751
|
text = text[:period]
|
|
749
752
|
while len(text) > 3:
|
|
750
|
-
suffix =
|
|
753
|
+
suffix = comma_include + text[-3:] + suffix
|
|
751
754
|
text = text[:-3]
|
|
752
755
|
text = text + suffix
|
|
753
756
|
return r'\text{' + prefix + text + r'}'
|
{prefig-0.4.2.dev20250814054001.dist-info → prefig-0.4.2.dev20250815053946.dist-info}/RECORD
RENAMED
|
@@ -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=3J6eWNXRWTlbFVNfWkv_-Hyq4L7UP54EQ5u1r82Cfy0,31830
|
|
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
|
|
@@ -61,8 +61,8 @@ prefig/resources/schema/pf_schema.rng,sha256=NURxWLPuw_T5sRR_OSwupH02E83W0KoixsL
|
|
|
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.4.2.
|
|
65
|
-
prefig-0.4.2.
|
|
66
|
-
prefig-0.4.2.
|
|
67
|
-
prefig-0.4.2.
|
|
68
|
-
prefig-0.4.2.
|
|
64
|
+
prefig-0.4.2.dev20250815053946.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
65
|
+
prefig-0.4.2.dev20250815053946.dist-info/METADATA,sha256=qVP3FFvWNF44C38TZlrL3wqJEhhYjy6hdBc5XJrG2s8,8728
|
|
66
|
+
prefig-0.4.2.dev20250815053946.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
67
|
+
prefig-0.4.2.dev20250815053946.dist-info/entry_points.txt,sha256=OP4ZQT71q2b0Zfbie-oM2Z1HlxpkuX7qaxJnzwsBOVQ,42
|
|
68
|
+
prefig-0.4.2.dev20250815053946.dist-info/RECORD,,
|
{prefig-0.4.2.dev20250814054001.dist-info → prefig-0.4.2.dev20250815053946.dist-info}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|