mgplot 0.2.27__tar.gz → 0.2.29__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 (61) hide show
  1. {mgplot-0.2.27 → mgplot-0.2.29}/CHANGELOG.md +50 -0
  2. {mgplot-0.2.27 → mgplot-0.2.29}/PKG-INFO +1 -1
  3. {mgplot-0.2.27 → mgplot-0.2.29}/docs/mgplot/finalise_plot.html +800 -762
  4. {mgplot-0.2.27 → mgplot-0.2.29}/docs/mgplot/line_plot.html +500 -424
  5. {mgplot-0.2.27 → mgplot-0.2.29}/docs/mgplot/postcovid_plot.html +1 -0
  6. {mgplot-0.2.27 → mgplot-0.2.29}/docs/mgplot/revision_plot.html +100 -82
  7. {mgplot-0.2.27 → mgplot-0.2.29}/docs/mgplot/run_plot.html +1 -0
  8. {mgplot-0.2.27 → mgplot-0.2.29}/docs/mgplot.html +290 -256
  9. mgplot-0.2.29/docs/search.js +46 -0
  10. {mgplot-0.2.27 → mgplot-0.2.29}/pyproject.toml +1 -1
  11. mgplot-0.2.29/src/mgplot/annotation_utils.py +324 -0
  12. {mgplot-0.2.27 → mgplot-0.2.29}/src/mgplot/axis_utils.py +2 -1
  13. {mgplot-0.2.27 → mgplot-0.2.29}/src/mgplot/finalise_plot.py +39 -3
  14. {mgplot-0.2.27 → mgplot-0.2.29}/src/mgplot/line_plot.py +33 -8
  15. {mgplot-0.2.27 → mgplot-0.2.29}/src/mgplot/revision_plot.py +2 -0
  16. {mgplot-0.2.27 → mgplot-0.2.29}/src/mgplot/settings.py +2 -2
  17. mgplot-0.2.29/test/test_annotation_collision.py +97 -0
  18. {mgplot-0.2.27 → mgplot-0.2.29}/uv.lock +174 -198
  19. mgplot-0.2.27/docs/search.js +0 -46
  20. {mgplot-0.2.27 → mgplot-0.2.29}/.claude/settings.local.json +0 -0
  21. {mgplot-0.2.27 → mgplot-0.2.29}/.gitignore +0 -0
  22. {mgplot-0.2.27 → mgplot-0.2.29}/.pylintrc +0 -0
  23. {mgplot-0.2.27 → mgplot-0.2.29}/.python-version +0 -0
  24. {mgplot-0.2.27 → mgplot-0.2.29}/LICENSE +0 -0
  25. {mgplot-0.2.27 → mgplot-0.2.29}/README.md +0 -0
  26. {mgplot-0.2.27 → mgplot-0.2.29}/build-all.sh +0 -0
  27. {mgplot-0.2.27 → mgplot-0.2.29}/build-docs.sh +0 -0
  28. {mgplot-0.2.27 → mgplot-0.2.29}/docs/index.html +0 -0
  29. {mgplot-0.2.27 → mgplot-0.2.29}/docs/mgplot/bar_plot.html +0 -0
  30. {mgplot-0.2.27 → mgplot-0.2.29}/docs/mgplot/fill_between_plot.html +0 -0
  31. {mgplot-0.2.27 → mgplot-0.2.29}/docs/mgplot/growth_plot.html +0 -0
  32. {mgplot-0.2.27 → mgplot-0.2.29}/docs/mgplot/seastrend_plot.html +0 -0
  33. {mgplot-0.2.27 → mgplot-0.2.29}/docs/mgplot/summary_plot.html +0 -0
  34. {mgplot-0.2.27 → mgplot-0.2.29}/src/mgplot/__init__.py +0 -0
  35. {mgplot-0.2.27 → mgplot-0.2.29}/src/mgplot/bar_plot.py +0 -0
  36. {mgplot-0.2.27 → mgplot-0.2.29}/src/mgplot/colors.py +0 -0
  37. {mgplot-0.2.27 → mgplot-0.2.29}/src/mgplot/fill_between_plot.py +0 -0
  38. {mgplot-0.2.27 → mgplot-0.2.29}/src/mgplot/finalisers.py +0 -0
  39. {mgplot-0.2.27 → mgplot-0.2.29}/src/mgplot/growth_plot.py +0 -0
  40. {mgplot-0.2.27 → mgplot-0.2.29}/src/mgplot/keyword_checking.py +0 -0
  41. {mgplot-0.2.27 → mgplot-0.2.29}/src/mgplot/lint-all.sh +0 -0
  42. {mgplot-0.2.27 → mgplot-0.2.29}/src/mgplot/multi_plot.py +0 -0
  43. {mgplot-0.2.27 → mgplot-0.2.29}/src/mgplot/postcovid_plot.py +0 -0
  44. {mgplot-0.2.27 → mgplot-0.2.29}/src/mgplot/py.typed +0 -0
  45. {mgplot-0.2.27 → mgplot-0.2.29}/src/mgplot/run_plot.py +0 -0
  46. {mgplot-0.2.27 → mgplot-0.2.29}/src/mgplot/seastrend_plot.py +0 -0
  47. {mgplot-0.2.27 → mgplot-0.2.29}/src/mgplot/summary_plot.py +0 -0
  48. {mgplot-0.2.27 → mgplot-0.2.29}/src/mgplot/utilities.py +0 -0
  49. {mgplot-0.2.27 → mgplot-0.2.29}/test/test-executed.ipynb +0 -0
  50. {mgplot-0.2.27 → mgplot-0.2.29}/test/test.ipynb +0 -0
  51. {mgplot-0.2.27 → mgplot-0.2.29}/test/test_bar_horizontal.py +0 -0
  52. {mgplot-0.2.27 → mgplot-0.2.29}/test/test_bar_string_index.py +0 -0
  53. {mgplot-0.2.27 → mgplot-0.2.29}/test/test_chart_subdir.py +0 -0
  54. {mgplot-0.2.27 → mgplot-0.2.29}/test/test_multi_series_ticks.py +0 -0
  55. {mgplot-0.2.27 → mgplot-0.2.29}/test/test_splat_sequences.py +0 -0
  56. {mgplot-0.2.27 → mgplot-0.2.29}/test/test_tick_relabel.py +0 -0
  57. {mgplot-0.2.27 → mgplot-0.2.29}/test/test_zorder.py +0 -0
  58. {mgplot-0.2.27 → mgplot-0.2.29}/test/zz-test-data/ocr_rba.csv +0 -0
  59. {mgplot-0.2.27 → mgplot-0.2.29}/test/zz-test-data/revisions.csv +0 -0
  60. {mgplot-0.2.27 → mgplot-0.2.29}/test/zz-test-data/summary.csv +0 -0
  61. {mgplot-0.2.27 → mgplot-0.2.29}/uv-upgrade.sh +0 -0
@@ -1,3 +1,53 @@
1
+ Version 0.2.29 - released 30-Jun-2026 (Canberra, Australia)
2
+
3
+ * bug fix
4
+ - finalise_plot() now accepts pandas Period values in the xlim and
5
+ xticks keyword arguments. On a period-mapped axes (one built from a
6
+ PeriodIndex) each Period is converted to its ordinal before being
7
+ passed to matplotlib, mirroring the existing handling for axvline and
8
+ axvspan; the Period's freq must match the axes' stashed freq, otherwise
9
+ a clear ValueError is raised. Previously a Period in xlim/xticks reached
10
+ matplotlib untranslated and raised a cryptic "ufunc 'isfinite' not
11
+ supported" TypeError. The xlim/xticks type hints also accept int now,
12
+ alongside float and Period.
13
+
14
+ ---
15
+
16
+ Version 0.2.28 - released 20-Jun-2026 (Canberra, Australia)
17
+
18
+ * enhancement
19
+ - end-of-line value annotations in line_plot() (and everything that
20
+ routes through it, including growth_plot() and seastrend_plot())
21
+ are now de-collided automatically. line_plot() registers the label
22
+ artists on the axes and finalise_plot() spreads them once the figure
23
+ layout is final, so the de-collision is measured against what is
24
+ actually saved. The algorithm works in display coordinates:
25
+ - a label that overlaps another label or a plotted line (over its
26
+ own horizontal span) is nudged vertically by at most its own
27
+ height to find a clear slot;
28
+ - if that fails and the line ends within near_end (default 0.1) of
29
+ the data width from the right edge, the label is snapped across
30
+ to the rightmost data point and stacked vertically with the other
31
+ end-of-axes labels;
32
+ - if that fails for an interior label, the position with the most
33
+ clearance is kept (overlap is accepted rather than moving the
34
+ label off its line end);
35
+ - line avoidance never applies to a label sitting at the last data
36
+ point, whose text extends into the right margin.
37
+ Added a near_end keyword to LineKwargs to tune the snap threshold.
38
+ New module annotation_utils.py implements the resolver; new tests in
39
+ test/test_annotation_collision.py.
40
+ - revision_plot() (and revision_plot_finalise()) now default near_end
41
+ to 0.0 instead of inheriting the 0.1 default, so the near-identical
42
+ vintage labels that bunch at the right edge are no longer snapped and
43
+ stacked against the right border. Callers can still pass near_end to
44
+ override.
45
+ - tweaked the default colour palettes in settings.py: the single-series
46
+ colour is now "blue" (was "#dd0000"), and the 5-series palette uses
47
+ "cornflowerblue" and "brown" in place of "seagreen" and "#dd0000".
48
+
49
+ ---
50
+
1
51
  Version 0.2.27 - released 19-Jun-2026 (Canberra, Australia)
2
52
 
3
53
  * bug fix
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mgplot
3
- Version: 0.2.27
3
+ Version: 0.2.29
4
4
  Summary: mgplot is a time-series/PeriodIndex frontend for matplotlib
5
5
  Project-URL: Repository, https://github.com/bpalmer4/mgplot
6
6
  Project-URL: Homepage, https://github.com/bpalmer4/mgplot