plot-misc 2.0.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.
- plot_misc-2.0.2/LICENSE +18 -0
- plot_misc-2.0.2/PKG-INFO +107 -0
- plot_misc-2.0.2/README.md +79 -0
- plot_misc-2.0.2/plot_misc/__init__.py +1 -0
- plot_misc-2.0.2/plot_misc/_version.py +1 -0
- plot_misc-2.0.2/plot_misc/barchart.py +523 -0
- plot_misc-2.0.2/plot_misc/constants.py +118 -0
- plot_misc-2.0.2/plot_misc/errors.py +328 -0
- plot_misc-2.0.2/plot_misc/example_data/__init__.py +1 -0
- plot_misc-2.0.2/plot_misc/example_data/example_datasets/bar_points.tsv.gz +0 -0
- plot_misc-2.0.2/plot_misc/example_data/example_datasets/barchart.tsv.gz +0 -0
- plot_misc-2.0.2/plot_misc/example_data/example_datasets/calibration_bins.tsv.gz +0 -0
- plot_misc-2.0.2/plot_misc/example_data/example_datasets/calibration_data.tsv.gz +0 -0
- plot_misc-2.0.2/plot_misc/example_data/example_datasets/forest_data.tsv.gz +0 -0
- plot_misc-2.0.2/plot_misc/example_data/example_datasets/group_bar.tsv.gz +0 -0
- plot_misc-2.0.2/plot_misc/example_data/example_datasets/heatmap_data.tsv.gz +0 -0
- plot_misc-2.0.2/plot_misc/example_data/example_datasets/incidence_matrix_data.tsv.gz +0 -0
- plot_misc-2.0.2/plot_misc/example_data/example_datasets/lollipop_data.tsv.gz +0 -0
- plot_misc-2.0.2/plot_misc/example_data/example_datasets/mace_associations.tsv.gz +0 -0
- plot_misc-2.0.2/plot_misc/example_data/example_datasets/net_benefit.tsv.gz +0 -0
- plot_misc-2.0.2/plot_misc/example_data/example_datasets/string_data.txt +1 -0
- plot_misc-2.0.2/plot_misc/example_data/example_datasets/volcano.tsv.gz +0 -0
- plot_misc-2.0.2/plot_misc/example_data/examples.py +637 -0
- plot_misc-2.0.2/plot_misc/forest.py +1478 -0
- plot_misc-2.0.2/plot_misc/heatmap.py +369 -0
- plot_misc-2.0.2/plot_misc/incidencematrix.py +394 -0
- plot_misc-2.0.2/plot_misc/machine_learning.py +1143 -0
- plot_misc-2.0.2/plot_misc/piechart.py +197 -0
- plot_misc-2.0.2/plot_misc/utils/__init__.py +1 -0
- plot_misc-2.0.2/plot_misc/utils/colour.py +171 -0
- plot_misc-2.0.2/plot_misc/utils/formatting.py +369 -0
- plot_misc-2.0.2/plot_misc/utils/utils.py +1151 -0
- plot_misc-2.0.2/plot_misc/volcano.py +203 -0
- plot_misc-2.0.2/plot_misc.egg-info/PKG-INFO +107 -0
- plot_misc-2.0.2/plot_misc.egg-info/SOURCES.txt +38 -0
- plot_misc-2.0.2/plot_misc.egg-info/dependency_links.txt +1 -0
- plot_misc-2.0.2/plot_misc.egg-info/requires.txt +11 -0
- plot_misc-2.0.2/plot_misc.egg-info/top_level.txt +1 -0
- plot_misc-2.0.2/pyproject.toml +55 -0
- plot_misc-2.0.2/setup.cfg +4 -0
plot_misc-2.0.2/LICENSE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
GNU GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2024 Amand Floriaan Schmidt (amand.schmidt@ucl.ac.uk)
|
|
5
|
+
|
|
6
|
+
This program is free software: you can redistribute it and/or modify
|
|
7
|
+
it under the terms of the GNU General Public License as published by
|
|
8
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
9
|
+
(at your option) any later version.
|
|
10
|
+
|
|
11
|
+
This program is distributed in the hope that it will be useful,
|
|
12
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14
|
+
GNU General Public License for more details.
|
|
15
|
+
|
|
16
|
+
You should have received a copy of the GNU General Public License
|
|
17
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
18
|
+
|
plot_misc-2.0.2/PKG-INFO
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: plot-misc
|
|
3
|
+
Version: 2.0.2
|
|
4
|
+
Summary: Various plotting templates built on top of matplotlib
|
|
5
|
+
Author-email: A Floriaan Schmidt <floriaanschmidt@gmail.com>
|
|
6
|
+
License-Expression: GPL-3.0-or-later
|
|
7
|
+
Project-URL: Homepage, https://gitlab.com/SchmidtAF/plot-misc
|
|
8
|
+
Classifier: Programming Language :: Python
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
14
|
+
Requires-Python: <3.13,>=3.10
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
Requires-Dist: numpy
|
|
18
|
+
Requires-Dist: pandas
|
|
19
|
+
Requires-Dist: matplotlib
|
|
20
|
+
Requires-Dist: seaborn
|
|
21
|
+
Requires-Dist: scipy
|
|
22
|
+
Requires-Dist: scikit-learn
|
|
23
|
+
Requires-Dist: adjustText
|
|
24
|
+
Provides-Extra: dev
|
|
25
|
+
Requires-Dist: twine; extra == "dev"
|
|
26
|
+
Requires-Dist: build; extra == "dev"
|
|
27
|
+
Dynamic: license-file
|
|
28
|
+
|
|
29
|
+
# A collection of plotting functions
|
|
30
|
+
__version__: `2.0.2`
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
This repository collects plotting modules written on top of `matplotlib` or
|
|
34
|
+
`seaborn`.
|
|
35
|
+
The functions are intended to set-up a light-touch basic illustration which
|
|
36
|
+
can be customised using the normal matplotlib interface using axes and figures.
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
The documentation for plot-misc can be found [here](https://SchmidtAF.gitlab.io/plot-misc/).
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
## Installation
|
|
43
|
+
At present, this package is undergoing development and no packages exist yet on PyPI.
|
|
44
|
+
Therefore it is recommended that you install in either of the two ways below.
|
|
45
|
+
|
|
46
|
+
### Installation using conda
|
|
47
|
+
I maintain a conda package in my personal conda channel. To install from this please run:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
conda install afschmidt::plot_misc
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Installation using pip
|
|
54
|
+
|
|
55
|
+
You can install using pip from the root of the cloned repository,
|
|
56
|
+
first clone and cd into the repository root:
|
|
57
|
+
|
|
58
|
+
```sh
|
|
59
|
+
git clone git@gitlab.com:SchmidtAF/plot-misc.git
|
|
60
|
+
cd plot-misc
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Install the dependencies:
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
# From the root of the repository
|
|
67
|
+
conda env create --file ./resources/conda/envs/conda_create.yaml
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
To add to an existing environment use:
|
|
71
|
+
|
|
72
|
+
```sh
|
|
73
|
+
# From the root of the repository
|
|
74
|
+
conda env update --file ./resources/conda/envs/conda_update.yaml
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Next the package can be installed:
|
|
78
|
+
|
|
79
|
+
```sh
|
|
80
|
+
python -m pip install .
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Or for an editable (developer) install run the command below from the root of
|
|
84
|
+
the repository.
|
|
85
|
+
The difference with this is that you can just run `git pull` to
|
|
86
|
+
update repository, or switch branches without re-installing:
|
|
87
|
+
|
|
88
|
+
```sh
|
|
89
|
+
python -m pip install -e .
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Next steps...
|
|
94
|
+
After installation you might wish to try the `pytest` to confirm
|
|
95
|
+
everything is in working order.
|
|
96
|
+
|
|
97
|
+
```sh
|
|
98
|
+
# From the root of the repository
|
|
99
|
+
pytest tests
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Usage
|
|
103
|
+
|
|
104
|
+
Please have a look at the examples in
|
|
105
|
+
[resources](https://gitlab.com/SchmidtAF/plot-misc/-/tree/master/resources/examples)
|
|
106
|
+
for some possible recipes.
|
|
107
|
+
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# A collection of plotting functions
|
|
2
|
+
__version__: `2.0.2`
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
This repository collects plotting modules written on top of `matplotlib` or
|
|
6
|
+
`seaborn`.
|
|
7
|
+
The functions are intended to set-up a light-touch basic illustration which
|
|
8
|
+
can be customised using the normal matplotlib interface using axes and figures.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
The documentation for plot-misc can be found [here](https://SchmidtAF.gitlab.io/plot-misc/).
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
At present, this package is undergoing development and no packages exist yet on PyPI.
|
|
16
|
+
Therefore it is recommended that you install in either of the two ways below.
|
|
17
|
+
|
|
18
|
+
### Installation using conda
|
|
19
|
+
I maintain a conda package in my personal conda channel. To install from this please run:
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
conda install afschmidt::plot_misc
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Installation using pip
|
|
26
|
+
|
|
27
|
+
You can install using pip from the root of the cloned repository,
|
|
28
|
+
first clone and cd into the repository root:
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
git clone git@gitlab.com:SchmidtAF/plot-misc.git
|
|
32
|
+
cd plot-misc
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Install the dependencies:
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
# From the root of the repository
|
|
39
|
+
conda env create --file ./resources/conda/envs/conda_create.yaml
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
To add to an existing environment use:
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
# From the root of the repository
|
|
46
|
+
conda env update --file ./resources/conda/envs/conda_update.yaml
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Next the package can be installed:
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
python -m pip install .
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Or for an editable (developer) install run the command below from the root of
|
|
56
|
+
the repository.
|
|
57
|
+
The difference with this is that you can just run `git pull` to
|
|
58
|
+
update repository, or switch branches without re-installing:
|
|
59
|
+
|
|
60
|
+
```sh
|
|
61
|
+
python -m pip install -e .
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Next steps...
|
|
66
|
+
After installation you might wish to try the `pytest` to confirm
|
|
67
|
+
everything is in working order.
|
|
68
|
+
|
|
69
|
+
```sh
|
|
70
|
+
# From the root of the repository
|
|
71
|
+
pytest tests
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Usage
|
|
75
|
+
|
|
76
|
+
Please have a look at the examples in
|
|
77
|
+
[resources](https://gitlab.com/SchmidtAF/plot-misc/-/tree/master/resources/examples)
|
|
78
|
+
for some possible recipes.
|
|
79
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from ._version import __version__
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '2.0.2'
|