seolpyo-mplchart 1.4.0__tar.gz → 1.4.0.2__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.4.0/seolpyo_mplchart.egg-info → seolpyo_mplchart-1.4.0.2}/PKG-INFO +1 -1
- {seolpyo_mplchart-1.4.0 → seolpyo_mplchart-1.4.0.2}/pyproject.toml +1 -1
- {seolpyo_mplchart-1.4.0 → seolpyo_mplchart-1.4.0.2}/seolpyo_mplchart/_cursor.py +7 -5
- {seolpyo_mplchart-1.4.0 → seolpyo_mplchart-1.4.0.2}/seolpyo_mplchart/_slider.py +10 -1
- {seolpyo_mplchart-1.4.0 → seolpyo_mplchart-1.4.0.2/seolpyo_mplchart.egg-info}/PKG-INFO +1 -1
- {seolpyo_mplchart-1.4.0 → seolpyo_mplchart-1.4.0.2}/MANIFEST.in +0 -0
- {seolpyo_mplchart-1.4.0 → seolpyo_mplchart-1.4.0.2}/README.md +0 -0
- {seolpyo_mplchart-1.4.0 → seolpyo_mplchart-1.4.0.2}/seolpyo_mplchart/__init__.py +0 -0
- {seolpyo_mplchart-1.4.0 → seolpyo_mplchart-1.4.0.2}/seolpyo_mplchart/_base.py +0 -0
- {seolpyo_mplchart-1.4.0 → seolpyo_mplchart-1.4.0.2}/seolpyo_mplchart/_draw.py +0 -0
- {seolpyo_mplchart-1.4.0 → seolpyo_mplchart-1.4.0.2}/seolpyo_mplchart/test.py +0 -0
- {seolpyo_mplchart-1.4.0 → seolpyo_mplchart-1.4.0.2}/seolpyo_mplchart/utils.py +0 -0
- {seolpyo_mplchart-1.4.0 → seolpyo_mplchart-1.4.0.2}/seolpyo_mplchart.egg-info/SOURCES.txt +0 -0
- {seolpyo_mplchart-1.4.0 → seolpyo_mplchart-1.4.0.2}/seolpyo_mplchart.egg-info/dependency_links.txt +0 -0
- {seolpyo_mplchart-1.4.0 → seolpyo_mplchart-1.4.0.2}/seolpyo_mplchart.egg-info/requires.txt +0 -0
- {seolpyo_mplchart-1.4.0 → seolpyo_mplchart-1.4.0.2}/seolpyo_mplchart.egg-info/top_level.txt +0 -0
- {seolpyo_mplchart-1.4.0 → seolpyo_mplchart-1.4.0.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: seolpyo-mplchart
|
|
3
|
-
Version: 1.4.0
|
|
3
|
+
Version: 1.4.0.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
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
from fractions import Fraction
|
|
2
2
|
|
|
3
|
-
import matplotlib.pyplot as plt
|
|
4
3
|
from matplotlib.backend_bases import MouseEvent
|
|
5
4
|
from matplotlib.collections import LineCollection
|
|
6
5
|
from matplotlib.text import Text
|
|
@@ -277,7 +276,7 @@ class CrossLineMixin(EventMixin):
|
|
|
277
276
|
self.artist_text_price.set_y(y)
|
|
278
277
|
self.artist_text_price.draw(renderer)
|
|
279
278
|
|
|
280
|
-
if self.intx:
|
|
279
|
+
if self.intx is not None:
|
|
281
280
|
# 기준시간 표시
|
|
282
281
|
self.artist_text_date_volume.set_text(f'{self.df[self.date][self.intx]}')
|
|
283
282
|
self.artist_text_date_volume.set_x(x)
|
|
@@ -289,7 +288,7 @@ class CrossLineMixin(EventMixin):
|
|
|
289
288
|
self.artist_text_volume.set_y(y)
|
|
290
289
|
self.artist_text_volume.draw(renderer)
|
|
291
290
|
|
|
292
|
-
if self.intx:
|
|
291
|
+
if self.intx is not None:
|
|
293
292
|
# 기준시간 표시
|
|
294
293
|
self.artist_text_date_price.set_text(f'{self.df[self.date][self.intx]}')
|
|
295
294
|
self.artist_text_date_price.set_x(x)
|
|
@@ -307,7 +306,7 @@ class BoxMixin(CrossLineMixin):
|
|
|
307
306
|
y = e.ydata
|
|
308
307
|
|
|
309
308
|
renderer = self.figure.canvas.renderer
|
|
310
|
-
if self.intx:
|
|
309
|
+
if self.intx is not None:
|
|
311
310
|
if in_price_chart:
|
|
312
311
|
# 박스 크기
|
|
313
312
|
high = self.df['top_box_candle'][self.intx]
|
|
@@ -386,12 +385,15 @@ class InfoMixin(BoxMixin):
|
|
|
386
385
|
super().set_data(df, sort_df, calc_ma, set_candlecolor, set_volumecolor, calc_info, *args, **kwargs)
|
|
387
386
|
|
|
388
387
|
self._length_text = self.df[(self.volume if self.volume else self.high)].apply(lambda x: len(f'{x:,}')).max()
|
|
388
|
+
lenth_high = self.df[self.high].apply(lambda x: len(f'{x:,}')).max()
|
|
389
|
+
lenth_volume = 0 if not self.volume else self.df[self.volume].apply(lambda x: len(f'{x:,}')).max()
|
|
390
|
+
self._length_text = lenth_high if lenth_volume < lenth_high else lenth_volume
|
|
389
391
|
return
|
|
390
392
|
|
|
391
393
|
def _draw_box_artist(self, e, in_price_chart):
|
|
392
394
|
super()._draw_box_artist(e, in_price_chart)
|
|
393
395
|
|
|
394
|
-
if self.intx:
|
|
396
|
+
if self.intx is not None:
|
|
395
397
|
if self.in_candle: self._draw_candle_info_artist(e)
|
|
396
398
|
elif self.in_volumebar: self._draw_volume_info_artist(e)
|
|
397
399
|
return
|
|
@@ -3,7 +3,6 @@ from matplotlib.axes import Axes
|
|
|
3
3
|
from matplotlib.collections import LineCollection
|
|
4
4
|
from matplotlib.text import Text
|
|
5
5
|
from matplotlib.backend_bases import MouseEvent, MouseButton, cursors
|
|
6
|
-
import pandas as pd
|
|
7
6
|
|
|
8
7
|
from ._base import convert_unit
|
|
9
8
|
from ._cursor import BaseMixin as BM, Mixin as M
|
|
@@ -282,6 +281,16 @@ class MouseMoveMixin(BackgroundMixin):
|
|
|
282
281
|
in_slider = False
|
|
283
282
|
is_click_slider = False
|
|
284
283
|
|
|
284
|
+
def _erase_crossline(self):
|
|
285
|
+
boolen = super()._erase_crossline()
|
|
286
|
+
if boolen: return boolen
|
|
287
|
+
|
|
288
|
+
seg = self.collection_slider_vline.get_segments()
|
|
289
|
+
if seg:
|
|
290
|
+
self.collection_slider_vline.set_segments([])
|
|
291
|
+
return True
|
|
292
|
+
return False
|
|
293
|
+
|
|
285
294
|
def _on_move(self, e):
|
|
286
295
|
self._on_move_action(e)
|
|
287
296
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: seolpyo-mplchart
|
|
3
|
-
Version: 1.4.0
|
|
3
|
+
Version: 1.4.0.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
|
|
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-1.4.0 → seolpyo_mplchart-1.4.0.2}/seolpyo_mplchart.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|