plot-misc 2.3.0__py3-none-any.whl → 2.3.1__py3-none-any.whl

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/__init__.py CHANGED
@@ -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
+ )
plot_misc/_version.py CHANGED
@@ -1 +1 @@
1
- __version__ = '2.3.0'
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
 
@@ -1,5 +1,5 @@
1
- plot_misc/__init__.py,sha256=3QUr_8ixNCHkqd6gnYmdbB-n2fe1pUrZjERtQwNzz5o,579
2
- plot_misc/_version.py,sha256=HkuhK2leBUgujkTPPE8VZAlHBDxmueEzVb4sz0_wlyQ,22
1
+ plot_misc/__init__.py,sha256=9gmOKQn4BlRPhrNelBhlcHUeUg-RruLhHhO0UaUjRtA,807
2
+ plot_misc/_version.py,sha256=0Ns5BhVD3XOEWhtSUJ76K319NapPiQfZKsWZRt-kZOk,22
3
3
  plot_misc/barchart.py,sha256=_4Fj8ypYi6Aehgv4b13Lh1zS1ee4z7OXrGo1P5QBshw,21925
4
4
  plot_misc/constants.py,sha256=SABaNQpTRXm4pMF_F6sdsBUvNVyb-WXQLT_YAmUgtuo,4530
5
5
  plot_misc/errors.py,sha256=ZbOZg1TbY-7dtPAsJNxIRsjlUfJg0vrx8kRPFsMClaQ,9637
@@ -11,7 +11,7 @@ plot_misc/piechart.py,sha256=nKT9Xr-rP9t8hv6ITb_0594AlzgfnAEdqkyCslLriLc,8613
11
11
  plot_misc/survival.py,sha256=_fKxaHSLjLU1Pq9KsxVqby5kXhl6QIsTM4sqq3hv6ak,25410
12
12
  plot_misc/volcano.py,sha256=4zAC4GH-sC5jJyDeHOTq9-3N-UgSldMKgutFs35KE4g,10298
13
13
  plot_misc/example_data/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
14
- plot_misc/example_data/examples.py,sha256=T9jBdtQEbZKEWVoT0SJt8sJ5fTSdXpTqfDA6Y898s0g,31498
14
+ plot_misc/example_data/examples.py,sha256=9F7xuJQGBu0WweoG719NdHPaOJaj5Dd1TzrqJXVC040,31564
15
15
  plot_misc/example_data/example_datasets/bar_points.tsv.gz,sha256=ppYQY01DXz77GzSANpwZ9N4zZvxQN5AiHmLsOhZ6cbk,255
16
16
  plot_misc/example_data/example_datasets/barchart.tsv.gz,sha256=9TVBaC7yuDuNzOQivTm-UxjmB_jyCfbv1twiL13WpOs,123
17
17
  plot_misc/example_data/example_datasets/calibration_bins.tsv.gz,sha256=7BQdx7Tx5zF6wSyyCTwjkSaELKywoykUpelWvxe5pxA,332
@@ -23,13 +23,14 @@ plot_misc/example_data/example_datasets/incidence_matrix_data.tsv.gz,sha256=A5IQ
23
23
  plot_misc/example_data/example_datasets/lollipop_data.tsv.gz,sha256=2EivSWOoYOxLKjFHgB86k9ln9xm3elTHd3eUI2tEwpg,820
24
24
  plot_misc/example_data/example_datasets/mace_associations.tsv.gz,sha256=oTtSzrOUbOqXap-wmA5QhJxKgj4O5nbpZ964J7AXBcw,1732
25
25
  plot_misc/example_data/example_datasets/net_benefit.tsv.gz,sha256=eW9ltgCj0smsq1_rGFbI0bujw4GkECfP89jIMk461iM,1323
26
+ plot_misc/example_data/example_datasets/string_data.txt,sha256=GttBz476DDdb9k0IvA_gJ6cg_vDXrAUUDCof4SABVaI,4
26
27
  plot_misc/example_data/example_datasets/volcano.tsv.gz,sha256=Cd0J-VeiVPruUqdbPoMOCqDpOKZthITfKEKybsZ0qU8,41139
27
28
  plot_misc/utils/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
28
29
  plot_misc/utils/colour.py,sha256=SfhjFcnvTQ-_zfstMqb0vMPyW3-pdPO4G3KJ7-BtQ4E,7715
29
30
  plot_misc/utils/formatting.py,sha256=RRXCSlGBv5SkshfZPnURcYy_QV9Zyu_ApbMdWxWRkAE,14018
30
31
  plot_misc/utils/utils.py,sha256=Ydu3TVwz48K6FhqSjFg0CbagJp0WRQbTRVgn6BQetfA,52113
31
- plot_misc-2.3.0.dist-info/licenses/LICENSE,sha256=TAKLZop-WRQ03q1liEZVOMPZOrVwR2ndHSdxC7j1YeU,779
32
- plot_misc-2.3.0.dist-info/METADATA,sha256=jX25HiLQ7cd2j-k2dUA4G1byqPWlmoDZKEXtwsXgW58,5813
33
- plot_misc-2.3.0.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
34
- plot_misc-2.3.0.dist-info/top_level.txt,sha256=WyOYx7sloAXvlDvWfFf57ZAf9PnKTWb0zqenkcZKkAE,10
35
- plot_misc-2.3.0.dist-info/RECORD,,
32
+ plot_misc-2.3.1.dist-info/licenses/LICENSE,sha256=TAKLZop-WRQ03q1liEZVOMPZOrVwR2ndHSdxC7j1YeU,779
33
+ plot_misc-2.3.1.dist-info/METADATA,sha256=ZAlUxBejWaIsGMzbQW5szU_pzuBSWWFZ32OQkzJ7WR8,6498
34
+ plot_misc-2.3.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
35
+ plot_misc-2.3.1.dist-info/top_level.txt,sha256=WyOYx7sloAXvlDvWfFf57ZAf9PnKTWb0zqenkcZKkAE,10
36
+ plot_misc-2.3.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (83.0.0)
2
+ Generator: setuptools (84.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5