mgplot 0.1.3__tar.gz → 0.1.4__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 (49) hide show
  1. mgplot-0.1.4/.gitignore +27 -0
  2. mgplot-0.1.4/CHANGELOG.md +49 -0
  3. {mgplot-0.1.3/src/mgplot.egg-info → mgplot-0.1.4}/PKG-INFO +12 -15
  4. mgplot-0.1.4/build-docs.sh +6 -0
  5. mgplot-0.1.4/build-test.sh +32 -0
  6. mgplot-0.1.4/docs/index.html +7 -0
  7. mgplot-0.1.4/docs/mgplot/bar_plot.html +504 -0
  8. mgplot-0.1.4/docs/mgplot/finalise_plot.html +818 -0
  9. mgplot-0.1.4/docs/mgplot/line_plot.html +719 -0
  10. mgplot-0.1.4/docs/mgplot/postcovid_plot.html +594 -0
  11. mgplot-0.1.4/docs/mgplot/revision_plot.html +404 -0
  12. mgplot-0.1.4/docs/mgplot/run_plot.html +626 -0
  13. mgplot-0.1.4/docs/mgplot/seastrend_plot.html +535 -0
  14. mgplot-0.1.4/docs/mgplot/summary_plot.html +641 -0
  15. mgplot-0.1.4/docs/mgplot.html +2936 -0
  16. mgplot-0.1.4/docs/search.js +46 -0
  17. {mgplot-0.1.3 → mgplot-0.1.4}/pyproject.toml +8 -7
  18. {mgplot-0.1.3 → mgplot-0.1.4}/src/mgplot/__init__.py +9 -6
  19. {mgplot-0.1.3 → mgplot-0.1.4}/src/mgplot/finalisers.py +1 -10
  20. {mgplot-0.1.3 → mgplot-0.1.4}/src/mgplot/growth_plot.py +57 -45
  21. {mgplot-0.1.3 → mgplot-0.1.4}/src/mgplot/kw_type_checking.py +1 -1
  22. {mgplot-0.1.3 → mgplot-0.1.4}/src/mgplot/line_plot.py +8 -0
  23. mgplot-0.1.4/src/mgplot/lint-all.sh +19 -0
  24. {mgplot-0.1.3 → mgplot-0.1.4}/src/mgplot/multi_plot.py +44 -25
  25. {mgplot-0.1.3 → mgplot-0.1.4}/src/mgplot/utilities.py +31 -15
  26. mgplot-0.1.4/src/mgplot/zz-test-data/ocr_rba.csv +419 -0
  27. mgplot-0.1.4/src/mgplot/zz-test-data/revisions.csv +568 -0
  28. mgplot-0.1.4/src/mgplot/zz-test-data/summary.csv +568 -0
  29. mgplot-0.1.4/uv.lock +710 -0
  30. mgplot-0.1.3/PKG-INFO +0 -99
  31. mgplot-0.1.3/setup.cfg +0 -4
  32. mgplot-0.1.3/src/mgplot.egg-info/SOURCES.txt +0 -27
  33. mgplot-0.1.3/src/mgplot.egg-info/dependency_links.txt +0 -1
  34. mgplot-0.1.3/src/mgplot.egg-info/requires.txt +0 -18
  35. mgplot-0.1.3/src/mgplot.egg-info/top_level.txt +0 -1
  36. {mgplot-0.1.3 → mgplot-0.1.4}/LICENSE +0 -0
  37. {mgplot-0.1.3 → mgplot-0.1.4}/README.md +0 -0
  38. {mgplot-0.1.3 → mgplot-0.1.4}/src/mgplot/bar_plot.py +0 -0
  39. {mgplot-0.1.3 → mgplot-0.1.4}/src/mgplot/colors.py +0 -0
  40. {mgplot-0.1.3 → mgplot-0.1.4}/src/mgplot/date_utils.py +0 -0
  41. {mgplot-0.1.3 → mgplot-0.1.4}/src/mgplot/finalise_plot.py +0 -0
  42. {mgplot-0.1.3 → mgplot-0.1.4}/src/mgplot/postcovid_plot.py +0 -0
  43. {mgplot-0.1.3 → mgplot-0.1.4}/src/mgplot/py.typed +0 -0
  44. {mgplot-0.1.3 → mgplot-0.1.4}/src/mgplot/revision_plot.py +0 -0
  45. {mgplot-0.1.3 → mgplot-0.1.4}/src/mgplot/run_plot.py +0 -0
  46. {mgplot-0.1.3 → mgplot-0.1.4}/src/mgplot/seastrend_plot.py +0 -0
  47. {mgplot-0.1.3 → mgplot-0.1.4}/src/mgplot/settings.py +0 -0
  48. {mgplot-0.1.3 → mgplot-0.1.4}/src/mgplot/summary_plot.py +0 -0
  49. {mgplot-0.1.3 → mgplot-0.1.4}/src/mgplot/test.py +0 -0
@@ -0,0 +1,27 @@
1
+ # python stuff to be ignored
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # jupyter notebooks stuff to be ignored
7
+ .ipynb_checkpoints/
8
+
9
+ # vscode stuff
10
+ .vscode/
11
+
12
+ # MacOS stuff to be ignored
13
+ .DS_Store
14
+
15
+
16
+ # build files
17
+ build/
18
+ dist/
19
+ wheels/
20
+ *.egg-info
21
+
22
+ # Test
23
+ src/mgplot/zz-test-charts/**
24
+ src/mgplot/zz-unused-code-snippets/**
25
+
26
+ # Virtual environments
27
+ .venv
@@ -0,0 +1,49 @@
1
+ Version 0.1.4 - released 01-Jun-2025 (Canberra, Australia)
2
+
3
+ * minor changes
4
+ - changed the build-system
5
+ - added dynamic version numbering to __init__.py
6
+ - reworked annotations in the growth_plot.py module
7
+ and the utilities module,
8
+ - reworked kwargs validation in plot_then_finalise()
9
+ - typo in kw_type_checking.py
10
+ - tightened up function chaining in the multi-plot modules
11
+ - moved some default arguments from the finalisers module
12
+ to the line_plot module.
13
+
14
+ ---
15
+
16
+ Version 0.1.3 - released 31-May-2025 (Canberra, Australia)
17
+
18
+ * minor changes
19
+ - changed defaults for postcovid_plot() to annotate series
20
+ - changed line_plot() to bail early if nothing to plot
21
+ - added a test to ignore empty axes objects in finalise_plot()
22
+ - reduced the text size for runs in run_plot()
23
+ - added "legend" to line_plot() and the growth plots.
24
+ - if the plot function and the finalise_plot() function have
25
+ kwargs in common, they will be handled by plot() and not
26
+ sent to finalise plot (done by plot_then_finalise())
27
+ ---
28
+
29
+ Version 0.1.2 - released 30-May-2025 (Canberra, Australia)
30
+
31
+ * minor changes
32
+ - fixed an incorrect typing-gate in run_plot()
33
+ - removed repeated version code in __init__.py
34
+ - added "numpy-typing" to pyproject.toml
35
+ - added a warning if ylabel set in series_growth_plot_finalise()
36
+ - added legend=True default argument to raw_growth_plot()
37
+ ---
38
+
39
+ Version 0.1.1 - released 29-May-2025 (Canberra, Australia)
40
+
41
+ * minor changes
42
+ - added additional documentation
43
+ - disclosed additional variables in the API
44
+ - standardised the naming of the internal ExpectedTypeDicts
45
+ ---
46
+
47
+ Version 0.1.0 - released 28-May-2025 (Canberra, Australia)
48
+
49
+ ---
@@ -1,29 +1,26 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mgplot
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: mgplot is a time-series/PeriodIndex frontend for matplotlib
5
- Project-URL: Homepage, https://github.com/bpalmer4/mgplot
6
- Requires-Python: >=3.11
7
- Description-Content-Type: text/markdown
5
+ Project-URL: Repository, https://github.com/bpalmer4/mgplot.git
6
+ Project-URL: Homepage, https://github.com/bpalmer4/mgplot.git
8
7
  License-File: LICENSE
9
- Requires-Dist: typing
10
- Requires-Dist: pathlib
8
+ Requires-Python: >=3.12
9
+ Requires-Dist: black
11
10
  Requires-Dist: matplotlib
11
+ Requires-Dist: mypy
12
12
  Requires-Dist: numpy
13
+ Requires-Dist: numpy-typing
13
14
  Requires-Dist: pandas
14
- Requires-Dist: tabulate
15
- Requires-Dist: black
16
- Requires-Dist: mypy
15
+ Requires-Dist: pandas-stubs
16
+ Requires-Dist: pathlib
17
17
  Requires-Dist: pdoc
18
18
  Requires-Dist: pylint
19
19
  Requires-Dist: ruff
20
- Requires-Dist: pandas-stubs
21
- Requires-Dist: numpy-typing
20
+ Requires-Dist: tabulate
22
21
  Requires-Dist: types-tabulate
23
- Provides-Extra: build
24
- Requires-Dist: setuptools; extra == "build"
25
- Requires-Dist: cython; extra == "build"
26
- Dynamic: license-file
22
+ Requires-Dist: typing
23
+ Description-Content-Type: text/markdown
27
24
 
28
25
  mgplot
29
26
  ======
@@ -0,0 +1,6 @@
1
+ echo " "
2
+ echo "About to build the documentation ..."
3
+ cd ~/mgplot
4
+ rm -rf ./docs
5
+ pdoc ./src/mgplot -o ./docs
6
+
@@ -0,0 +1,32 @@
1
+ #!/bin/zsh
2
+ # make sure the version number is correct:
3
+ # ~/mgplot/pyproject.toml
4
+
5
+ # --- cd mgplot home and activate environment
6
+ cd ~/mgplot
7
+ deactivate
8
+ source .venv/bin/activate
9
+
10
+ # --- clean out the dist folder
11
+ if [ ! -d ./dist ]; then
12
+ mkdir dist
13
+ fi
14
+ if [ -n "$(ls -A ./dist 2>/dev/null)" ]; then
15
+ rm ./dist/*
16
+ fi
17
+
18
+ # --- remove old arrangement, sync and build
19
+ rm uv.lock
20
+ uv sync
21
+ uv build
22
+
23
+ # --- install new mgplot locally
24
+ uv pip install dist/mgplot*gz
25
+
26
+ # --- build documentation
27
+ ~/mgplot/build-docs.sh
28
+
29
+ # --- if everything is good publish and git
30
+ echo "\nAnd if everything is okay ..."
31
+ echo "uv publish --token MY_TOKEN_HERE"
32
+ echo "And don't forget to upload to github"
@@ -0,0 +1,7 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="refresh" content="0; url=./mgplot.html"/>
6
+ </head>
7
+ </html>