seolpyo-mplchart 0.0.2__tar.gz → 0.0.3__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.
Potentially problematic release.
This version of seolpyo-mplchart might be problematic. Click here for more details.
- {seolpyo_mplchart-0.0.2/seolpyo_mplchart.egg-info → seolpyo_mplchart-0.0.3}/PKG-INFO +1 -1
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.3}/pyproject.toml +1 -1
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.3}/seolpyo_mplchart/cursor.py +3 -3
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.3}/seolpyo_mplchart/utils.py +2 -2
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.3/seolpyo_mplchart.egg-info}/PKG-INFO +1 -1
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.3}/MANIFEST.in +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.3}/README.md +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.3}/seolpyo_mplchart/__init__.py +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.3}/seolpyo_mplchart/base.py +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.3}/seolpyo_mplchart/data/apple.txt +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.3}/seolpyo_mplchart/data/samsung.txt +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.3}/seolpyo_mplchart/draw.py +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.3}/seolpyo_mplchart/slider.py +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.3}/seolpyo_mplchart/test.py +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.3}/seolpyo_mplchart.egg-info/SOURCES.txt +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.3}/seolpyo_mplchart.egg-info/dependency_links.txt +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.3}/seolpyo_mplchart.egg-info/requires.txt +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.3}/seolpyo_mplchart.egg-info/top_level.txt +0 -0
- {seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.3}/setup.cfg +0 -0
|
@@ -331,8 +331,8 @@ class InfoMixin(LineMixin):
|
|
|
331
331
|
else: c = float_to_str(cd[0])
|
|
332
332
|
|
|
333
333
|
comd = divmod(compare, 1)
|
|
334
|
-
if comd[1]: com = f'{float_to_str(comd[0])} {Fraction(comd[1])}'
|
|
335
|
-
else: com = float_to_str(comd[0])
|
|
334
|
+
if comd[1]: com = f'{float_to_str(comd[0], plus=True)} {Fraction(comd[1])}'
|
|
335
|
+
else: com = float_to_str(comd[0], plus=True)
|
|
336
336
|
|
|
337
337
|
o = o.__round__(self.digit_price)
|
|
338
338
|
od = divmod(o, 1)
|
|
@@ -361,7 +361,7 @@ class InfoMixin(LineMixin):
|
|
|
361
361
|
)
|
|
362
362
|
else:
|
|
363
363
|
o, h, l, c = (float_to_str(o, self.digit_price), float_to_str(h, self.digit_price), float_to_str(l, self.digit_price), float_to_str(c, self.digit_price))
|
|
364
|
-
com = float_to_str(compare, self.digit_price)
|
|
364
|
+
com = float_to_str(compare, self.digit_price, plus=True)
|
|
365
365
|
|
|
366
366
|
text = self.candleformat.format(
|
|
367
367
|
dt,
|
|
@@ -5,9 +5,9 @@ def convert_num(num):
|
|
|
5
5
|
return int(num)
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
def float_to_str(num: float, digit=0):
|
|
8
|
+
def float_to_str(num: float, digit=0, plus=False):
|
|
9
9
|
num.__round__(digit)
|
|
10
|
-
text = f'{num:,.{digit}f}'
|
|
10
|
+
text = f'{num:+,.{digit}f}' if plus else f'{num:,.{digit}f}'
|
|
11
11
|
return text
|
|
12
12
|
|
|
13
13
|
|
|
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
|
{seolpyo_mplchart-0.0.2 → seolpyo_mplchart-0.0.3}/seolpyo_mplchart.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|