xython 4.3.2__tar.gz → 4.3.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.
Files changed (34) hide show
  1. {xython-4.3.2 → xython-4.3.3}/PKG-INFO +1 -1
  2. {xython-4.3.2 → xython-4.3.3}/pyproject.toml +1 -1
  3. {xython-4.3.2 → xython-4.3.3}/src/xython/__init__.py +1 -1
  4. {xython-4.3.2 → xython-4.3.3}/xython.egg-info/PKG-INFO +1 -1
  5. {xython-4.3.2 → xython-4.3.3}/xython.egg-info/SOURCES.txt +0 -10
  6. {xython-4.3.2 → xython-4.3.3}/xython.egg-info/top_level.txt +0 -1
  7. xython-4.3.2/later/xy_chart.py +0 -199
  8. xython-4.3.2/later/xy_util2.py +0 -1105
  9. xython-4.3.2/later/xy_web.py +0 -1123
  10. xython-4.3.2/src/pypi_uploader.py +0 -619
  11. xython-4.3.2/src/xython/starter.py +0 -226
  12. {xython-4.3.2 → xython-4.3.3}/MANIFEST.in +0 -0
  13. {xython-4.3.2 → xython-4.3.3}/README.md +0 -0
  14. {xython-4.3.2 → xython-4.3.3}/requirements.txt +0 -0
  15. {xython-4.3.2 → xython-4.3.3}/setup.cfg +0 -0
  16. {xython-4.3.2 → xython-4.3.3}/src/setup.py +0 -0
  17. {xython-4.3.2 → xython-4.3.3}/src/xython/xy_auto.py +0 -0
  18. {xython-4.3.2 → xython-4.3.3}/src/xython/xy_chrome.py +0 -0
  19. {xython-4.3.2 → xython-4.3.3}/src/xython/xy_color.py +0 -0
  20. {xython-4.3.2 → xython-4.3.3}/src/xython/xy_common.py +0 -0
  21. {xython-4.3.2 → xython-4.3.3}/src/xython/xy_db.py +0 -0
  22. {xython-4.3.2 → xython-4.3.3}/src/xython/xy_edge.py +0 -0
  23. {xython-4.3.2 → xython-4.3.3}/src/xython/xy_excel.py +0 -0
  24. {xython-4.3.2 → xython-4.3.3}/src/xython/xy_excel_event.py +0 -0
  25. {xython-4.3.2 → xython-4.3.3}/src/xython/xy_hwp.py +0 -0
  26. {xython-4.3.2 → xython-4.3.3}/src/xython/xy_list.py +0 -0
  27. {xython-4.3.2 → xython-4.3.3}/src/xython/xy_map.py +0 -0
  28. {xython-4.3.2 → xython-4.3.3}/src/xython/xy_outlook.py +0 -0
  29. {xython-4.3.2 → xython-4.3.3}/src/xython/xy_re.py +0 -0
  30. {xython-4.3.2 → xython-4.3.3}/src/xython/xy_time.py +0 -0
  31. {xython-4.3.2 → xython-4.3.3}/src/xython/xy_util.py +0 -0
  32. {xython-4.3.2 → xython-4.3.3}/src/xython/xy_word.py +0 -0
  33. {xython-4.3.2 → xython-4.3.3}/xython.egg-info/dependency_links.txt +0 -0
  34. {xython-4.3.2 → xython-4.3.3}/xython.egg-info/requires.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xython
3
- Version: 4.3.2
3
+ Version: 4.3.3
4
4
  Author-email: "SJ.Park" <sjpkorea@naver.com>
5
5
  Description-Content-Type: text/markdown
6
6
  Requires-Dist: korean_lunar_calendar
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "xython"
7
- version = "4.3.2"
7
+ version = "4.3.3"
8
8
  readme = {file = "README.md", content-type = "text/markdown"}
9
9
  authors = [
10
10
  {name = "SJ.Park", email = "sjpkorea@naver.com"}
@@ -6,7 +6,7 @@ import inspect
6
6
  import os
7
7
  import sys
8
8
 
9
- __version__ = '4.0.8' #1
9
+ __version__ = '4.3.3' #1
10
10
  real_path = os.path.dirname(os.path.abspath(__file__)).replace("\\","/") #2
11
11
  sys.path.append(real_path)
12
12
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xython
3
- Version: 4.3.2
3
+ Version: 4.3.3
4
4
  Author-email: "SJ.Park" <sjpkorea@naver.com>
5
5
  Description-Content-Type: text/markdown
6
6
  Requires-Dist: korean_lunar_calendar
@@ -2,13 +2,8 @@ MANIFEST.in
2
2
  README.md
3
3
  pyproject.toml
4
4
  requirements.txt
5
- ./later/xy_chart.py
6
- ./later/xy_util2.py
7
- ./later/xy_web.py
8
- ./src/pypi_uploader.py
9
5
  ./src/setup.py
10
6
  ./src/xython/__init__.py
11
- ./src/xython/starter.py
12
7
  ./src/xython/xy_auto.py
13
8
  ./src/xython/xy_chrome.py
14
9
  ./src/xython/xy_color.py
@@ -25,13 +20,8 @@ requirements.txt
25
20
  ./src/xython/xy_time.py
26
21
  ./src/xython/xy_util.py
27
22
  ./src/xython/xy_word.py
28
- later/xy_chart.py
29
- later/xy_util2.py
30
- later/xy_web.py
31
- src/pypi_uploader.py
32
23
  src/setup.py
33
24
  src/xython/__init__.py
34
- src/xython/starter.py
35
25
  src/xython/xy_auto.py
36
26
  src/xython/xy_chrome.py
37
27
  src/xython/xy_color.py
@@ -1,3 +1,2 @@
1
1
  dist
2
- later
3
2
  src
@@ -1,199 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- import matplotlib.pyplot as plt
3
- import xy_common
4
-
5
- class xy_chart:
6
- def __init__(self):
7
- self.chart = plt
8
- self.chart.rc("font", family="Malgun Gothic")
9
- self.vars = xy_common.xy_common().varx
10
- self.qty = 0
11
- self.color_set = ["b", "g", "r", "y", "k", "c", "m"]
12
- self.line_set = ["solid", "dashed", "dotted", "dashdot"]
13
- self.marker_set = [".", "o", "v", "x", "s", "*", "+", "d", "|", "_", "h"]
14
- self.line_datas = []
15
-
16
- def legend(self, x_position0to1=None, y_position0to1=None):
17
- #self.chart.legend()
18
- # plt.legend(loc=(0.0, 0.0))
19
- # plt.legend(loc=(0.5, 0.5))
20
- self.chart.legend(loc=(1.0, 1.0))
21
- #self.chart.legend(loc='best') # ncol = 1
22
- # plt.legend(loc='best', ncol=2) # ncol = 2
23
- # plt.legend(loc='best', ncol=2, fontsize=14, frameon=True, shadow=True)
24
-
25
- def set_x_range(self, xmin, xmax):
26
- """
27
- X축의 범위: [xmin, xmax]
28
- """
29
- self.chart.xlim([xmin, xmax])
30
-
31
- def set_y_range(self, ymin, ymax):
32
- """
33
- y축의 범위: [ymin, ymax]
34
- """
35
- self.chart.ylim([ymin, ymax])
36
-
37
- def set_xtick(self, input_list):
38
- """
39
-
40
- :param input_list:
41
- :return:
42
- """
43
- self.chart.xticks(input_list[0], input_list[1])
44
-
45
- def set_ytick(self, input_list):
46
- """
47
-
48
- :param input_list:
49
- :return:
50
- """
51
- self.chart.yticks(input_list[0], input_list[1])
52
-
53
- def set_title(self, input_text):
54
- self.chart.title(input_text)
55
-
56
- def ytitle(self, input_value=""):
57
- self.chart.ylabel(input_value)
58
-
59
- def xtitle(self, input_value=""):
60
- self.chart.xlabel(input_value)
61
-
62
-
63
- def line_one(self, x_l1d, y_l1d, color=None, width=None, line_style=None, marker=None, maker_size=None, label=None):
64
- """
65
- 한개의 선을 만드는 것이다
66
-
67
- :param x_data: x 좌표자료
68
- :param y_data: y 좌표자료
69
- :param color: 색, auto_unique를 사용하면, 기본으로 정한 색을 순서대로 하나씩 가져와서 사용한다
70
- :param width: 선의 넓이
71
- :param line_style: 선의 종류 (점선, 실선...)
72
- :param marker: 마커의 종류
73
- :param maker_size: 마커크기
74
- :param label: 레이블이름
75
- :return:
76
- """
77
-
78
- self.general_line_one(x_l1d, y_l1d, color, width, line_style, marker, maker_size, None, label, True, None)
79
-
80
- def general_line_one(self, x_l1d, y_l1d, color=None, width=None, line_style=None, alpha=None, marker=None, maker_size=None, marker_inside_color=None, label=None, antialiased=True, zorder=None):
81
- """
82
- 한개의 선을 만드는 것이다
83
-
84
- :param x_data: x 좌표자료
85
- :param y_data: y 좌표자료
86
- :param color: 색, auto_unique를 사용하면, 기본으로 정한 색을 순서대로 하나씩 가져와서 사용한다
87
- :param width: 선의 넓이
88
- :param line_style: 선의 종류 (점선, 실선...)
89
- :param alpha: 투명도 (0 ~ 1)
90
- :param marker: 마커의 종류
91
- :param maker_size: 마커크기
92
- :param marker_inside_color: 마커의 내부색
93
- :param label: 레이블이름
94
- :param antialiased: 선의 경계를 부드럽게 처리할지, 기본값은 True
95
- :param zorder: 선이 곂쳤을때 어느것이 위로 올것인지 설정
96
- :return:
97
- """
98
- self.qty = self.qty +1
99
- if color == "": color = self.color_set[self.qty]
100
- if line_style == "": line_style = self.line_set[self.qty]
101
- if marker == "": marker = self.marker_set[self.qty]
102
-
103
- self.chart.plot(x_l1d, y_l1d)
104
-
105
- def heat(self):
106
- import matplotlib.pyplot as plt
107
- import numpy as np
108
-
109
- arr = np.random.standard_normal((30, 40))
110
- # cmap = plt.get_cmap('PiYG')
111
- # cmap = plt.get_cmap('BuGn')
112
- # cmap = plt.get_cmap('Greys')
113
- cmap = plt.get_cmap('bwr')
114
-
115
- plt.matshow(arr, cmap=cmap)
116
- plt.colorbar()
117
- plt.show()
118
-
119
-
120
- def pie (self, ratio_l1d,y_l1d):
121
- self.chart.pie(ratio_l1d, labels=y_l1d, autopct='%.1f%%', startangle=260, counterclock=False)
122
-
123
-
124
- def scatter(self, x, y, size_l1d=None, color_l1d=None, marker=None, cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, edgecolors = None, plotnonfinite=False, *, data=None, **kwargs):
125
- """
126
-
127
- :param x:
128
- :param y:
129
- :param size_l1d: 원의 크기
130
- :param color_l1d: 원의 색상을 위한 숫자
131
- :param marker: 마커의 종류
132
- :param cmap: 컬러맴을 지정하는 것
133
- :param norm:
134
- :param vmin: 색상데이터의 최소, 최대(츠메과 같이 사용)
135
- :param vmax:
136
- :param alpha:
137
- :param linewidths:
138
- :param edgecolors:
139
- :param plotnonfinite:
140
- :param data:
141
- :param kwargs:
142
- :return:
143
- """
144
-
145
- self.chart.scatter(x, y, s=size_l1d, c=color_l1d)
146
-
147
-
148
- def bar_one(self, x_l1d, y2_l1d, color="", width="", y1_l1d_bottom="", alpha="", align="", edgecolor=""):
149
- """
150
- bar 차트는 기본 넓이는 0.8이다 그리고 정해진 x라인의 틱을 중심으로 0.4 만큼씩 영역을 차지한다
151
- one_bar(x_l1d, y2_l1d, y1_l1d_bottom, bgcolor, alpha, width, align, edgecolor) bar 의 각 윗부분에 값을 표시하고싶다면, bar 를 만든후 그 각 bar의 속성을 얻어와서 값을 쓰도록 한다 - x 좌파의 숫자 - 높이를 설정, y1이 0이면, 보통의 bar 가되며, 이것에 값이 있으면 거기부터 시작하는 bar가 된다 - bar 가 시작되는 위치 - bgcolor 배경색 - 투명도 0은 없음 bar 의 밑면의 넓이 align, x 좌표숫자의 tic 위치를 기준으로 어디를 기준으로 나타낼것인지 설정하는 것 edgecolor, bar의 테두리 색
152
- 여러 개일때는 x_l1d를 잘 사용해야 겹체지 않는다, auto 기능을 넣어서 사용하는것도 좋을 듯 bgcolor = auto_unique (자동생성이지만, 겹치지 않게) y1_l1d_bottom 은 몇 개없을땐, [[3,10]]이렇게 사용가능하도록 한다. 아니면 [0,0,10,0,0]처럼 만들던지
153
- """
154
- self.qty = self.qty + 1
155
- if color == "": color = self.color_set[self.qty]
156
-
157
- self.chart.bar(x_l1d, y2_l1d, color="", width="", y1_l1d_bottom="", alpha="", align="", edgecolor="")
158
-
159
-
160
- def colorbar(self):
161
- plt.colorbar()
162
-
163
- def xtick(self):
164
- plt.xticks(x="", years="")
165
-
166
- def show(self):
167
- self.chart.show()
168
-
169
- def grid(self):
170
- #plt.plot(x, x ** 2, color='#e35f62', marker='*', linewidth=2)
171
- #plt.plot(x, x ** 3, color='springgreen', marker='^', markersize=9)
172
- plt.grid(True, axis='y', color='red', alpha=0.5, linestyle='--')
173
-
174
-
175
- def write_text(self):
176
- # 5. 텍스트 삽입하기
177
- self.chart.text(1.5, 3.5, 'Max of Data B')
178
-
179
- def insert_shape(self):
180
- # 4. 사각형 그리기
181
- self.chart.add_patch(
182
- self.chart.patches.Rectangle(
183
- (1.8, 1.0), # (x, y)
184
- 0.4, 1.5, # width, height
185
- edgecolor='deeppink',
186
- facecolor='lightgray',
187
- fill=True,
188
- ))
189
-
190
- def set_tile_style(self):
191
- # plt.style.use('ggplot')
192
- # plt.style.use('classic')
193
- # plt.style.use('Solarize_Light2')
194
- # plt.style.use('default')
195
- plt.style.use('bmh')
196
-
197
- # plt.scatter(x, y, s=area, c=colors, alpha=0.5, cmap='Spectral')
198
-
199
-