forked from matplotlib/matplotlib
-
Notifications
You must be signed in to change notification settings - Fork 0
[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
pull
wants to merge
194
commits into
ishandutta2007:main
Choose a base branch
from
matplotlib:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: Jody Klymak <[email protected]>
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.
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).
FIX: Typing of FuncAnimation
* 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
Co-authored-by: hannah <[email protected]>
Co-authored-by: hannah <[email protected]>
Update to docs with regards to colorbar and colorizer
DOC: Document the properties of Normalize
DOC: Clarify that types in docstrings do not use formal type annotation syntax
I'm not sure why this was added originally, but it seems unnecessary. Fortunately, the waste was probably avoided by LTO.
…0130) When the subplot tool already exists, then it is shown, but never returned. This seems to be an accident.
CI: Skip jobs on forks
Fill hatch in PDF backend
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.
Type-1 font subsetting
…nd then scale them'
Signed-off-by: Emmanuel Ferdman <[email protected]>
Throw exception when alpha is out of bounds
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 : )