seolpyo-mplchart 1.3.0__py3-none-any.whl → 1.3.1.1__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.

@@ -440,7 +440,7 @@ class InfoMixin(LineMixin):
440
440
  text = self.format_volumeinfo.format(
441
441
  dt=dt,
442
442
  volume=f'{v:>{self._length_text}}{self.unit_volume}',
443
- rate_volume=f'{vr:>{self._length_text}}%',
443
+ rate_volume=f'{vr:>{self._length_text}}',
444
444
  compare=f'{com:>{self._length_text}}{self.unit_volume}',
445
445
  )
446
446
  else: text = ''
seolpyo_mplchart/_draw.py CHANGED
@@ -491,6 +491,7 @@ class DrawMixin(EventMixin):
491
491
  self.vxmin, self.vxmax = (xmin, xmax + 1)
492
492
  if xmin < 0: xmin = 0
493
493
  if xmax < 0: xmax = 0
494
+ xmax += 1
494
495
  if xmin == xmax: xmax += 1
495
496
 
496
497
  ymin, ymax = (self.df[self.low][xmin:xmax].min(), self.df[self.high][xmin:xmax].max())
@@ -365,12 +365,10 @@ class ClickMixin(MouseMoveMixin):
365
365
  return
366
366
 
367
367
  def _on_click(self, e: MouseEvent):
368
- if self.in_slider: self._on_click_slider(e)
368
+ if self.in_slider and not self.is_click_slider and e.button == MouseButton.LEFT: self._on_click_slider(e)
369
369
  return
370
370
 
371
371
  def _on_click_slider(self, e: MouseEvent):
372
- if self.is_click_slider or e.button != MouseButton.LEFT: return
373
-
374
372
  self.background_with_nav_pre = self.background_with_nav
375
373
 
376
374
  self.is_click_slider = True
@@ -490,13 +488,15 @@ class ChartClickMixin(ReleaseMixin):
490
488
  is_click_chart = False
491
489
 
492
490
  def _on_click(self, e: MouseEvent):
493
- if self.in_price_chart or self.in_volume_chart: self._on_click_chart(e)
494
- elif self.in_slider: self._on_click_slider(e)
491
+ if (
492
+ (self.in_price_chart or self.in_volume_chart)
493
+ and not self.is_click_chart
494
+ and e.button == MouseButton.LEFT
495
+ ): self._on_click_chart(e)
496
+ elif self.in_slider and not self.is_click_slider and e.button == MouseButton.LEFT: self._on_click_slider(e)
495
497
  return
496
498
 
497
499
  def _on_click_chart(self, e: MouseEvent):
498
- if self.is_click_chart: return
499
-
500
500
  self.is_click_chart = True
501
501
  self._x_click = e.x
502
502
  self.figure.canvas.set_cursor(cursors.RESIZE_HORIZONTAL)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: seolpyo-mplchart
3
- Version: 1.3.0
3
+ Version: 1.3.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
@@ -1,8 +1,8 @@
1
1
  seolpyo_mplchart/__init__.py,sha256=Ccmoan8yd5m5ZiIXZWYIkL_LJ73clrlmWLdLX9naKDw,18233
2
2
  seolpyo_mplchart/_base.py,sha256=3iG4AVwHR_h3rh6c1oJahWt7NvBpBFrS0bUZd4PaHfY,3921
3
- seolpyo_mplchart/_cursor.py,sha256=7ZwE2UonuvttIT8KITIL334pSUzhfSM5tXNRZCKQqvA,20602
4
- seolpyo_mplchart/_draw.py,sha256=KTk9Hg8S5wVXyKnBDFiighHX_eCA3B3W2N--BdUxbuA,22377
5
- seolpyo_mplchart/_slider.py,sha256=WRf_ruD16uFGhc9v7QcWDG6K_ONDFrV_u5-lTXmaMXU,22930
3
+ seolpyo_mplchart/_cursor.py,sha256=CFaV6_OGKlJky3ypk0P4ryrUBi5cP16w_fn4UHe4acU,20601
4
+ seolpyo_mplchart/_draw.py,sha256=Ji8fVwwjFw99qvQZmaUXXGNrv7iLSpaK6UogR5sVBUQ,22396
5
+ seolpyo_mplchart/_slider.py,sha256=vkZsPymvsHmLWAK7MjbSGKIepiA5wI-XFgFax7AeVN0,23052
6
6
  seolpyo_mplchart/base.py,sha256=0qdImsIMPzTTkkHzPv479BVe_ojrn45FidGE46eT5x4,3797
7
7
  seolpyo_mplchart/cursor.py,sha256=qq1WJJa7vCE5C2XeGBECt2XqxR_WxfybZZ5u6zVx5Ps,20415
8
8
  seolpyo_mplchart/draw.py,sha256=MiqDhbMJOSlWD6qdAghsyrZwCixcwm4nfmiinvwtt-o,21520
@@ -11,7 +11,7 @@ seolpyo_mplchart/test.py,sha256=TFnIXphJsl-B7iIhBh7-PZKUz2Gjh7mwNwrk8aUS4SA,180
11
11
  seolpyo_mplchart/utils.py,sha256=a3XycRBTndrsjBw_1VKTxbSvOGpVYXHRK87v7azgRe8,1433
12
12
  seolpyo_mplchart/data/apple.txt,sha256=0izAfweu1lLsC0IwVthdVlo9reG8KGbKGTSX5knI5Zc,1380864
13
13
  seolpyo_mplchart/data/samsung.txt,sha256=UejaSkbzr4E5K3lkelCT0yJiWUPfmViBEaTyoXyphIs,2476424
14
- seolpyo_mplchart-1.3.0.dist-info/METADATA,sha256=AdgCp7V_E4Q-lGPNZmKu0YjtlcgMADtfOkx4kMtu_ew,2482
15
- seolpyo_mplchart-1.3.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
16
- seolpyo_mplchart-1.3.0.dist-info/top_level.txt,sha256=KgqFn7rKWize7OjMaTCHxKm9ie6vqnyb5c8fN7y_tSo,17
17
- seolpyo_mplchart-1.3.0.dist-info/RECORD,,
14
+ seolpyo_mplchart-1.3.1.1.dist-info/METADATA,sha256=WK1o6P6cyZNMZb1atoev0bULEc8H-kRxufmfQUkdP6I,2484
15
+ seolpyo_mplchart-1.3.1.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
16
+ seolpyo_mplchart-1.3.1.1.dist-info/top_level.txt,sha256=KgqFn7rKWize7OjMaTCHxKm9ie6vqnyb5c8fN7y_tSo,17
17
+ seolpyo_mplchart-1.3.1.1.dist-info/RECORD,,