seolpyo-mplchart 1.1.0__tar.gz → 1.1.1__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-1.1.0/seolpyo_mplchart.egg-info → seolpyo_mplchart-1.1.1}/PKG-INFO +1 -1
- {seolpyo_mplchart-1.1.0 → seolpyo_mplchart-1.1.1}/pyproject.toml +1 -1
- {seolpyo_mplchart-1.1.0 → seolpyo_mplchart-1.1.1}/seolpyo_mplchart/__init__.py +2 -2
- {seolpyo_mplchart-1.1.0 → seolpyo_mplchart-1.1.1}/seolpyo_mplchart/cursor.py +9 -4
- {seolpyo_mplchart-1.1.0 → seolpyo_mplchart-1.1.1}/seolpyo_mplchart/draw.py +2 -2
- {seolpyo_mplchart-1.1.0 → seolpyo_mplchart-1.1.1}/seolpyo_mplchart/slider.py +1 -1
- {seolpyo_mplchart-1.1.0 → seolpyo_mplchart-1.1.1/seolpyo_mplchart.egg-info}/PKG-INFO +1 -1
- {seolpyo_mplchart-1.1.0 → seolpyo_mplchart-1.1.1}/MANIFEST.in +0 -0
- {seolpyo_mplchart-1.1.0 → seolpyo_mplchart-1.1.1}/README.md +0 -0
- {seolpyo_mplchart-1.1.0 → seolpyo_mplchart-1.1.1}/seolpyo_mplchart/base.py +0 -0
- {seolpyo_mplchart-1.1.0 → seolpyo_mplchart-1.1.1}/seolpyo_mplchart/test.py +0 -0
- {seolpyo_mplchart-1.1.0 → seolpyo_mplchart-1.1.1}/seolpyo_mplchart/utils.py +0 -0
- {seolpyo_mplchart-1.1.0 → seolpyo_mplchart-1.1.1}/seolpyo_mplchart.egg-info/SOURCES.txt +0 -0
- {seolpyo_mplchart-1.1.0 → seolpyo_mplchart-1.1.1}/seolpyo_mplchart.egg-info/dependency_links.txt +0 -0
- {seolpyo_mplchart-1.1.0 → seolpyo_mplchart-1.1.1}/seolpyo_mplchart.egg-info/requires.txt +0 -0
- {seolpyo_mplchart-1.1.0 → seolpyo_mplchart-1.1.1}/seolpyo_mplchart.egg-info/top_level.txt +0 -0
- {seolpyo_mplchart-1.1.0 → seolpyo_mplchart-1.1.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: seolpyo-mplchart
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.1
|
|
4
4
|
Summary: Fast candlestick chart using Python. Includes navigator, slider, navigation, and text information display functions
|
|
5
5
|
Author-email: white-seolpyo <white-seolpyo@naver.com>
|
|
6
6
|
License: MIT License
|
|
@@ -193,7 +193,7 @@ class CursorChart(BaseCursorChart):
|
|
|
193
193
|
|
|
194
194
|
fraction: Decide whether to express information as a fraction. default False
|
|
195
195
|
format_candleinfo: Candle information text format. default '{dt}\n\n종가: {close}\n등락률: {rate}\n대비: {compare}\n시가: {open}({rate_open})\n고가: {high}({rate_high})\n저가: {low}({rate_low})\n거래량: {volume}({rate_volume})'
|
|
196
|
-
format_volumeinfo: Volume information text format. default '{dt}\n\n
|
|
196
|
+
format_volumeinfo: Volume information text format. default '{dt}\n\n거래량: {volume}\n거래량증가율: {rate_volume}\n대비: {compare}'
|
|
197
197
|
|
|
198
198
|
limit_candle: Maximum number of candles to draw. default 800
|
|
199
199
|
limit_wick: Maximum number of candle wicks to draw. default 4,000
|
|
@@ -267,7 +267,7 @@ class SliderChart(BaseSliderChart):
|
|
|
267
267
|
|
|
268
268
|
fraction: Decide whether to express information as a fraction. default False
|
|
269
269
|
format_candleinfo: Candle information text format. default '{dt}\n\n종가: {close}\n등락률: {rate}\n대비: {compare}\n시가: {open}({rate_open})\n고가: {high}({rate_high})\n저가: {low}({rate_low})\n거래량: {volume}({rate_volume})'
|
|
270
|
-
format_volumeinfo: Volume information text format. default '{dt}\n\n
|
|
270
|
+
format_volumeinfo: Volume information text format. default '{dt}\n\n거래량: {volume}\n거래량증가율: {rate_volume}\n대비: {compare}'
|
|
271
271
|
|
|
272
272
|
min_distance: Minimum number of candles that can be selected with the slider. default 30
|
|
273
273
|
limit_candle: Maximum number of candles to draw. default 800
|
|
@@ -129,7 +129,9 @@ class DataMixin(CollectionMixin):
|
|
|
129
129
|
self.df['rate_open'] = ((self.df[self.Open] - self.df['_pre']) / self.df[self.close] * 100).__round__(2).fillna(0)
|
|
130
130
|
self.df['rate_high'] = ((self.df[self.high] - self.df['_pre']) / self.df[self.close] * 100).__round__(2).fillna(0)
|
|
131
131
|
self.df['rate_low'] = ((self.df[self.low] - self.df['_pre']) / self.df[self.close] * 100).__round__(2).fillna(0)
|
|
132
|
-
if self.volume:
|
|
132
|
+
if self.volume:
|
|
133
|
+
self.df['compare_volume'] = (self.df[self.volume] - self.df[self.volume].shift(1)).fillna(0)
|
|
134
|
+
self.df['rate_volume'] = (self.df['compare_volume'] / self.df[self.volume].shift(1) * 100).__round__(2).fillna(0)
|
|
133
135
|
|
|
134
136
|
self.df['_boxheight'] = (self.df[self.high] - self.df[self.low]) / 5
|
|
135
137
|
self.df['_boxmin'] = self.df[self.low] - self.df['_boxheight']
|
|
@@ -305,9 +307,9 @@ class LineMixin(EventMixin):
|
|
|
305
307
|
|
|
306
308
|
|
|
307
309
|
format_candleinfo_ko = '{dt}\n\n종가: {close}\n등락률: {rate}\n대비: {compare}\n시가: {open}({rate_open})\n고가: {high}({rate_high})\n저가: {low}({rate_low})\n거래량: {volume}({rate_volume})'
|
|
308
|
-
format_volumeinfo_ko = '{dt}\n\n
|
|
310
|
+
format_volumeinfo_ko = '{dt}\n\n거래량: {volume}\n거래량증가율: {rate_volume}\n대비: {compare}'
|
|
309
311
|
format_candleinfo_en = '{dt}\n\nclose: {close}\nrate: {rate}\ncompare: {compare}\nopen: {open}({rate_open})\nhigh: {high}({rate_high})\nlow: {low}({rate_low})\nvolume: {volume}({rate_volume})'
|
|
310
|
-
format_volumeinfo_en = '{dt}\n\nvolume: {volume}\nvolume rate: {rate_volume}'
|
|
312
|
+
format_volumeinfo_en = '{dt}\n\nvolume: {volume}\nvolume rate: {rate_volume}\ncompare: {compare}'
|
|
311
313
|
|
|
312
314
|
class InfoMixin(LineMixin):
|
|
313
315
|
fraction = False
|
|
@@ -425,10 +427,13 @@ class InfoMixin(LineMixin):
|
|
|
425
427
|
volume=f'{v:>{self._length_text}}{self.unit_volume}', rate_volume=vr,
|
|
426
428
|
)
|
|
427
429
|
elif self.volume:
|
|
430
|
+
compare = self.df['compare_volume'][index]
|
|
431
|
+
com = float_to_str(compare, self.digit_volume, plus=True)
|
|
428
432
|
text = self.format_volumeinfo.format(
|
|
429
433
|
dt=dt,
|
|
430
434
|
volume=f'{v:>{self._length_text}}{self.unit_volume}',
|
|
431
435
|
rate_volume=f'{vr:>{self._length_text}}%',
|
|
436
|
+
compare=f'{com:>{self._length_text}}{self.unit_volume}',
|
|
432
437
|
)
|
|
433
438
|
else: text = ''
|
|
434
439
|
return text
|
|
@@ -441,7 +446,7 @@ class BaseMixin(InfoMixin):
|
|
|
441
446
|
class Chart(BaseMixin, Mixin):
|
|
442
447
|
def _add_collection(self):
|
|
443
448
|
super()._add_collection()
|
|
444
|
-
return self.
|
|
449
|
+
return self.add_artist()
|
|
445
450
|
|
|
446
451
|
def _draw_artist(self):
|
|
447
452
|
super()._draw_artist()
|
|
@@ -10,7 +10,7 @@ from .base import Base
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class Mixin:
|
|
13
|
-
def
|
|
13
|
+
def add_artist(self):
|
|
14
14
|
"This method work when ```__init__()``` run."
|
|
15
15
|
return
|
|
16
16
|
|
|
@@ -548,7 +548,7 @@ class BaseMixin(BackgroundMixin):
|
|
|
548
548
|
class Chart(BaseMixin, Mixin):
|
|
549
549
|
def _add_collection(self):
|
|
550
550
|
super()._add_collection()
|
|
551
|
-
return self.
|
|
551
|
+
return self.add_artist()
|
|
552
552
|
|
|
553
553
|
def _draw_artist(self):
|
|
554
554
|
super()._draw_artist()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: seolpyo-mplchart
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.1
|
|
4
4
|
Summary: Fast candlestick chart using Python. Includes navigator, slider, navigation, and text information display functions
|
|
5
5
|
Author-email: white-seolpyo <white-seolpyo@naver.com>
|
|
6
6
|
License: MIT License
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{seolpyo_mplchart-1.1.0 → seolpyo_mplchart-1.1.1}/seolpyo_mplchart.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|