gsplot 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.
- gsplot-0.0.1/LICENSE +21 -0
- gsplot-0.0.1/PKG-INFO +82 -0
- gsplot-0.0.1/README.md +61 -0
- gsplot-0.0.1/gsplot/__init__.py +98 -0
- gsplot-0.0.1/gsplot/base/base.py +518 -0
- gsplot-0.0.1/gsplot/base/base_alias_validator.py +155 -0
- gsplot-0.0.1/gsplot/color/colormap.py +218 -0
- gsplot-0.0.1/gsplot/config/config.py +422 -0
- gsplot-0.0.1/gsplot/data/load_file.py +188 -0
- gsplot-0.0.1/gsplot/figure/axes.py +361 -0
- gsplot-0.0.1/gsplot/figure/axes_base.py +952 -0
- gsplot-0.0.1/gsplot/figure/figure_tools.py +66 -0
- gsplot-0.0.1/gsplot/figure/show.py +205 -0
- gsplot-0.0.1/gsplot/figure/store.py +119 -0
- gsplot-0.0.1/gsplot/hello_world/hello_world.py +23 -0
- gsplot-0.0.1/gsplot/logger.py +155 -0
- gsplot-0.0.1/gsplot/path/path.py +227 -0
- gsplot-0.0.1/gsplot/plot/line.py +328 -0
- gsplot-0.0.1/gsplot/plot/line_base.py +272 -0
- gsplot-0.0.1/gsplot/plot/line_colormap_base.py +120 -0
- gsplot-0.0.1/gsplot/plot/line_colormap_dashed.py +540 -0
- gsplot-0.0.1/gsplot/plot/line_colormap_solid.py +289 -0
- gsplot-0.0.1/gsplot/plot/scatter.py +228 -0
- gsplot-0.0.1/gsplot/plot/scatter_colormap.py +296 -0
- gsplot-0.0.1/gsplot/style/graph.py +466 -0
- gsplot-0.0.1/gsplot/style/label.py +866 -0
- gsplot-0.0.1/gsplot/style/legend.py +469 -0
- gsplot-0.0.1/gsplot/style/legend_colormap.py +381 -0
- gsplot-0.0.1/gsplot/style/ticks.py +167 -0
- gsplot-0.0.1/gsplot/version.py +2 -0
- gsplot-0.0.1/pyproject.toml +46 -0
gsplot-0.0.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Soichiro Yamane
|
|
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.
|
gsplot-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: gsplot
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: General-scientific plot based on matplotlib
|
|
5
|
+
Author: Giordano Mattoni
|
|
6
|
+
Author-email: mattoni@scphys.kyoto-u.ac.jp
|
|
7
|
+
Requires-Python: >=3.10,<4.0
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Requires-Dist: matplotlib (>=3.9.0,<4.0.0)
|
|
14
|
+
Requires-Dist: numpy (>=1.26.4,<2.0.0)
|
|
15
|
+
Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
|
|
16
|
+
Requires-Dist: rich (>=13.9.4,<14.0.0)
|
|
17
|
+
Requires-Dist: types-pyyaml (>=6.0.12.20240917,<7.0.0.0)
|
|
18
|
+
Project-URL: Homepage, https://soichiroyamane.github.io/gsplot/
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
21
|
+
# gsplot 📈
|
|
22
|
+
|
|
23
|
+
<div align="center">
|
|
24
|
+
<img src="docs/_static/logo_gsplot.svg" alt="logo_gsplot" width="100">
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
[](https://github.com/SoichiroYamane/gsplot/actions/workflows/gh-pages-sphinx.yml)
|
|
28
|
+

|
|
29
|
+

|
|
30
|
+
----------------
|
|
31
|
+
|
|
32
|
+
<p align="center" style="font-weight: bold; font-size: 1.2em; margin: 20px 0;">
|
|
33
|
+
<a href="https://soichiroyamane.github.io/gsplot/" style="text-decoration: none;">Docs</a> |
|
|
34
|
+
<a href="#authors" style="text-decoration: none;">Authors</a> |
|
|
35
|
+
<a href="#license" style="text-decoration: none;">License</a>
|
|
36
|
+
</p>
|
|
37
|
+
|
|
38
|
+
Welcome to **gsplot** (general-scientific plot), a toolkit designed to enhance the capabilities of data visualization based on [matplotlib](https://matplotlib.org). This package is specifically tailored for creating high-quality figures aimed at the scientific field.
|
|
39
|
+
|
|
40
|
+
## Features ✨
|
|
41
|
+
|
|
42
|
+
- **Better Plot, Less Code**: Simplify the process of creating high-quality figures 💤
|
|
43
|
+
- **Compatibility**: Compatible with [matplotlib](https://matplotlib.org) 📊
|
|
44
|
+
- **Customization**: Customize your configuration to fit your needs 🎨
|
|
45
|
+
- **Reproducibility**: Save your package status to make plots reproducible 📦
|
|
46
|
+
|
|
47
|
+
### Example using gsplot 📈
|
|
48
|
+
|
|
49
|
+
[See more details](https://soichiroyamane.github.io/gsplot/guides/demo/4_paper_plot.html)
|
|
50
|
+
|
|
51
|
+

|
|
52
|
+
|
|
53
|
+
### Example with Python REPL 🐍 and neovim 🌟
|
|
54
|
+
|
|
55
|
+
[See more details](https://soichiroyamane.github.io/gsplot/guides/demo/13_REPL.html)
|
|
56
|
+

|
|
57
|
+
|
|
58
|
+
## Getting Started 🚀
|
|
59
|
+
|
|
60
|
+
### Installation
|
|
61
|
+
|
|
62
|
+
To use **gsplot**, ensure that you have `Python 3.10+` installed. You can install the package using `pip`:
|
|
63
|
+
|
|
64
|
+
#### important
|
|
65
|
+
|
|
66
|
+
**⚠️ This package has not been published yet**
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
pip install gsplot
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Authors 👥
|
|
73
|
+
|
|
74
|
+
This repository was forked from codes developed by Giordano Mattoni.
|
|
75
|
+
|
|
76
|
+
- Giordano Mattoni
|
|
77
|
+
- Soichiro Yamane
|
|
78
|
+
|
|
79
|
+
## License 📜
|
|
80
|
+
|
|
81
|
+
This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.
|
|
82
|
+
|
gsplot-0.0.1/README.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# gsplot 📈
|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
<img src="docs/_static/logo_gsplot.svg" alt="logo_gsplot" width="100">
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
[](https://github.com/SoichiroYamane/gsplot/actions/workflows/gh-pages-sphinx.yml)
|
|
8
|
+

|
|
9
|
+

|
|
10
|
+
----------------
|
|
11
|
+
|
|
12
|
+
<p align="center" style="font-weight: bold; font-size: 1.2em; margin: 20px 0;">
|
|
13
|
+
<a href="https://soichiroyamane.github.io/gsplot/" style="text-decoration: none;">Docs</a> |
|
|
14
|
+
<a href="#authors" style="text-decoration: none;">Authors</a> |
|
|
15
|
+
<a href="#license" style="text-decoration: none;">License</a>
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
Welcome to **gsplot** (general-scientific plot), a toolkit designed to enhance the capabilities of data visualization based on [matplotlib](https://matplotlib.org). This package is specifically tailored for creating high-quality figures aimed at the scientific field.
|
|
19
|
+
|
|
20
|
+
## Features ✨
|
|
21
|
+
|
|
22
|
+
- **Better Plot, Less Code**: Simplify the process of creating high-quality figures 💤
|
|
23
|
+
- **Compatibility**: Compatible with [matplotlib](https://matplotlib.org) 📊
|
|
24
|
+
- **Customization**: Customize your configuration to fit your needs 🎨
|
|
25
|
+
- **Reproducibility**: Save your package status to make plots reproducible 📦
|
|
26
|
+
|
|
27
|
+
### Example using gsplot 📈
|
|
28
|
+
|
|
29
|
+
[See more details](https://soichiroyamane.github.io/gsplot/guides/demo/4_paper_plot.html)
|
|
30
|
+
|
|
31
|
+

|
|
32
|
+
|
|
33
|
+
### Example with Python REPL 🐍 and neovim 🌟
|
|
34
|
+
|
|
35
|
+
[See more details](https://soichiroyamane.github.io/gsplot/guides/demo/13_REPL.html)
|
|
36
|
+

|
|
37
|
+
|
|
38
|
+
## Getting Started 🚀
|
|
39
|
+
|
|
40
|
+
### Installation
|
|
41
|
+
|
|
42
|
+
To use **gsplot**, ensure that you have `Python 3.10+` installed. You can install the package using `pip`:
|
|
43
|
+
|
|
44
|
+
#### important
|
|
45
|
+
|
|
46
|
+
**⚠️ This package has not been published yet**
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
pip install gsplot
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Authors 👥
|
|
53
|
+
|
|
54
|
+
This repository was forked from codes developed by Giordano Mattoni.
|
|
55
|
+
|
|
56
|
+
- Giordano Mattoni
|
|
57
|
+
- Soichiro Yamane
|
|
58
|
+
|
|
59
|
+
## License 📜
|
|
60
|
+
|
|
61
|
+
This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
from .color.colormap import get_cmap
|
|
2
|
+
from .config.config import (Config, config_dict, config_entry_option,
|
|
3
|
+
config_load)
|
|
4
|
+
from .data.load_file import load_file
|
|
5
|
+
from .figure.axes import axes
|
|
6
|
+
from .figure.figure_tools import get_figure_size
|
|
7
|
+
from .figure.show import show
|
|
8
|
+
from .hello_world.hello_world import hello_world
|
|
9
|
+
from .logger import logger
|
|
10
|
+
from .path.path import home, pwd, pwd_main, pwd_move
|
|
11
|
+
from .plot.line import line
|
|
12
|
+
from .plot.line_colormap_dashed import line_colormap_dashed
|
|
13
|
+
from .plot.line_colormap_solid import line_colormap_solid
|
|
14
|
+
from .plot.scatter import scatter
|
|
15
|
+
from .plot.scatter_colormap import scatter_colormap
|
|
16
|
+
from .style.graph import (graph_facecolor, graph_square, graph_square_axes,
|
|
17
|
+
graph_transparent, graph_transparent_axes,
|
|
18
|
+
graph_white, graph_white_axes)
|
|
19
|
+
from .style.label import label, label_add_index
|
|
20
|
+
from .style.legend import (legend, legend_axes, legend_get_handlers,
|
|
21
|
+
legend_handlers, legend_reverse)
|
|
22
|
+
from .style.legend_colormap import legend_colormap
|
|
23
|
+
from .style.ticks import ticks_off, ticks_on, ticks_on_axes
|
|
24
|
+
from .version import __commit__, __version__
|
|
25
|
+
|
|
26
|
+
# ╭──────────────────────────────────────────────────────────╮
|
|
27
|
+
# │ Load the configuration file │
|
|
28
|
+
# ╰──────────────────────────────────────────────────────────╯
|
|
29
|
+
Config()
|
|
30
|
+
|
|
31
|
+
# ╭──────────────────────────────────────────────────────────╮
|
|
32
|
+
# │ Logging setup │
|
|
33
|
+
# ╰──────────────────────────────────────────────────────────╯
|
|
34
|
+
logger()
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
__version__ = __version__
|
|
38
|
+
__commit__ = __commit__
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
__all__ = [
|
|
42
|
+
# color/colormap.py
|
|
43
|
+
"get_cmap",
|
|
44
|
+
# data/load_file.py
|
|
45
|
+
"load_file",
|
|
46
|
+
# figure/axes.py
|
|
47
|
+
"axes",
|
|
48
|
+
# figure/figure_tools.py
|
|
49
|
+
"get_figure_size",
|
|
50
|
+
# figure/show.py
|
|
51
|
+
"show",
|
|
52
|
+
# hello_world.py
|
|
53
|
+
"hello_world",
|
|
54
|
+
# config/config.py
|
|
55
|
+
"config_load",
|
|
56
|
+
"config_dict",
|
|
57
|
+
"config_entry_option",
|
|
58
|
+
# path/path.py
|
|
59
|
+
"home",
|
|
60
|
+
"pwd",
|
|
61
|
+
"pwd_move",
|
|
62
|
+
"pwd_main",
|
|
63
|
+
# plot/line.py
|
|
64
|
+
"line",
|
|
65
|
+
# plot/line_colormap.py
|
|
66
|
+
"line_colormap",
|
|
67
|
+
# plot/line_colormap_solid.py
|
|
68
|
+
"line_colormap_solid",
|
|
69
|
+
# plot/line_colormap_dashed.py
|
|
70
|
+
"line_colormap_dashed",
|
|
71
|
+
# plot/scatter.py
|
|
72
|
+
"scatter",
|
|
73
|
+
# plot/scatter_colormap.py
|
|
74
|
+
"scatter_colormap",
|
|
75
|
+
# style/graph.py
|
|
76
|
+
"graph_square",
|
|
77
|
+
"graph_square_axes",
|
|
78
|
+
"graph_white",
|
|
79
|
+
"graph_white_axes",
|
|
80
|
+
"graph_transparent",
|
|
81
|
+
"graph_transparent_axes",
|
|
82
|
+
"graph_facecolor",
|
|
83
|
+
# style/label.py
|
|
84
|
+
"label",
|
|
85
|
+
"label_add_index",
|
|
86
|
+
# style/legend.py
|
|
87
|
+
"legend",
|
|
88
|
+
"legend_axes",
|
|
89
|
+
"legend_handlers",
|
|
90
|
+
"legend_reverse",
|
|
91
|
+
"legend_get_handlers",
|
|
92
|
+
# style/legend_colormap.py
|
|
93
|
+
"legend_colormap",
|
|
94
|
+
# style/ticks.py
|
|
95
|
+
"ticks_off",
|
|
96
|
+
"ticks_on",
|
|
97
|
+
"ticks_on_axes",
|
|
98
|
+
]
|