-
Sponsor
Sponsor matplotlib/matplotlib
- Notifications
- Star 13.9k
- Fork 5.9k
master
Commits on Jul 12, 2021
-
Merge pull request #20632 from timhoffm/ticklabels-empty-str
Use ticklabels([]) instead of ticklabels('') -
Use ticklabels([]) instead of ticklabels('')
The string variant is not supported according to the docstring. It's only working by accident.
Commits on Jul 10, 2021
-
Merge pull request #20608 from vagrantc/respect-source-date-epoch-in-…
…documentation
-
Merge pull request #20609 from jklymak/fix-figbox-depr
FIX: fix figbox deprecation
-
-
Merge pull request #20621 from jklymak/tst-just-one-circle
TST/DOC: just run circle once...
Commits on Jul 9, 2021
Commits on Jul 8, 2021
-
-
Merge pull request #20498 from timhoffm/doc-release-guide-release-notes
Adapt the release guide to the new release notes structure
-
doc/conf.py: if set, use SOURCE_DATE_EPOCH to set copyright year.
The build date of the software shouldn't really have any bearing on the copyright dates, but by respecting SOURCE_DATE_EPOCH, it at least limits this to the last time something in the source was changed. https://reproducible-builds.org/specs/source-date-epoch/
-
-
Merge pull request #20601 from QuLogic/hide-widget-state
Hide some `_SelectorWidget` state internals.
-
Merge pull request #20600 from anntzer/inline-_print_svg
Inline _print_svg into its only call site (print_svg).
-
Merge pull request #20589 from QuLogic/size-cursors
Add directional sizing cursors
-
-
Hide some
_SelectorWidgetstate internals.For example, `eventrelease` is only set in the `release` handler, before calling the subclass's `_release`, and then immediately set to `None`. Within that time, it could be accessed from the `onselect` handler, but that's just the second argument passed to it anyway. So there's not really any use for `eventrelease` as a class attribute. The other two are similarly internal state tracking, and should not be modified externally.
-
It is not used at all anymore (its vertices are not even set correctly) since the switch to ColorbarAxes.
-
Inline _print_svg into its only call site (print_svg).
Splitting the implementation in two parts doesn't buy us anything, and merging them makes it easier to have an explicit signature on print_svg.
-
Merge pull request #20598 from anntzer/svgkwz
Don't forget to propagate kwargs from print_svgz to print_svg.
-
Merge pull request #19495 from anntzer/svgbasename
Move svg basename detection down to RendererSVG.
-
Add directional sizing cursors.
Tested on GTK, macOS, NbAgg, Qt, and Tk.
-
-
-
Translate cursors to webagg/nbagg on the Python side.
The JavaScript side is just strings and not some special type, so it's nicer to translate on the Python side. This way, we don't have to remember what the Python Enum is on the JS side.
-
Merge pull request #20501 from jklymak/colorbar-try3-justmod-transform
Colorbar redo again!
Commits on Jul 7, 2021
-
Don't forget to propagate kwargs from print_svgz to print_svg.
Otherwise metadata gets silently dropped, as well as correct support for rasterized elements in tight_bbox outputs. Try e.g. `plot([0, 1], rasterized=True); savefig("test.svgz")` and note that the line is drawn incorrectly. Don't bother with `*args`, which are ignored anyways. -
Move svg basename detection down to RendererSVG.
This means one fewer argument to track down the call stack (avoiding passing it from print_svg to RendererSVG). Wrapping the file object in a TextIOWrapper (as done in print_svg) forwards the `.name` to the wrapper, so we're fine there.
-
Previous overhaul packaged an inner and outer axes in a container "ColorbarAxes" and tried to dispatch methods between them. This overhaul takes the _much_ simpler approach of resizing the image using a custom _axes_locator that a) calls any existing locator b) or just uses the axes default position. The custom _axes_locator then shrinks the axes in the appropriate direction to make room for extend tri/rectangles. As with the previous fix, the extend tri/rectangles are drawn as patches in axes co-ordinates, rather than pcolormesh in "data" co-ordinates.
-
Merge pull request #20407 from anntzer/axis_name-shared-stale
Turn shared_axes, stale_viewlims into {axis_name: value} dicts. -
Merge pull request #18966 from impact27/non_modal_dialog
PR: Remove modality of figure options
-
Merge pull request #19265 from ianhi/style-slider-for-real
Change styling of slider widgets
-
Update lib/matplotlib/colors.py
Co-authored-by: hannah <story645@gmail.com>
-
Merge pull request #20590 from QuLogic/fix-norm-docs
Fix class docstrings for Norms created from Scales.