Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[pull] main from matplotlib:main #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 211 commits into
base: main
Choose a base branch
from
Open

Conversation

pull[bot]
Copy link

@pull pull bot commented Apr 29, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

tacaswell and others added 9 commits February 24, 2025 14:01
Co-authored-by: Tim Hoffmann <[email protected]>
Co-authored-by: Tim Hoffmann <[email protected]>
This is shorter and more readable than defining them with
single-use static functions positioned quite far away from the
def_property_readonly calls.
`func` and `init_func` may return None (which is ok if `blit=False`).
Since gating the allowed signature on the state of `blit` is not
feasible, we err on the side on being too permissive in the type
definition: Rather not flag a type error and only raise on runtime than
complain on an actually working signature.

Closes #29960.
Use inline lambdas to define most FT2Font properties.
@pull pull bot added the ⤵️ pull label Apr 29, 2025
anntzer and others added 20 commits April 29, 2025 15:20
In 89a7e19, an API for converting "dvi glyph indices" (as stored
in a dvi file) to FreeType-compatible keys (either "indices into
the native charmap" or "glyph names") was introduced.  It was
intended that end users (i.e., backends) would check the type of
`text.glyph_name_or_index` ((A) int or (B) str) and load the glyph
accordingly ((A) `FT_Set_Charmap(native_cmap); FT_Load_Char(index);` or
(B) `FT_Load_Glyph(FT_Get_Name_Index(name));`); however, with the future
introduction of {xe,lua}tex support, this kind of type checking becomes
inconvenient, because {xe,lua}tex's "dvi glyph indices", which are
directly equal to FreeType glyph indices (i.e. they would be loaded with
`FT_Load_Glyph(index);`), would normally also be converted to ints.

This PR introduces a new API (`Text.index`) that performs this mapping
(via the new `DviFont._index_dvi_to_freetype`), always mapping to
FreeType glyph indices (i.e. one can always just call `FT_Load_Glyph`
on the result).  To do so, in case (A) it loads itself the native
charmap (something the end user needed to do by themselves previously)
and performs the cmap-to-index conversion (`FT_Get_Char_Index`)
previously implicit in `FT_Load_Char`; in case (B) it performs itself
the name-to-index conversion (`FT_Get_Name_Index`).  When {xe,lua}tex
support is introduced in the future, `_index_dvi_to_freetype` will
just return the index as is.

The old APIs are not deprecated yet, as other changes will occur for
{xe,lua}tex support (e.g. font_effects will go away and be replaced by
`.font.effects`, as {xe,lua}tex don't store that info in the pdftexmap
entry), and grouping all API changes together seems nicer (to only
require a single adaptation step by the API consumer).
* DOC: Improve NonUniformImage docs

* Update lib/matplotlib/image.py

Co-authored-by: David Stansby <[email protected]>

---------

Co-authored-by: David Stansby <[email protected]>
* Adding elinestyle property to errorbar and test case

* whitespaces in testcase

* Update lib/matplotlib/axes/_axes.py

Co-authored-by: Tim Hoffmann <[email protected]>

* Update set eb_line_style and fix formatting issues

* Remove extra line from test_axes

* Break line to reduce width in text_axes.py

* Remove trailing whitespaces from axes and test_axes.py

* Move elinestyle to the end of the list

* Shorten line length in axes.py

* accessing the correct property 'linestyle' in eb_line_style

* removing unused code

* Update lib/matplotlib/axes/_axes.pyi

Co-authored-by: Elliott Sales de Andrade <[email protected]>

* pyplot.py unwanted changes reverted

* Adding extra blank lines to fix style errors, and removing unnecessary asserts

* Updating test_axes.py tp test for dashed lines instead of default

* Style fix

---------

Co-authored-by: Tim Hoffmann <[email protected]>
Co-authored-by: Elliott Sales de Andrade <[email protected]>
Improve layout of cheatsheets in sidebar
Fix specifying number of levels with log contour
The windows-2019 image will be deprecated on 1.6.2025.
Also, this is a test whether the timeouts #29797 are related to the
windows-2019 image.
DOC: Add descriptions to matplotlib.typing
Fix typo: missing singlequote in unrecognized backend exception
QuLogic and others added 30 commits June 4, 2025 16:11
CodeQL is now complaining about these. This should be okay since we only
talk to ourselves, but better to be safe about it.
js: Fix externally-controlled format strings
BLD: Remove FreeType from Agg backend extension
ENH: Add grouped_bar() method
Remove deprecations: is_bbox and more
The DejaVu and Heuristica fonts are used by the type-1 font
subsetting tests.

Heuristica has a Cyrillic encoding and apparently cannot be
loaded without installing texlive-lang-cyrillic.
We now subset Type-1 fonts and no longer have a copy of ttconv.

Make the font comparison table a grid table so we can use a colspan
cell.

Clarify that Type-1 fonts get used only in the usetex/pdf combination.
Throw exception when alpha is out of bounds
Bumps the actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action).


Updates `github/codeql-action` from 3.28.18 to 3.28.19
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@ff0a06e...fca7ace)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 3.28.19
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Elliott Sales de Andrade <[email protected]>
TST: Fix runtime error checking NaN input to format_cursor_data
Fixed an off-by-half-pixel bug in image resampling when using a nonaffine transform (e.g., a log axis)
…ctions-694872dfd1

Bump github/codeql-action from 3.28.18 to 3.28.19 in the actions group
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.