mgplot 0.2.28__tar.gz → 0.2.30__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.
- {mgplot-0.2.28 → mgplot-0.2.30}/CHANGELOG.md +44 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/PKG-INFO +1 -1
- {mgplot-0.2.28 → mgplot-0.2.30}/docs/mgplot/finalise_plot.html +1004 -770
- {mgplot-0.2.28 → mgplot-0.2.30}/docs/mgplot.html +110 -110
- mgplot-0.2.30/docs/search.js +46 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/pyproject.toml +1 -1
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/finalise_plot.py +165 -6
- mgplot-0.2.30/test/test_axvline_text.py +274 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/uv.lock +502 -492
- mgplot-0.2.28/docs/search.js +0 -46
- {mgplot-0.2.28 → mgplot-0.2.30}/.claude/settings.local.json +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/.gitignore +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/.pylintrc +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/.python-version +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/LICENSE +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/README.md +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/build-all.sh +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/build-docs.sh +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/docs/index.html +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/docs/mgplot/bar_plot.html +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/docs/mgplot/fill_between_plot.html +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/docs/mgplot/growth_plot.html +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/docs/mgplot/line_plot.html +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/docs/mgplot/postcovid_plot.html +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/docs/mgplot/revision_plot.html +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/docs/mgplot/run_plot.html +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/docs/mgplot/seastrend_plot.html +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/docs/mgplot/summary_plot.html +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/__init__.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/annotation_utils.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/axis_utils.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/bar_plot.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/colors.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/fill_between_plot.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/finalisers.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/growth_plot.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/keyword_checking.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/line_plot.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/lint-all.sh +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/multi_plot.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/postcovid_plot.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/py.typed +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/revision_plot.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/run_plot.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/seastrend_plot.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/settings.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/summary_plot.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/src/mgplot/utilities.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/test/test-executed.ipynb +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/test/test.ipynb +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/test/test_annotation_collision.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/test/test_bar_horizontal.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/test/test_bar_string_index.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/test/test_chart_subdir.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/test/test_multi_series_ticks.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/test/test_splat_sequences.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/test/test_tick_relabel.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/test/test_zorder.py +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/test/zz-test-data/ocr_rba.csv +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/test/zz-test-data/revisions.csv +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/test/zz-test-data/summary.csv +0 -0
- {mgplot-0.2.28 → mgplot-0.2.30}/uv-upgrade.sh +0 -0
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
Version 0.2.30 - released 21-Jul-2026 (Canberra, Australia)
|
|
2
|
+
|
|
3
|
+
* enhancement
|
|
4
|
+
- vertical lines added through the axvline keyword argument to
|
|
5
|
+
finalise_plot() can now carry a text label, placed just to the right
|
|
6
|
+
of the line and rotated to read bottom-to-top. Three new keys are
|
|
7
|
+
recognised in an axvline dict, and are removed before the rest of the
|
|
8
|
+
dict is passed to matplotlib:
|
|
9
|
+
- text: the label itself. Without it, an axvline behaves exactly as
|
|
10
|
+
it did before.
|
|
11
|
+
- loc: where the label sits, one of "auto" (the default), "top" or
|
|
12
|
+
"bottom". "auto" samples the plotted data in a narrow band around
|
|
13
|
+
the line and anchors the label at whichever end has more room
|
|
14
|
+
between the data and the axis limit; lines (from line plots) and
|
|
15
|
+
rectangles (from bar plots) are both measured, and where nothing
|
|
16
|
+
is measurable it falls back to "top".
|
|
17
|
+
- text_kwargs: a dict merged into the underlying text call, which
|
|
18
|
+
overrides any of the defaults - xx-small, rotated 90 degrees, and
|
|
19
|
+
coloured to match the line.
|
|
20
|
+
The label is anchored with x in data coordinates and y in axes
|
|
21
|
+
coordinates, so it stays pinned to the top or bottom of the plot if
|
|
22
|
+
the y-limits change afterwards. As axvline already accepted a sequence
|
|
23
|
+
of dicts, several labelled lines can be placed in one call. Labels are
|
|
24
|
+
not de-collided against each other; use an explicit loc if they crowd.
|
|
25
|
+
A bad loc, a non-dict text_kwargs, or loc/text_kwargs given without any
|
|
26
|
+
text all raise, as each is a typo rather than a choice.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
Version 0.2.29 - released 30-Jun-2026 (Canberra, Australia)
|
|
31
|
+
|
|
32
|
+
* bug fix
|
|
33
|
+
- finalise_plot() now accepts pandas Period values in the xlim and
|
|
34
|
+
xticks keyword arguments. On a period-mapped axes (one built from a
|
|
35
|
+
PeriodIndex) each Period is converted to its ordinal before being
|
|
36
|
+
passed to matplotlib, mirroring the existing handling for axvline and
|
|
37
|
+
axvspan; the Period's freq must match the axes' stashed freq, otherwise
|
|
38
|
+
a clear ValueError is raised. Previously a Period in xlim/xticks reached
|
|
39
|
+
matplotlib untranslated and raised a cryptic "ufunc 'isfinite' not
|
|
40
|
+
supported" TypeError. The xlim/xticks type hints also accept int now,
|
|
41
|
+
alongside float and Period.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
1
45
|
Version 0.2.28 - released 20-Jun-2026 (Canberra, Australia)
|
|
2
46
|
|
|
3
47
|
* enhancement
|