seolpyo-mplchart 1.4.1.1__tar.gz → 1.4.1.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.1.1/seolpyo_mplchart.egg-info → seolpyo_mplchart-1.4.1.2}/PKG-INFO +1 -1
- {seolpyo_mplchart-1.4.1.1 → seolpyo_mplchart-1.4.1.2}/pyproject.toml +1 -1
- {seolpyo_mplchart-1.4.1.1 → seolpyo_mplchart-1.4.1.2}/seolpyo_mplchart/_draw.py +4 -5
- {seolpyo_mplchart-1.4.1.1 → seolpyo_mplchart-1.4.1.2}/seolpyo_mplchart/_slider.py +4 -2
- {seolpyo_mplchart-1.4.1.1 → seolpyo_mplchart-1.4.1.2}/seolpyo_mplchart/test.py +6 -16
- {seolpyo_mplchart-1.4.1.1 → seolpyo_mplchart-1.4.1.2/seolpyo_mplchart.egg-info}/PKG-INFO +1 -1
- {seolpyo_mplchart-1.4.1.1 → seolpyo_mplchart-1.4.1.2}/MANIFEST.in +0 -0
- {seolpyo_mplchart-1.4.1.1 → seolpyo_mplchart-1.4.1.2}/README.md +0 -0
- {seolpyo_mplchart-1.4.1.1 → seolpyo_mplchart-1.4.1.2}/seolpyo_mplchart/__init__.py +0 -0
- {seolpyo_mplchart-1.4.1.1 → seolpyo_mplchart-1.4.1.2}/seolpyo_mplchart/_base.py +0 -0
- {seolpyo_mplchart-1.4.1.1 → seolpyo_mplchart-1.4.1.2}/seolpyo_mplchart/_cursor.py +0 -0
- {seolpyo_mplchart-1.4.1.1 → seolpyo_mplchart-1.4.1.2}/seolpyo_mplchart/utils.py +0 -0
- {seolpyo_mplchart-1.4.1.1 → seolpyo_mplchart-1.4.1.2}/seolpyo_mplchart.egg-info/SOURCES.txt +0 -0
- {seolpyo_mplchart-1.4.1.1 → seolpyo_mplchart-1.4.1.2}/seolpyo_mplchart.egg-info/dependency_links.txt +0 -0
- {seolpyo_mplchart-1.4.1.1 → seolpyo_mplchart-1.4.1.2}/seolpyo_mplchart.egg-info/requires.txt +0 -0
- {seolpyo_mplchart-1.4.1.1 → seolpyo_mplchart-1.4.1.2}/seolpyo_mplchart.egg-info/top_level.txt +0 -0
- {seolpyo_mplchart-1.4.1.1 → seolpyo_mplchart-1.4.1.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: seolpyo-mplchart
|
|
3
|
-
Version: 1.4.1.
|
|
3
|
+
Version: 1.4.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
|
|
@@ -251,11 +251,11 @@ class CandleSegmentMixin(DataMixin):
|
|
|
251
251
|
tuple[tuple[float, float]]: candle segment
|
|
252
252
|
"""
|
|
253
253
|
return (
|
|
254
|
-
(x,
|
|
254
|
+
(x, top),
|
|
255
255
|
(left, top), (left, bottom),
|
|
256
256
|
(x, bottom), (x, low), (x, bottom),
|
|
257
257
|
(right, bottom), (right, top),
|
|
258
|
-
(x, top), (x, high)
|
|
258
|
+
(x, top), (x, high)
|
|
259
259
|
)
|
|
260
260
|
|
|
261
261
|
def _create_candle_segments(self):
|
|
@@ -411,9 +411,8 @@ class VolumeSegmentMixin(MaSegmentMixin):
|
|
|
411
411
|
tuple[tuple[float, float]]: volume bar segment
|
|
412
412
|
"""
|
|
413
413
|
return (
|
|
414
|
-
(left,
|
|
415
|
-
(right,
|
|
416
|
-
(left, top), (left, 0),
|
|
414
|
+
(left, 0), (left, top),
|
|
415
|
+
(right, top), (right, 0),
|
|
417
416
|
)
|
|
418
417
|
|
|
419
418
|
def _create_volume_segments(self):
|
|
@@ -131,7 +131,9 @@ class CollectionMixin(PlotMixin):
|
|
|
131
131
|
keys.append('x')
|
|
132
132
|
keys.append(f'ma{i}')
|
|
133
133
|
|
|
134
|
-
|
|
134
|
+
series = self.df[keys + ['x', self.close]]
|
|
135
|
+
series['x'] = series['x'] - 0.5
|
|
136
|
+
segment_slider = series.values
|
|
135
137
|
segment_slider = segment_slider.reshape(segment_slider.shape[0], len(self.list_ma)+1, 2).swapaxes(0, 1)
|
|
136
138
|
self.collection_slider.set_segments(segment_slider)
|
|
137
139
|
linewidth = [1 for _ in self.list_ma]
|
|
@@ -405,7 +407,7 @@ class ClickMixin(MouseMoveMixin):
|
|
|
405
407
|
|
|
406
408
|
navleft, navright = self.navcoordinate
|
|
407
409
|
x = e.xdata.__round__()
|
|
408
|
-
|
|
410
|
+
|
|
409
411
|
leftmax = navleft + self._navLineWidth_half
|
|
410
412
|
rightmin = navright - self._navLineWidth_half
|
|
411
413
|
|
|
@@ -13,7 +13,7 @@ import seolpyo_mplchart as mc
|
|
|
13
13
|
class Chart(mc.SliderChart):
|
|
14
14
|
format_candleinfo = mc.format_candleinfo_ko + '\nCustom info: {ci}'
|
|
15
15
|
format_volumeinfo = mc.format_volumeinfo_ko
|
|
16
|
-
min_distance =
|
|
16
|
+
min_distance = 2
|
|
17
17
|
|
|
18
18
|
def __init__(self, *args, **kwargs):
|
|
19
19
|
super().__init__(*args, **kwargs)
|
|
@@ -26,30 +26,20 @@ class Chart(mc.SliderChart):
|
|
|
26
26
|
kwargs['close'] = 'You can Change close price info.'
|
|
27
27
|
return kwargs
|
|
28
28
|
|
|
29
|
-
def
|
|
29
|
+
def get_candle_segm1ent(self, *, x, left, right, top, bottom, is_up, high, low):
|
|
30
30
|
if is_up:
|
|
31
31
|
return (
|
|
32
|
+
(x, top), (right, top), (x, top),
|
|
32
33
|
(x, high),
|
|
33
|
-
(x, top),
|
|
34
|
-
(right, top),
|
|
35
|
-
(x, top),
|
|
36
|
-
(x, bottom),
|
|
37
|
-
(left, bottom),
|
|
38
|
-
(x, bottom),
|
|
39
34
|
(x, low),
|
|
40
|
-
(x,
|
|
35
|
+
(x, bottom), (left, bottom), (x, bottom),
|
|
41
36
|
)
|
|
42
37
|
else:
|
|
43
38
|
return (
|
|
39
|
+
(x, bottom), (right, bottom), (x, bottom),
|
|
44
40
|
(x, high),
|
|
45
|
-
(x, bottom),
|
|
46
|
-
(right, bottom),
|
|
47
|
-
(x, bottom),
|
|
48
|
-
(x, top),
|
|
49
|
-
(left, top),
|
|
50
|
-
(x, top),
|
|
51
41
|
(x, low),
|
|
52
|
-
(x,
|
|
42
|
+
(x, top), (left, top), (x, top),
|
|
53
43
|
)
|
|
54
44
|
|
|
55
45
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: seolpyo-mplchart
|
|
3
|
-
Version: 1.4.1.
|
|
3
|
+
Version: 1.4.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
|
|
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.1.1 → seolpyo_mplchart-1.4.1.2}/seolpyo_mplchart.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{seolpyo_mplchart-1.4.1.1 → seolpyo_mplchart-1.4.1.2}/seolpyo_mplchart.egg-info/requires.txt
RENAMED
|
File without changes
|
{seolpyo_mplchart-1.4.1.1 → seolpyo_mplchart-1.4.1.2}/seolpyo_mplchart.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|