mgplot 0.2.29__tar.gz → 0.2.31__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.29 → mgplot-0.2.31}/CHANGELOG.md +47 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/PKG-INFO +1 -1
- {mgplot-0.2.29 → mgplot-0.2.31}/docs/mgplot/finalise_plot.html +999 -798
- {mgplot-0.2.29 → mgplot-0.2.31}/docs/mgplot.html +108 -108
- mgplot-0.2.31/docs/search.js +46 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/pyproject.toml +1 -1
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/finalise_plot.py +163 -5
- mgplot-0.2.31/test/test_axvline_text.py +303 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/uv.lock +400 -366
- mgplot-0.2.29/docs/search.js +0 -46
- {mgplot-0.2.29 → mgplot-0.2.31}/.claude/settings.local.json +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/.gitignore +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/.pylintrc +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/.python-version +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/LICENSE +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/README.md +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/build-all.sh +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/build-docs.sh +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/docs/index.html +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/docs/mgplot/bar_plot.html +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/docs/mgplot/fill_between_plot.html +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/docs/mgplot/growth_plot.html +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/docs/mgplot/line_plot.html +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/docs/mgplot/postcovid_plot.html +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/docs/mgplot/revision_plot.html +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/docs/mgplot/run_plot.html +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/docs/mgplot/seastrend_plot.html +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/docs/mgplot/summary_plot.html +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/__init__.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/annotation_utils.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/axis_utils.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/bar_plot.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/colors.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/fill_between_plot.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/finalisers.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/growth_plot.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/keyword_checking.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/line_plot.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/lint-all.sh +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/multi_plot.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/postcovid_plot.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/py.typed +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/revision_plot.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/run_plot.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/seastrend_plot.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/settings.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/summary_plot.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/src/mgplot/utilities.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/test/test-executed.ipynb +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/test/test.ipynb +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/test/test_annotation_collision.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/test/test_bar_horizontal.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/test/test_bar_string_index.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/test/test_chart_subdir.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/test/test_multi_series_ticks.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/test/test_splat_sequences.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/test/test_tick_relabel.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/test/test_zorder.py +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/test/zz-test-data/ocr_rba.csv +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/test/zz-test-data/revisions.csv +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/test/zz-test-data/summary.csv +0 -0
- {mgplot-0.2.29 → mgplot-0.2.31}/uv-upgrade.sh +0 -0
|
@@ -1,3 +1,50 @@
|
|
|
1
|
+
Version 0.2.31 - released 22-Jul-2026 (Canberra, Australia)
|
|
2
|
+
|
|
3
|
+
* enhancement
|
|
4
|
+
- the loc key on an annotated axvline label now chooses which flank of the
|
|
5
|
+
line the label sits on, as well as which end of the plot. loc is a
|
|
6
|
+
space-separated string mixing a vertical word ("auto", the default, or
|
|
7
|
+
"top"/"bottom") with a side word ("left"/"right"); either may be omitted
|
|
8
|
+
and the order does not matter. The side places the rotated label on the
|
|
9
|
+
left or right of the line, VLINE_TEXT_OFFSET points away. An omitted side
|
|
10
|
+
defaults to "right", so a bare "auto"/"top"/"bottom" - and any code
|
|
11
|
+
written against 0.2.30 - behaves exactly as before. A loc naming two
|
|
12
|
+
vertical words, two side words, or an unrecognised word raises, as each
|
|
13
|
+
is a typo rather than a choice.
|
|
14
|
+
- the default gap between a label and its line (VLINE_TEXT_OFFSET) is now
|
|
15
|
+
2 points rather than 3, pulling the text in a little closer.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
Version 0.2.30 - released 21-Jul-2026 (Canberra, Australia)
|
|
20
|
+
|
|
21
|
+
* enhancement
|
|
22
|
+
- vertical lines added through the axvline keyword argument to
|
|
23
|
+
finalise_plot() can now carry a text label, placed just to the right
|
|
24
|
+
of the line and rotated to read bottom-to-top. Three new keys are
|
|
25
|
+
recognised in an axvline dict, and are removed before the rest of the
|
|
26
|
+
dict is passed to matplotlib:
|
|
27
|
+
- text: the label itself. Without it, an axvline behaves exactly as
|
|
28
|
+
it did before.
|
|
29
|
+
- loc: where the label sits, one of "auto" (the default), "top" or
|
|
30
|
+
"bottom". "auto" samples the plotted data in a narrow band around
|
|
31
|
+
the line and anchors the label at whichever end has more room
|
|
32
|
+
between the data and the axis limit; lines (from line plots) and
|
|
33
|
+
rectangles (from bar plots) are both measured, and where nothing
|
|
34
|
+
is measurable it falls back to "top".
|
|
35
|
+
- text_kwargs: a dict merged into the underlying text call, which
|
|
36
|
+
overrides any of the defaults - xx-small, rotated 90 degrees, and
|
|
37
|
+
coloured to match the line.
|
|
38
|
+
The label is anchored with x in data coordinates and y in axes
|
|
39
|
+
coordinates, so it stays pinned to the top or bottom of the plot if
|
|
40
|
+
the y-limits change afterwards. As axvline already accepted a sequence
|
|
41
|
+
of dicts, several labelled lines can be placed in one call. Labels are
|
|
42
|
+
not de-collided against each other; use an explicit loc if they crowd.
|
|
43
|
+
A bad loc, a non-dict text_kwargs, or loc/text_kwargs given without any
|
|
44
|
+
text all raise, as each is a typo rather than a choice.
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
1
48
|
Version 0.2.29 - released 30-Jun-2026 (Canberra, Australia)
|
|
2
49
|
|
|
3
50
|
* bug fix
|