seolpyo-mplchart 1.4.0.1__tar.gz → 1.4.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.

Files changed (17) hide show
  1. {seolpyo_mplchart-1.4.0.1/seolpyo_mplchart.egg-info → seolpyo_mplchart-1.4.0.3}/PKG-INFO +1 -1
  2. {seolpyo_mplchart-1.4.0.1 → seolpyo_mplchart-1.4.0.3}/pyproject.toml +1 -1
  3. {seolpyo_mplchart-1.4.0.1 → seolpyo_mplchart-1.4.0.3}/seolpyo_mplchart/_cursor.py +7 -0
  4. {seolpyo_mplchart-1.4.0.1 → seolpyo_mplchart-1.4.0.3}/seolpyo_mplchart/_slider.py +1 -1
  5. {seolpyo_mplchart-1.4.0.1 → seolpyo_mplchart-1.4.0.3/seolpyo_mplchart.egg-info}/PKG-INFO +1 -1
  6. {seolpyo_mplchart-1.4.0.1 → seolpyo_mplchart-1.4.0.3}/MANIFEST.in +0 -0
  7. {seolpyo_mplchart-1.4.0.1 → seolpyo_mplchart-1.4.0.3}/README.md +0 -0
  8. {seolpyo_mplchart-1.4.0.1 → seolpyo_mplchart-1.4.0.3}/seolpyo_mplchart/__init__.py +0 -0
  9. {seolpyo_mplchart-1.4.0.1 → seolpyo_mplchart-1.4.0.3}/seolpyo_mplchart/_base.py +0 -0
  10. {seolpyo_mplchart-1.4.0.1 → seolpyo_mplchart-1.4.0.3}/seolpyo_mplchart/_draw.py +0 -0
  11. {seolpyo_mplchart-1.4.0.1 → seolpyo_mplchart-1.4.0.3}/seolpyo_mplchart/test.py +0 -0
  12. {seolpyo_mplchart-1.4.0.1 → seolpyo_mplchart-1.4.0.3}/seolpyo_mplchart/utils.py +0 -0
  13. {seolpyo_mplchart-1.4.0.1 → seolpyo_mplchart-1.4.0.3}/seolpyo_mplchart.egg-info/SOURCES.txt +0 -0
  14. {seolpyo_mplchart-1.4.0.1 → seolpyo_mplchart-1.4.0.3}/seolpyo_mplchart.egg-info/dependency_links.txt +0 -0
  15. {seolpyo_mplchart-1.4.0.1 → seolpyo_mplchart-1.4.0.3}/seolpyo_mplchart.egg-info/requires.txt +0 -0
  16. {seolpyo_mplchart-1.4.0.1 → seolpyo_mplchart-1.4.0.3}/seolpyo_mplchart.egg-info/top_level.txt +0 -0
  17. {seolpyo_mplchart-1.4.0.1 → seolpyo_mplchart-1.4.0.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: seolpyo-mplchart
3
- Version: 1.4.0.1
3
+ Version: 1.4.0.3
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
@@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"
8
8
 
9
9
  [project]
10
10
  name = "seolpyo-mplchart"
11
- version = "1.4.0.1"
11
+ version = "1.4.0.3"
12
12
  dependencies = [
13
13
  "matplotlib >= 3.7.0",
14
14
  "pandas >= 2.0.0",
@@ -384,7 +384,14 @@ class InfoMixin(BoxMixin):
384
384
  def set_data(self, df, sort_df=True, calc_ma=True, set_candlecolor=True, set_volumecolor=True, calc_info=True, *args, **kwargs):
385
385
  super().set_data(df, sort_df, calc_ma, set_candlecolor, set_volumecolor, calc_info, *args, **kwargs)
386
386
 
387
+ self._set_length_text()
388
+ return
389
+
390
+ def _set_length_text(self):
387
391
  self._length_text = self.df[(self.volume if self.volume else self.high)].apply(lambda x: len(f'{x:,}')).max()
392
+ lenth_high = self.df[self.high].apply(lambda x: len(f'{x:,}')).max()
393
+ lenth_volume = 0 if not self.volume else self.df[self.volume].apply(lambda x: len(f'{x:,}')).max()
394
+ self._length_text = lenth_high if lenth_volume < lenth_high else lenth_volume
388
395
  return
389
396
 
390
397
  def _draw_box_artist(self, e, in_price_chart):
@@ -241,7 +241,7 @@ class DataMixin(NavigatorMixin):
241
241
  self._set_slider_lim()
242
242
  self._set_navigator(*self.navcoordinate)
243
243
 
244
- self._length_text = self.df[(self.volume if self.volume else self.high)].apply(lambda x: len(f'{x:,}')).max()
244
+ self._set_length_text()
245
245
  return
246
246
 
247
247
  def get_default_lim(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: seolpyo-mplchart
3
- Version: 1.4.0.1
3
+ Version: 1.4.0.3
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