thinknotdraw 0.0.1__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.
- thinknotdraw-0.0.1/PKG-INFO +38 -0
- thinknotdraw-0.0.1/README.md +28 -0
- thinknotdraw-0.0.1/setup.cfg +4 -0
- thinknotdraw-0.0.1/setup.py +21 -0
- thinknotdraw-0.0.1/thinknotdraw/__init__.py +7 -0
- thinknotdraw-0.0.1/thinknotdraw/functions.py +55 -0
- thinknotdraw-0.0.1/thinknotdraw.egg-info/PKG-INFO +38 -0
- thinknotdraw-0.0.1/thinknotdraw.egg-info/SOURCES.txt +10 -0
- thinknotdraw-0.0.1/thinknotdraw.egg-info/dependency_links.txt +1 -0
- thinknotdraw-0.0.1/thinknotdraw.egg-info/requires.txt +1 -0
- thinknotdraw-0.0.1/thinknotdraw.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: thinknotdraw
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: fast statistical draw in one line
|
|
5
|
+
Author: gorodok
|
|
6
|
+
Author-email: danyagorodnov@yandex.ru
|
|
7
|
+
Keywords: chart statistics visualisation
|
|
8
|
+
Requires-Python: >=3.6
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
|
|
11
|
+
# Speed File Library #
|
|
12
|
+
|
|
13
|
+
## What is this? ##
|
|
14
|
+
The module allows you to create python visualisation in just one line of code
|
|
15
|
+
|
|
16
|
+
## Quick Guide ##
|
|
17
|
+
The module is based on the following structure:
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
fast_draw(x, gtype='plot', kind='con', line=False, col=True, name='None')
|
|
21
|
+
|
|
22
|
+
x - your data
|
|
23
|
+
|
|
24
|
+
gtype (plot/func) - distribution plot or function
|
|
25
|
+
|
|
26
|
+
kind (con/dis) - discrete or continuous data
|
|
27
|
+
|
|
28
|
+
line (True/False) - create line
|
|
29
|
+
|
|
30
|
+
col (True/False) - create columns
|
|
31
|
+
|
|
32
|
+
name - name above ghaph
|
|
33
|
+
|
|
34
|
+
----
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## Developer ##
|
|
38
|
+
My site: [link](https://github.com/txnxity)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Speed File Library #
|
|
2
|
+
|
|
3
|
+
## What is this? ##
|
|
4
|
+
The module allows you to create python visualisation in just one line of code
|
|
5
|
+
|
|
6
|
+
## Quick Guide ##
|
|
7
|
+
The module is based on the following structure:
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
fast_draw(x, gtype='plot', kind='con', line=False, col=True, name='None')
|
|
11
|
+
|
|
12
|
+
x - your data
|
|
13
|
+
|
|
14
|
+
gtype (plot/func) - distribution plot or function
|
|
15
|
+
|
|
16
|
+
kind (con/dis) - discrete or continuous data
|
|
17
|
+
|
|
18
|
+
line (True/False) - create line
|
|
19
|
+
|
|
20
|
+
col (True/False) - create columns
|
|
21
|
+
|
|
22
|
+
name - name above ghaph
|
|
23
|
+
|
|
24
|
+
----
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## Developer ##
|
|
28
|
+
My site: [link](https://github.com/txnxity)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def readme():
|
|
5
|
+
with open('README.md', 'r') as f:
|
|
6
|
+
return f.read()
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
setup(
|
|
10
|
+
name='thinknotdraw',
|
|
11
|
+
version='0.0.1',
|
|
12
|
+
author='gorodok',
|
|
13
|
+
author_email='danyagorodnov@yandex.ru',
|
|
14
|
+
description='fast statistical draw in one line',
|
|
15
|
+
long_description=readme(),
|
|
16
|
+
long_description_content_type='text/markdown',
|
|
17
|
+
packages=find_packages(),
|
|
18
|
+
install_requires=['requests>=2.25.1'],
|
|
19
|
+
keywords='chart statistics visualisation',
|
|
20
|
+
python_requires='>=3.6'
|
|
21
|
+
)
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
def fast_draw(x, kind="con", gtype="plot", line=False, col=True, name=None):
|
|
2
|
+
if kind == "con":
|
|
3
|
+
if gtype == "plot":
|
|
4
|
+
if col == False:
|
|
5
|
+
plt.figure(figsize=(6, 4))
|
|
6
|
+
sns.kdeplot(data=x, bw_adjust=2, color="black", linewidth=1.5)
|
|
7
|
+
plt.xlabel("Значение")
|
|
8
|
+
plt.ylabel("Вероятность")
|
|
9
|
+
plt.grid(True, alpha=0.5)
|
|
10
|
+
plt.title(name)
|
|
11
|
+
plt.show()
|
|
12
|
+
elif col == True and line == True:
|
|
13
|
+
plt.figure(figsize=(6, 4))
|
|
14
|
+
sns.histplot(data=x, stat="density", color="gray")
|
|
15
|
+
sns.kdeplot(data=x, bw_adjust=2, color="black", linewidth=1.5)
|
|
16
|
+
plt.xlabel("Значение")
|
|
17
|
+
plt.ylabel("Вероятность")
|
|
18
|
+
plt.grid(True, alpha=0.5)
|
|
19
|
+
plt.title(name)
|
|
20
|
+
plt.show()
|
|
21
|
+
else:
|
|
22
|
+
plt.figure(figsize=(6, 4))
|
|
23
|
+
sns.histplot(data=x, stat="density", color="gray")
|
|
24
|
+
plt.xlabel("Значение")
|
|
25
|
+
plt.ylabel("Вероятность")
|
|
26
|
+
plt.grid(True, alpha=0.5)
|
|
27
|
+
plt.title(name)
|
|
28
|
+
plt.show()
|
|
29
|
+
|
|
30
|
+
else:
|
|
31
|
+
plt.figure(figsize=(6, 4))
|
|
32
|
+
sns.ecdfplot(data=x, color="black", linewidth=1.5)
|
|
33
|
+
plt.xlabel("Значение")
|
|
34
|
+
plt.ylabel("Вероятность")
|
|
35
|
+
plt.grid(True, alpha=0.5)
|
|
36
|
+
plt.title(name)
|
|
37
|
+
plt.show()
|
|
38
|
+
else:
|
|
39
|
+
if gtype == "plot":
|
|
40
|
+
values, counts = np.unique(x, return_counts=True)
|
|
41
|
+
p = counts / counts.sum()
|
|
42
|
+
plt.figure(figsize=(6, 4))
|
|
43
|
+
plt.bar(values, p, color="gray", edgecolor="black", width=0.8)
|
|
44
|
+
plt.xlabel("Значение")
|
|
45
|
+
plt.ylabel("Вероятность")
|
|
46
|
+
plt.title(name)
|
|
47
|
+
plt.show()
|
|
48
|
+
else:
|
|
49
|
+
plt.figure(figsize=(6, 4))
|
|
50
|
+
sns.ecdfplot(data=x, color="black", linewidth=1.5)
|
|
51
|
+
plt.xlabel("Значение")
|
|
52
|
+
plt.ylabel("Вероятность")
|
|
53
|
+
plt.grid(True, alpha=0.5)
|
|
54
|
+
plt.title(name)
|
|
55
|
+
plt.show()
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: thinknotdraw
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: fast statistical draw in one line
|
|
5
|
+
Author: gorodok
|
|
6
|
+
Author-email: danyagorodnov@yandex.ru
|
|
7
|
+
Keywords: chart statistics visualisation
|
|
8
|
+
Requires-Python: >=3.6
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
|
|
11
|
+
# Speed File Library #
|
|
12
|
+
|
|
13
|
+
## What is this? ##
|
|
14
|
+
The module allows you to create python visualisation in just one line of code
|
|
15
|
+
|
|
16
|
+
## Quick Guide ##
|
|
17
|
+
The module is based on the following structure:
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
fast_draw(x, gtype='plot', kind='con', line=False, col=True, name='None')
|
|
21
|
+
|
|
22
|
+
x - your data
|
|
23
|
+
|
|
24
|
+
gtype (plot/func) - distribution plot or function
|
|
25
|
+
|
|
26
|
+
kind (con/dis) - discrete or continuous data
|
|
27
|
+
|
|
28
|
+
line (True/False) - create line
|
|
29
|
+
|
|
30
|
+
col (True/False) - create columns
|
|
31
|
+
|
|
32
|
+
name - name above ghaph
|
|
33
|
+
|
|
34
|
+
----
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## Developer ##
|
|
38
|
+
My site: [link](https://github.com/txnxity)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
setup.cfg
|
|
3
|
+
setup.py
|
|
4
|
+
thinknotdraw/__init__.py
|
|
5
|
+
thinknotdraw/functions.py
|
|
6
|
+
thinknotdraw.egg-info/PKG-INFO
|
|
7
|
+
thinknotdraw.egg-info/SOURCES.txt
|
|
8
|
+
thinknotdraw.egg-info/dependency_links.txt
|
|
9
|
+
thinknotdraw.egg-info/requires.txt
|
|
10
|
+
thinknotdraw.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
requests>=2.25.1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
thinknotdraw
|