plot-misc 2.3.0__tar.gz → 2.3.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.
Files changed (45) hide show
  1. {plot_misc-2.3.0/plot_misc.egg-info → plot_misc-2.3.1}/PKG-INFO +28 -5
  2. {plot_misc-2.3.0 → plot_misc-2.3.1}/README.md +26 -3
  3. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/__init__.py +7 -1
  4. plot_misc-2.3.1/plot_misc/_version.py +1 -0
  5. plot_misc-2.3.1/plot_misc/example_data/example_datasets/string_data.txt +1 -0
  6. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/example_data/examples.py +30 -30
  7. {plot_misc-2.3.0 → plot_misc-2.3.1/plot_misc.egg-info}/PKG-INFO +28 -5
  8. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc.egg-info/SOURCES.txt +1 -0
  9. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc.egg-info/requires.txt +1 -1
  10. {plot_misc-2.3.0 → plot_misc-2.3.1}/pyproject.toml +5 -1
  11. {plot_misc-2.3.0 → plot_misc-2.3.1}/requirements.txt +1 -1
  12. plot_misc-2.3.0/plot_misc/_version.py +0 -1
  13. {plot_misc-2.3.0 → plot_misc-2.3.1}/LICENSE +0 -0
  14. {plot_misc-2.3.0 → plot_misc-2.3.1}/MANIFEST.in +0 -0
  15. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/barchart.py +0 -0
  16. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/constants.py +0 -0
  17. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/errors.py +0 -0
  18. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/example_data/__init__.py +0 -0
  19. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/example_data/example_datasets/bar_points.tsv.gz +0 -0
  20. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/example_data/example_datasets/barchart.tsv.gz +0 -0
  21. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/example_data/example_datasets/calibration_bins.tsv.gz +0 -0
  22. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/example_data/example_datasets/calibration_data.tsv.gz +0 -0
  23. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/example_data/example_datasets/forest_data.tsv.gz +0 -0
  24. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/example_data/example_datasets/group_bar.tsv.gz +0 -0
  25. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/example_data/example_datasets/heatmap_data.tsv.gz +0 -0
  26. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/example_data/example_datasets/incidence_matrix_data.tsv.gz +0 -0
  27. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/example_data/example_datasets/lollipop_data.tsv.gz +0 -0
  28. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/example_data/example_datasets/mace_associations.tsv.gz +0 -0
  29. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/example_data/example_datasets/net_benefit.tsv.gz +0 -0
  30. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/example_data/example_datasets/volcano.tsv.gz +0 -0
  31. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/forest.py +0 -0
  32. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/heatmap.py +0 -0
  33. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/incidencematrix.py +0 -0
  34. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/machine_learning.py +0 -0
  35. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/piechart.py +0 -0
  36. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/survival.py +0 -0
  37. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/utils/__init__.py +0 -0
  38. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/utils/colour.py +0 -0
  39. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/utils/formatting.py +0 -0
  40. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/utils/utils.py +0 -0
  41. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc/volcano.py +0 -0
  42. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc.egg-info/dependency_links.txt +0 -0
  43. {plot_misc-2.3.0 → plot_misc-2.3.1}/plot_misc.egg-info/top_level.txt +0 -0
  44. {plot_misc-2.3.0 → plot_misc-2.3.1}/requirements-dev.txt +0 -0
  45. {plot_misc-2.3.0 → plot_misc-2.3.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plot-misc
3
- Version: 2.3.0
3
+ Version: 2.3.1
4
4
  Summary: Various plotting archetypes built on top of matplotlib
5
5
  Author-email: A Floriaan Schmidt <floriaanschmidt@gmail.com>
6
6
  License-Expression: GPL-3.0-or-later
@@ -20,7 +20,7 @@ Requires-Dist: pandas>=1.3
20
20
  Requires-Dist: numpy>=1.21
21
21
  Requires-Dist: matplotlib>=3.5
22
22
  Requires-Dist: scipy>=1.5
23
- Requires-Dist: statsmodels>=0.1
23
+ Requires-Dist: statsmodels>=0.12
24
24
  Requires-Dist: scikit-learn>=1.4
25
25
  Requires-Dist: adjustText>=1.3
26
26
  Requires-Dist: typing_extensions>=4; python_version < "3.11"
@@ -47,10 +47,10 @@ Requires-Dist: numpydoc; extra == "dev"
47
47
  Requires-Dist: docutils<0.21; extra == "dev"
48
48
  Dynamic: license-file
49
49
 
50
- <img src="https://schmidtaf.gitlab.io/plot-misc/_images/icon.png" alt="plot-misc icon" width="250"/>
50
+ <img src="https://schmidtaf.gitlab.io/plot-misc/_images/fish.png" alt="plot-misc icon" width="250"/>
51
51
 
52
52
  # A collection of plotting functions
53
- __version__: `2.3.0`
53
+ __version__: `2.3.1`
54
54
 
55
55
  This repository collects plotting modules written on top of `matplotlib`.
56
56
  The functions describe plotting archetypes intended to set up light-touch,
@@ -77,6 +77,25 @@ research:
77
77
  Please consult the **[documentation](https://SchmidtAF.gitlab.io/plot-misc/)**
78
78
  for plot-misc.
79
79
 
80
+ ## Citation
81
+
82
+ If you use this package in your research please cite the
83
+ **[paper](https://academic.oup.com/bioinformaticsadvances/article/6/1/vbag184/8721292)**:
84
+
85
+ ```bibtex
86
+ @article{Schmidt:2026,
87
+ author = {Schmidt, Amand Floriaan and Hukerikar, Nikita and
88
+ Finan, Chris and van Vugt, Marion},
89
+ title = {Effective visualization of biomedical data using plot-misc},
90
+ journal = {Bioinformatics Advances},
91
+ volume = {6},
92
+ number = {1},
93
+ pages = {vbag184},
94
+ doi = {10.1093/bioadv/vbag184},
95
+ year = {2026}
96
+ }
97
+ ```
98
+
80
99
  ## Installation
81
100
  The package is available on PyPI, and conda, with the latest source code
82
101
  available on gitlab.
@@ -146,7 +165,7 @@ branches without reinstalling.
146
165
  Alternatively, you can install manually:
147
166
  ```bash
148
167
  python -m pip install -e .
149
- python .setup_git_hooks.py
168
+ python .githooks/.setup_git_hooks.py
150
169
  ```
151
170
 
152
171
  #### Git Hooks Configuration
@@ -202,4 +221,8 @@ Please have a look at the examples in
202
221
  [resources](https://gitlab.com/SchmidtAF/plot-misc/-/tree/master/resources/examples)
203
222
  for some possible recipes.
204
223
 
224
+ ## Icon
225
+
226
+ The icon at the top of this README is a _mandarinfish_, widely regarded as one of
227
+ the most colourful animals on the planet.
205
228
 
@@ -1,7 +1,7 @@
1
- <img src="https://schmidtaf.gitlab.io/plot-misc/_images/icon.png" alt="plot-misc icon" width="250"/>
1
+ <img src="https://schmidtaf.gitlab.io/plot-misc/_images/fish.png" alt="plot-misc icon" width="250"/>
2
2
 
3
3
  # A collection of plotting functions
4
- __version__: `2.3.0`
4
+ __version__: `2.3.1`
5
5
 
6
6
  This repository collects plotting modules written on top of `matplotlib`.
7
7
  The functions describe plotting archetypes intended to set up light-touch,
@@ -28,6 +28,25 @@ research:
28
28
  Please consult the **[documentation](https://SchmidtAF.gitlab.io/plot-misc/)**
29
29
  for plot-misc.
30
30
 
31
+ ## Citation
32
+
33
+ If you use this package in your research please cite the
34
+ **[paper](https://academic.oup.com/bioinformaticsadvances/article/6/1/vbag184/8721292)**:
35
+
36
+ ```bibtex
37
+ @article{Schmidt:2026,
38
+ author = {Schmidt, Amand Floriaan and Hukerikar, Nikita and
39
+ Finan, Chris and van Vugt, Marion},
40
+ title = {Effective visualization of biomedical data using plot-misc},
41
+ journal = {Bioinformatics Advances},
42
+ volume = {6},
43
+ number = {1},
44
+ pages = {vbag184},
45
+ doi = {10.1093/bioadv/vbag184},
46
+ year = {2026}
47
+ }
48
+ ```
49
+
31
50
  ## Installation
32
51
  The package is available on PyPI, and conda, with the latest source code
33
52
  available on gitlab.
@@ -97,7 +116,7 @@ branches without reinstalling.
97
116
  Alternatively, you can install manually:
98
117
  ```bash
99
118
  python -m pip install -e .
100
- python .setup_git_hooks.py
119
+ python .githooks/.setup_git_hooks.py
101
120
  ```
102
121
 
103
122
  #### Git Hooks Configuration
@@ -153,4 +172,8 @@ Please have a look at the examples in
153
172
  [resources](https://gitlab.com/SchmidtAF/plot-misc/-/tree/master/resources/examples)
154
173
  for some possible recipes.
155
174
 
175
+ ## Icon
176
+
177
+ The icon at the top of this README is a _mandarinfish_, widely regarded as one of
178
+ the most colourful animals on the planet.
156
179
 
@@ -7,6 +7,12 @@ matplotlib `Figure`/`Axes` objects, so results can be further customised
7
7
  with familiar matplotlib methods. Per the package design callables are limited
8
8
  to creating illustrations, and should data be internally calculated this is
9
9
  done with options for user overwrites, while making the derived data available
10
- for inspection and re-use.
10
+ for inspection and reuse.
11
11
  """
12
12
  from ._version import __version__
13
+
14
+ __citation__ = (
15
+ "Schmidt AF, Hukerikar N, Finan C, van Vugt M. Effective visualization "
16
+ "of biomedical data using plot-misc. Bioinformatics Advances. "
17
+ "2026;6(1):vbag184. https://doi.org/10.1093/bioadv/vbag184"
18
+ )
@@ -0,0 +1 @@
1
+ __version__ = '2.3.1'
@@ -229,12 +229,12 @@ def help(name):
229
229
  @dataset
230
230
  def dummy_data():
231
231
  """A dummy dataset function that returns a small list.
232
-
232
+
233
233
  Returns
234
234
  -------
235
235
  data : `list`
236
236
  A list of length 3 with ``['A', 'B', 'C']``
237
-
237
+
238
238
  Notes
239
239
  -----
240
240
  This function is called ``dummy_data`` and has been decorated with a
@@ -253,7 +253,7 @@ def dummy_load_data():
253
253
  -------
254
254
  str_data : `str`
255
255
  A string of data loaded from an example data file.
256
-
256
+
257
257
  Notes
258
258
  -----
259
259
  This function is called ``dummy_data`` and has been decorated with a
@@ -774,34 +774,34 @@ def load_survival_table(**kwargs):
774
774
  return table
775
775
 
776
776
  # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
777
- @dataset
778
- def load_forest_preprocessed(**kwargs):
779
- """
780
- Loads the forest example data with subgroup colour and model shape
781
- columns attached, ready for direct use by the forest plot.
777
+ # @dataset
778
+ # def load_forest_preprocessed(**kwargs):
779
+ # """
780
+ # Loads the forest example data with subgroup colour and model shape
781
+ # columns attached, ready for direct use by the forest plot.
782
782
 
783
- Returns
784
- -------
785
- pd.DataFrame
786
- """
787
- # mapping literals (mirrors resources/examples/forestplot.ipynb cell 2)
788
- col_dict = {
789
- 'wo T2DM/CVD': 'orangered',
790
- 'w T2DM': 'blueviolet',
791
- 'w T2DM & CVD': 'limegreen',
792
- }
793
- shape_dict = {
794
- 'PGS only': 'o',
795
- 'PGS plus': 's',
796
- 'PGS extended': 'H',
797
- }
798
- # base data (already carries the hardcoded ForestNames.y_col)
799
- df = load_forest_data(**kwargs)
800
- # attach colour and shape columns
801
- df['col'] = df['subgroup_name'].map(col_dict)
802
- df['shape'] = df['model'].map(shape_dict)
803
- # return
804
- return df
783
+ # Returns
784
+ # -------
785
+ # pd.DataFrame
786
+ # """
787
+ # # mapping literals (mirrors resources/examples/forestplot.ipynb cell 2)
788
+ # col_dict = {
789
+ # 'wo T2DM/CVD': 'orangered',
790
+ # 'w T2DM': 'blueviolet',
791
+ # 'w T2DM & CVD': 'limegreen',
792
+ # }
793
+ # shape_dict = {
794
+ # 'PGS only': 'o',
795
+ # 'PGS plus': 's',
796
+ # 'PGS extended': 'H',
797
+ # }
798
+ # # base data (already carries the hardcoded ForestNames.y_col)
799
+ # df = load_forest_data(**kwargs)
800
+ # # attach colour and shape columns
801
+ # df['col'] = df['subgroup_name'].map(col_dict)
802
+ # df['shape'] = df['model'].map(shape_dict)
803
+ # # return
804
+ # return df
805
805
 
806
806
  # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
807
807
  @dataset
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plot-misc
3
- Version: 2.3.0
3
+ Version: 2.3.1
4
4
  Summary: Various plotting archetypes built on top of matplotlib
5
5
  Author-email: A Floriaan Schmidt <floriaanschmidt@gmail.com>
6
6
  License-Expression: GPL-3.0-or-later
@@ -20,7 +20,7 @@ Requires-Dist: pandas>=1.3
20
20
  Requires-Dist: numpy>=1.21
21
21
  Requires-Dist: matplotlib>=3.5
22
22
  Requires-Dist: scipy>=1.5
23
- Requires-Dist: statsmodels>=0.1
23
+ Requires-Dist: statsmodels>=0.12
24
24
  Requires-Dist: scikit-learn>=1.4
25
25
  Requires-Dist: adjustText>=1.3
26
26
  Requires-Dist: typing_extensions>=4; python_version < "3.11"
@@ -47,10 +47,10 @@ Requires-Dist: numpydoc; extra == "dev"
47
47
  Requires-Dist: docutils<0.21; extra == "dev"
48
48
  Dynamic: license-file
49
49
 
50
- <img src="https://schmidtaf.gitlab.io/plot-misc/_images/icon.png" alt="plot-misc icon" width="250"/>
50
+ <img src="https://schmidtaf.gitlab.io/plot-misc/_images/fish.png" alt="plot-misc icon" width="250"/>
51
51
 
52
52
  # A collection of plotting functions
53
- __version__: `2.3.0`
53
+ __version__: `2.3.1`
54
54
 
55
55
  This repository collects plotting modules written on top of `matplotlib`.
56
56
  The functions describe plotting archetypes intended to set up light-touch,
@@ -77,6 +77,25 @@ research:
77
77
  Please consult the **[documentation](https://SchmidtAF.gitlab.io/plot-misc/)**
78
78
  for plot-misc.
79
79
 
80
+ ## Citation
81
+
82
+ If you use this package in your research please cite the
83
+ **[paper](https://academic.oup.com/bioinformaticsadvances/article/6/1/vbag184/8721292)**:
84
+
85
+ ```bibtex
86
+ @article{Schmidt:2026,
87
+ author = {Schmidt, Amand Floriaan and Hukerikar, Nikita and
88
+ Finan, Chris and van Vugt, Marion},
89
+ title = {Effective visualization of biomedical data using plot-misc},
90
+ journal = {Bioinformatics Advances},
91
+ volume = {6},
92
+ number = {1},
93
+ pages = {vbag184},
94
+ doi = {10.1093/bioadv/vbag184},
95
+ year = {2026}
96
+ }
97
+ ```
98
+
80
99
  ## Installation
81
100
  The package is available on PyPI, and conda, with the latest source code
82
101
  available on gitlab.
@@ -146,7 +165,7 @@ branches without reinstalling.
146
165
  Alternatively, you can install manually:
147
166
  ```bash
148
167
  python -m pip install -e .
149
- python .setup_git_hooks.py
168
+ python .githooks/.setup_git_hooks.py
150
169
  ```
151
170
 
152
171
  #### Git Hooks Configuration
@@ -202,4 +221,8 @@ Please have a look at the examples in
202
221
  [resources](https://gitlab.com/SchmidtAF/plot-misc/-/tree/master/resources/examples)
203
222
  for some possible recipes.
204
223
 
224
+ ## Icon
225
+
226
+ The icon at the top of this README is a _mandarinfish_, widely regarded as one of
227
+ the most colourful animals on the planet.
205
228
 
@@ -34,6 +34,7 @@ plot_misc/example_data/example_datasets/incidence_matrix_data.tsv.gz
34
34
  plot_misc/example_data/example_datasets/lollipop_data.tsv.gz
35
35
  plot_misc/example_data/example_datasets/mace_associations.tsv.gz
36
36
  plot_misc/example_data/example_datasets/net_benefit.tsv.gz
37
+ plot_misc/example_data/example_datasets/string_data.txt
37
38
  plot_misc/example_data/example_datasets/volcano.tsv.gz
38
39
  plot_misc/utils/__init__.py
39
40
  plot_misc/utils/colour.py
@@ -2,7 +2,7 @@ pandas>=1.3
2
2
  numpy>=1.21
3
3
  matplotlib>=3.5
4
4
  scipy>=1.5
5
- statsmodels>=0.1
5
+ statsmodels>=0.12
6
6
  scikit-learn>=1.4
7
7
  adjustText>=1.3
8
8
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "plot-misc"
7
- version = "2.3.0"
7
+ version = "2.3.1"
8
8
  description = "Various plotting archetypes built on top of matplotlib"
9
9
  readme = "README.md"
10
10
  authors = [{ name = "A Floriaan Schmidt", email = "floriaanschmidt@gmail.com" }]
@@ -41,6 +41,10 @@ include-package-data = true
41
41
 
42
42
  [tool.setuptools.package-data]
43
43
  "plot_misc" = ["*.md", "*.txt", "*.rst"]
44
+ "plot_misc.example_data" = [
45
+ "example_datasets/*.tsv.gz",
46
+ "example_datasets/*.txt",
47
+ ]
44
48
 
45
49
  [tool.setuptools.exclude-package-data]
46
50
  "*" = ["tests/*"]
@@ -2,7 +2,7 @@ pandas>=1.3
2
2
  numpy>=1.21
3
3
  matplotlib>=3.5
4
4
  scipy>=1.5
5
- statsmodels>=0.1
5
+ statsmodels>=0.12
6
6
  scikit-learn>=1.4
7
7
  adjustText>=1.3
8
8
  typing_extensions>=4; python_version < "3.11"
@@ -1 +0,0 @@
1
- __version__ = '2.3.0'
File without changes
File without changes
File without changes
File without changes
File without changes