seolpyo-mplchart 0.1.1__py3-none-any.whl → 0.1.2__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.
Potentially problematic release.
This version of seolpyo-mplchart might be problematic. Click here for more details.
- seolpyo_mplchart/__init__.py +2 -2
- seolpyo_mplchart/slider.py +11 -10
- {seolpyo_mplchart-0.1.1.dist-info → seolpyo_mplchart-0.1.2.dist-info}/METADATA +5 -1
- {seolpyo_mplchart-0.1.1.dist-info → seolpyo_mplchart-0.1.2.dist-info}/RECORD +6 -6
- {seolpyo_mplchart-0.1.1.dist-info → seolpyo_mplchart-0.1.2.dist-info}/WHEEL +0 -0
- {seolpyo_mplchart-0.1.1.dist-info → seolpyo_mplchart-0.1.2.dist-info}/top_level.txt +0 -0
seolpyo_mplchart/__init__.py
CHANGED
|
@@ -70,8 +70,8 @@ class Chart(CM):
|
|
|
70
70
|
textboxKwargs: Options that apply to the information text box. dufault dict(boxstyle='round', facecolor='w')
|
|
71
71
|
|
|
72
72
|
fraction: Decide whether to express information as a fraction. default False
|
|
73
|
-
candleformat: Candle information text format. default '{}\n\n종가: {}\n등락률: {}\n대비: {}\n시가: {}({})\n고가: {}({})\n저가: {}({})\n거래량: {}({})'
|
|
74
|
-
volumeformat: Volume information text format. default '{}\n\n거래량 : {}\n거래량증가율: {}'
|
|
73
|
+
candleformat: 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})'
|
|
74
|
+
volumeformat: Volume information text format. default '{dt}\n\n거래량 : {volume}\n거래량증가율: {rate_volume}'
|
|
75
75
|
digit_price, digit_volume: Number of decimal places expressed in informational text. default (0, 0)
|
|
76
76
|
|
|
77
77
|
min_distance: Minimum number of candles that can be selected with the slider. default 30
|
seolpyo_mplchart/slider.py
CHANGED
|
@@ -319,6 +319,7 @@ class SimpleMixin(LimMixin):
|
|
|
319
319
|
simpler = False
|
|
320
320
|
limit_volume = 1_500
|
|
321
321
|
default_left, default_right = (180, 10)
|
|
322
|
+
_draw_blit = False
|
|
322
323
|
|
|
323
324
|
def __init__(self, *args, **kwargs):
|
|
324
325
|
super().__init__(*args, **kwargs)
|
|
@@ -369,19 +370,15 @@ class SimpleMixin(LimMixin):
|
|
|
369
370
|
self.ax_price.xaxis.draw(renderer)
|
|
370
371
|
self.ax_price.yaxis.draw(renderer)
|
|
371
372
|
|
|
372
|
-
left, right = self._navcoordinate
|
|
373
|
-
Range = right - left
|
|
374
373
|
if self.simpler:
|
|
375
|
-
if
|
|
376
|
-
else: self.
|
|
374
|
+
if self._draw_blit: self.priceline.draw(renderer)
|
|
375
|
+
else: self.blitcandle.draw(renderer)
|
|
377
376
|
elif self.candle_on_ma:
|
|
378
377
|
self.macollection.draw(renderer)
|
|
379
|
-
if
|
|
380
|
-
elif 800 < Range or 9_999 < self.xmax: self.blitcandle.draw(renderer)
|
|
378
|
+
if self._draw_blit: self.blitcandle.draw(renderer)
|
|
381
379
|
else: self.candlecollection.draw(renderer)
|
|
382
380
|
else:
|
|
383
|
-
if
|
|
384
|
-
elif 800 < Range or 9_999 < self.xmax: self.blitcandle.draw(renderer)
|
|
381
|
+
if self._draw_blit: self.blitcandle.draw(renderer)
|
|
385
382
|
else: self.candlecollection.draw(renderer)
|
|
386
383
|
self.macollection.draw(renderer)
|
|
387
384
|
|
|
@@ -477,9 +474,13 @@ class ClickMixin(SimpleMixin):
|
|
|
477
474
|
self._change_coordinate()
|
|
478
475
|
if self.is_click:
|
|
479
476
|
nsub = self._navcoordinate[1] - self._navcoordinate[0]
|
|
480
|
-
if self.min_distance <= nsub: self._lim()
|
|
481
477
|
if self.is_move: self._set_navigator(*self._navcoordinate)
|
|
482
|
-
|
|
478
|
+
else:
|
|
479
|
+
self._draw_blit = 900 < nsub
|
|
480
|
+
if self.intx is not None: self._set_navigator(self._x_click, self.intx)
|
|
481
|
+
|
|
482
|
+
if self.min_distance <= nsub: self._lim()
|
|
483
|
+
|
|
483
484
|
self.navigator.draw(self.canvas.renderer)
|
|
484
485
|
self._draw_blit_artist()
|
|
485
486
|
self._slider_move_action(e)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: seolpyo-mplchart
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
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
|
|
@@ -45,3 +45,7 @@ Ethereum: 0x1c5fb8a5e0b1153cd4116c91736bd16fabf83520
|
|
|
45
45
|

|
|
46
46
|
|
|
47
47
|

|
|
48
|
+
|
|
49
|
+

|
|
50
|
+
|
|
51
|
+
<img src="https://github.com/user-attachments/assets/f1732891-d458-4c2d-a6bf-a17a4c549af6">
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
seolpyo_mplchart/__init__.py,sha256=
|
|
1
|
+
seolpyo_mplchart/__init__.py,sha256=FiuciCaX9lU12gwuDBYUNw0yLD06p4o7o19kR5jGips,5248
|
|
2
2
|
seolpyo_mplchart/base.py,sha256=vQ4OOBm3nGwjJ4wjDLaD_3LGxYzlP6AWpI6SZrZiwnQ,3600
|
|
3
3
|
seolpyo_mplchart/cursor.py,sha256=Ho57DqT0n8OJhGyqekTkzfap-dyIXXFKJys5Ydn-aJ4,18383
|
|
4
4
|
seolpyo_mplchart/draw.py,sha256=JMbbmyRrV2YHa3yXPLbIPCe0qr9Xf1zFCFYxecOtplI,13338
|
|
5
|
-
seolpyo_mplchart/slider.py,sha256=
|
|
5
|
+
seolpyo_mplchart/slider.py,sha256=YGa_SzmcSTd2FBnPoiLQhABPj1WKJppF8Myyf43BfAU,19683
|
|
6
6
|
seolpyo_mplchart/test.py,sha256=cW2hoaVbRtoSXlpmA4i1BKHBjI3-FAqYq__kryxkrC8,1007
|
|
7
7
|
seolpyo_mplchart/utils.py,sha256=-8cq4-WwiqKQxtwu3NPxOVTDDvoWH28tu4OTWr4hPTg,1208
|
|
8
8
|
seolpyo_mplchart/data/apple.txt,sha256=0izAfweu1lLsC0IwVthdVlo9reG8KGbKGTSX5knI5Zc,1380864
|
|
9
9
|
seolpyo_mplchart/data/samsung.txt,sha256=UejaSkbzr4E5K3lkelCT0yJiWUPfmViBEaTyoXyphIs,2476424
|
|
10
|
-
seolpyo_mplchart-0.1.
|
|
11
|
-
seolpyo_mplchart-0.1.
|
|
12
|
-
seolpyo_mplchart-0.1.
|
|
13
|
-
seolpyo_mplchart-0.1.
|
|
10
|
+
seolpyo_mplchart-0.1.2.dist-info/METADATA,sha256=PwVn5Jp7sGpDDqujOGW0ZsbX6H6AzGZfn8yhkvxxTxU,2378
|
|
11
|
+
seolpyo_mplchart-0.1.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
12
|
+
seolpyo_mplchart-0.1.2.dist-info/top_level.txt,sha256=KgqFn7rKWize7OjMaTCHxKm9ie6vqnyb5c8fN7y_tSo,17
|
|
13
|
+
seolpyo_mplchart-0.1.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|