plotilleresample 0.4__tar.gz → 0.5__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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Carlos A. Planchón
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,78 @@
1
+ Metadata-Version: 2.4
2
+ Name: plotilleresample
3
+ Version: 0.5
4
+ Summary: Python module to resample datasets before plotting with Plotille.
5
+ Author-email: "Carlos A. Planchón" <carlosandresplanchonprestes@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Romepage, https://github.com/carlosplanchon/plotilleresample
8
+ Keywords: plotting,ascii,math,resample
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Topic :: Software Development :: Build Tools
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Requires-Python: >=3.10
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Dynamic: license-file
21
+
22
+ # plotilleresample
23
+ *Python module to resample datasets before plotting with Plotille.*
24
+
25
+ ## Installation
26
+ ### Install with UV:
27
+ ```
28
+ uv add plotilleresample
29
+ ```
30
+
31
+ ## Usage
32
+ ```
33
+ #!/usr/bin/env python3
34
+
35
+ import plotille
36
+
37
+ import plotilleresample
38
+
39
+ import math
40
+
41
+ from shutil import get_terminal_size
42
+
43
+ from vtclear import clear_screen
44
+
45
+ import numpy as np
46
+
47
+
48
+ w = get_terminal_size().columns - 20
49
+ h = get_terminal_size().lines - 7
50
+
51
+ r = 10000
52
+ res = np.random.normal(size=r)
53
+
54
+ # Here I'm testing stuffs with histograms.
55
+ # input("Histogram:")
56
+ # print(plotille.histogram(res, bins=w*2, width=w, height=h))
57
+
58
+ X = [i for i in range(r)]
59
+ Y = [math.sin(i / 100) * 100 for i in range(r)]
60
+
61
+ print(" · Scatter...")
62
+ xs, ys = plotilleresample.dim_reduction_scatter(X, Y, w, h)
63
+ print(" · Plot...")
64
+ xp, yp = plotilleresample.dim_reduction_plot(X, Y, w, h)
65
+ print(" --- READY ---")
66
+
67
+ print(f"Len plot.x {len(xp)}")
68
+
69
+ print(f"Len scatter.x {len(xs)}")
70
+
71
+ input("Plot:")
72
+ clear_screen()
73
+ print(plotille.plot(xp, yp, w, h))
74
+
75
+ input("Scatter:")
76
+ clear_screen()
77
+ print(plotille.plot(xs, ys, w, h))
78
+ ```
@@ -1,13 +1,10 @@
1
1
  # plotilleresample
2
- *Python3 module to resample datasets before plotting with Plotille.*
3
-
4
- # Rationale
5
- I want to optimize plot and scatter function of plotille.
2
+ *Python module to resample datasets before plotting with Plotille.*
6
3
 
7
4
  ## Installation
8
- ### Install with pip
5
+ ### Install with UV:
9
6
  ```
10
- pip3 install -U servusresample
7
+ uv add plotilleresample
11
8
  ```
12
9
 
13
10
  ## Usage
@@ -16,7 +13,7 @@ pip3 install -U servusresample
16
13
 
17
14
  import plotille
18
15
 
19
- import plotilledimreduction
16
+ import plotilleresample
20
17
 
21
18
  import math
22
19
 
@@ -41,9 +38,9 @@ X = [i for i in range(r)]
41
38
  Y = [math.sin(i / 100) * 100 for i in range(r)]
42
39
 
43
40
  print(" · Scatter...")
44
- xs, ys = plotilledimreduction.dim_reduction_scatter(X, Y, w, h)
41
+ xs, ys = plotilleresample.dim_reduction_scatter(X, Y, w, h)
45
42
  print(" · Plot...")
46
- xp, yp = plotilledimreduction.dim_reduction_plot(X, Y, w, h)
43
+ xp, yp = plotilleresample.dim_reduction_plot(X, Y, w, h)
47
44
  print(" --- READY ---")
48
45
 
49
46
  print(f"Len plot.x {len(xp)}")
@@ -1,11 +1,9 @@
1
1
  #!/usr/bin/env python3
2
2
 
3
- from typing import List, Tuple
4
-
5
3
  # This value is used to avoid Nyquist related problems.
6
4
  plot_multiplier = 4
7
5
 
8
- list_val = List[int]
6
+ list_val = list[int]
9
7
 
10
8
 
11
9
  def resample_plot(
@@ -13,7 +11,7 @@ def resample_plot(
13
11
  Y: list_val,
14
12
  width: int = 80,
15
13
  height: int = 40
16
- ) -> Tuple[list_val, list_val]:
14
+ ) -> tuple[list_val, list_val]:
17
15
  """
18
16
 
19
17
  :param X: list_val: List of X values.
@@ -46,7 +44,7 @@ def resample_scatter(
46
44
  Y: list_val,
47
45
  width: int = 80,
48
46
  height: int = 40
49
- ) -> Tuple[list_val, list_val]:
47
+ ) -> tuple[list_val, list_val]:
50
48
  """
51
49
 
52
50
  :param X: list_val: List of X values.
@@ -0,0 +1,78 @@
1
+ Metadata-Version: 2.4
2
+ Name: plotilleresample
3
+ Version: 0.5
4
+ Summary: Python module to resample datasets before plotting with Plotille.
5
+ Author-email: "Carlos A. Planchón" <carlosandresplanchonprestes@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Romepage, https://github.com/carlosplanchon/plotilleresample
8
+ Keywords: plotting,ascii,math,resample
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Topic :: Software Development :: Build Tools
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Requires-Python: >=3.10
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Dynamic: license-file
21
+
22
+ # plotilleresample
23
+ *Python module to resample datasets before plotting with Plotille.*
24
+
25
+ ## Installation
26
+ ### Install with UV:
27
+ ```
28
+ uv add plotilleresample
29
+ ```
30
+
31
+ ## Usage
32
+ ```
33
+ #!/usr/bin/env python3
34
+
35
+ import plotille
36
+
37
+ import plotilleresample
38
+
39
+ import math
40
+
41
+ from shutil import get_terminal_size
42
+
43
+ from vtclear import clear_screen
44
+
45
+ import numpy as np
46
+
47
+
48
+ w = get_terminal_size().columns - 20
49
+ h = get_terminal_size().lines - 7
50
+
51
+ r = 10000
52
+ res = np.random.normal(size=r)
53
+
54
+ # Here I'm testing stuffs with histograms.
55
+ # input("Histogram:")
56
+ # print(plotille.histogram(res, bins=w*2, width=w, height=h))
57
+
58
+ X = [i for i in range(r)]
59
+ Y = [math.sin(i / 100) * 100 for i in range(r)]
60
+
61
+ print(" · Scatter...")
62
+ xs, ys = plotilleresample.dim_reduction_scatter(X, Y, w, h)
63
+ print(" · Plot...")
64
+ xp, yp = plotilleresample.dim_reduction_plot(X, Y, w, h)
65
+ print(" --- READY ---")
66
+
67
+ print(f"Len plot.x {len(xp)}")
68
+
69
+ print(f"Len scatter.x {len(xs)}")
70
+
71
+ input("Plot:")
72
+ clear_screen()
73
+ print(plotille.plot(xp, yp, w, h))
74
+
75
+ input("Scatter:")
76
+ clear_screen()
77
+ print(plotille.plot(xs, ys, w, h))
78
+ ```
@@ -1,5 +1,6 @@
1
+ LICENSE
1
2
  README.md
2
- setup.py
3
+ pyproject.toml
3
4
  plotilleresample/__init__.py
4
5
  plotilleresample/plotilleresample.py
5
6
  plotilleresample.egg-info/PKG-INFO
@@ -0,0 +1,36 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77.0.3", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "plotilleresample"
7
+ version = "0.5"
8
+ description = "Python module to resample datasets before plotting with Plotille."
9
+ readme = "README.md"
10
+
11
+ license = "MIT"
12
+ license-files = ["LICENSE"]
13
+
14
+ authors = [
15
+ {name = "Carlos A. Planchón", email = "carlosandresplanchonprestes@gmail.com"}
16
+ ]
17
+ keywords = ["plotting", "ascii", "math", "resample"]
18
+ classifiers = [
19
+ "Intended Audience :: Developers",
20
+ "Topic :: Software Development :: Build Tools",
21
+ "Programming Language :: Python :: 3",
22
+ "Programming Language :: Python :: 3.10",
23
+ "Programming Language :: Python :: 3.11",
24
+ "Programming Language :: Python :: 3.12",
25
+ "Programming Language :: Python :: 3.13",
26
+ "Programming Language :: Python :: 3.14"
27
+
28
+ ]
29
+ requires-python = ">=3.10"
30
+
31
+ [project.urls]
32
+ Romepage = "https://github.com/carlosplanchon/plotilleresample"
33
+
34
+ [tool.setuptools.packages.find]
35
+ where = ["."]
36
+ include = ["plotilleresample*"]
@@ -1,81 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: plotilleresample
3
- Version: 0.4
4
- Summary: Python3 module to resample datasetsbefore plotting with Plotille.
5
- Home-page: https://github.com/carlosplanchon/plotilleresample
6
- Author: Carlos A. Planchón
7
- Author-email: bubbledoloresuruguay2@gmail.com
8
- License: GPL3
9
- Download-URL: https://github.com/carlosplanchon/plotilleresample/archive/v0.4.tar.gz
10
- Description: # plotilleresample
11
- *Python3 module to resample datasets before plotting with Plotille.*
12
-
13
- # Rationale
14
- I want to optimize plot and scatter function of plotille.
15
-
16
- ## Installation
17
- ### Install with pip
18
- ```
19
- pip3 install -U servusresample
20
- ```
21
-
22
- ## Usage
23
- ```
24
- #!/usr/bin/env python3
25
-
26
- import plotille
27
-
28
- import plotilledimreduction
29
-
30
- import math
31
-
32
- from shutil import get_terminal_size
33
-
34
- from vtclear import clear_screen
35
-
36
- import numpy as np
37
-
38
-
39
- w = get_terminal_size().columns - 20
40
- h = get_terminal_size().lines - 7
41
-
42
- r = 10000
43
- res = np.random.normal(size=r)
44
-
45
- # Here I'm testing stuffs with histograms.
46
- # input("Histogram:")
47
- # print(plotille.histogram(res, bins=w*2, width=w, height=h))
48
-
49
- X = [i for i in range(r)]
50
- Y = [math.sin(i / 100) * 100 for i in range(r)]
51
-
52
- print(" · Scatter...")
53
- xs, ys = plotilledimreduction.dim_reduction_scatter(X, Y, w, h)
54
- print(" · Plot...")
55
- xp, yp = plotilledimreduction.dim_reduction_plot(X, Y, w, h)
56
- print(" --- READY ---")
57
-
58
- print(f"Len plot.x {len(xp)}")
59
-
60
- print(f"Len scatter.x {len(xs)}")
61
-
62
- input("Plot:")
63
- clear_screen()
64
- print(plotille.plot(xp, yp, w, h))
65
-
66
- input("Scatter:")
67
- clear_screen()
68
- print(plotille.plot(xs, ys, w, h))
69
- ```
70
-
71
- Keywords: plotting,ascii,math,resample
72
- Platform: UNKNOWN
73
- Classifier: Intended Audience :: Developers
74
- Classifier: Topic :: Software Development :: Build Tools
75
- Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
76
- Classifier: Programming Language :: Python :: 3
77
- Classifier: Programming Language :: Python :: 3.4
78
- Classifier: Programming Language :: Python :: 3.5
79
- Classifier: Programming Language :: Python :: 3.6
80
- Classifier: Programming Language :: Python :: 3.7
81
- Description-Content-Type: text/markdown
@@ -1,81 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: plotilleresample
3
- Version: 0.4
4
- Summary: Python3 module to resample datasetsbefore plotting with Plotille.
5
- Home-page: https://github.com/carlosplanchon/plotilleresample
6
- Author: Carlos A. Planchón
7
- Author-email: bubbledoloresuruguay2@gmail.com
8
- License: GPL3
9
- Download-URL: https://github.com/carlosplanchon/plotilleresample/archive/v0.4.tar.gz
10
- Description: # plotilleresample
11
- *Python3 module to resample datasets before plotting with Plotille.*
12
-
13
- # Rationale
14
- I want to optimize plot and scatter function of plotille.
15
-
16
- ## Installation
17
- ### Install with pip
18
- ```
19
- pip3 install -U servusresample
20
- ```
21
-
22
- ## Usage
23
- ```
24
- #!/usr/bin/env python3
25
-
26
- import plotille
27
-
28
- import plotilledimreduction
29
-
30
- import math
31
-
32
- from shutil import get_terminal_size
33
-
34
- from vtclear import clear_screen
35
-
36
- import numpy as np
37
-
38
-
39
- w = get_terminal_size().columns - 20
40
- h = get_terminal_size().lines - 7
41
-
42
- r = 10000
43
- res = np.random.normal(size=r)
44
-
45
- # Here I'm testing stuffs with histograms.
46
- # input("Histogram:")
47
- # print(plotille.histogram(res, bins=w*2, width=w, height=h))
48
-
49
- X = [i for i in range(r)]
50
- Y = [math.sin(i / 100) * 100 for i in range(r)]
51
-
52
- print(" · Scatter...")
53
- xs, ys = plotilledimreduction.dim_reduction_scatter(X, Y, w, h)
54
- print(" · Plot...")
55
- xp, yp = plotilledimreduction.dim_reduction_plot(X, Y, w, h)
56
- print(" --- READY ---")
57
-
58
- print(f"Len plot.x {len(xp)}")
59
-
60
- print(f"Len scatter.x {len(xs)}")
61
-
62
- input("Plot:")
63
- clear_screen()
64
- print(plotille.plot(xp, yp, w, h))
65
-
66
- input("Scatter:")
67
- clear_screen()
68
- print(plotille.plot(xs, ys, w, h))
69
- ```
70
-
71
- Keywords: plotting,ascii,math,resample
72
- Platform: UNKNOWN
73
- Classifier: Intended Audience :: Developers
74
- Classifier: Topic :: Software Development :: Build Tools
75
- Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
76
- Classifier: Programming Language :: Python :: 3
77
- Classifier: Programming Language :: Python :: 3.4
78
- Classifier: Programming Language :: Python :: 3.5
79
- Classifier: Programming Language :: Python :: 3.6
80
- Classifier: Programming Language :: Python :: 3.7
81
- Description-Content-Type: text/markdown
@@ -1,34 +0,0 @@
1
- #!/usr/bin/env python3
2
-
3
- from setuptools import setup
4
-
5
-
6
- with open("README.md", "r") as f:
7
- readme = f.read()
8
-
9
- setup(
10
- name="plotilleresample",
11
- packages=["plotilleresample"],
12
- version="0.4",
13
- license="GPL3",
14
- description="Python3 module to resample datasets"
15
- "before plotting with Plotille.",
16
- long_description=readme,
17
- long_description_content_type="text/markdown",
18
- author="Carlos A. Planchón",
19
- author_email="bubbledoloresuruguay2@gmail.com",
20
- url="https://github.com/carlosplanchon/plotilleresample",
21
- download_url="https://github.com/carlosplanchon/"
22
- "plotilleresample/archive/v0.4.tar.gz",
23
- keywords=["plotting", "ascii", "math", "resample"],
24
- classifiers=[
25
- "Intended Audience :: Developers",
26
- "Topic :: Software Development :: Build Tools",
27
- "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
28
- "Programming Language :: Python :: 3",
29
- "Programming Language :: Python :: 3.4",
30
- "Programming Language :: Python :: 3.5",
31
- "Programming Language :: Python :: 3.6",
32
- "Programming Language :: Python :: 3.7",
33
- ],
34
- )
File without changes