Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: DWesl/matplotlib
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: matplotlib/matplotlib
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 19 commits
  • 20 files changed
  • 7 contributors

Commits on Apr 29, 2025

  1. Rework mapping of dvi glyph indices to freetype indices.

    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).
    anntzer committed Apr 29, 2025
    Configuration menu
    Copy the full SHA
    a3c14cf View commit details
    Browse the repository at this point in the history

Commits on May 6, 2025

  1. Configuration menu
    Copy the full SHA
    4e75193 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    96ac88f View commit details
    Browse the repository at this point in the history
  3. Merge pull request matplotlib#30015 from dstansby/nth-coord-depr

    Expire deprecation of nth_coord arguments
    QuLogic authored May 6, 2025
    Configuration menu
    Copy the full SHA
    2366f57 View commit details
    Browse the repository at this point in the history
  4. Merge pull request matplotlib#30014 from dstansby/rm-tick-iterator

    Remove deprecated get_tick_iterator()
    QuLogic authored May 6, 2025
    Configuration menu
    Copy the full SHA
    35976c9 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2025

  1. Remove unused _api import

    The combination of matplotlib#30014 and matplotlib#30015 made this import redundant, but as
    each PR was indepenently tested and reviewed, nothing was evident until
    both were merged.
    QuLogic committed May 7, 2025
    Configuration menu
    Copy the full SHA
    b4d532f View commit details
    Browse the repository at this point in the history
  2. Merge pull request matplotlib#30023 from QuLogic/fix-lint

    Remove unused `_api` import
    timhoffm authored May 7, 2025
    Configuration menu
    Copy the full SHA
    b4cb934 View commit details
    Browse the repository at this point in the history
  3. Micro-optimize _to_rgba_no_colorcycle.

    This patch speeds up conversions of `#rgba`-type formats by between 25%
    and 40% (while shortening the implementation), although real benefits
    should be limited because of caching in to_rgba.
    anntzer committed May 7, 2025
    Configuration menu
    Copy the full SHA
    c004e49 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2025

  1. Make PdfFile font-related attributes private.

    They are clearly intended for internal use, and we may want to change
    their internal representation in the future to support xetex/luatex
    (which expose more font types).
    anntzer committed May 8, 2025
    Configuration menu
    Copy the full SHA
    a93e681 View commit details
    Browse the repository at this point in the history
  2. Merge pull request matplotlib#29829 from anntzer/dvi2ft

    Rework mapping of dvi glyph indices to freetype indices.
    story645 authored May 8, 2025
    Configuration menu
    Copy the full SHA
    3da6ea9 View commit details
    Browse the repository at this point in the history
  3. Merge pull request matplotlib#30027 from anntzer/pfp

    Make PdfFile font-related attributes private.
    jklymak authored May 8, 2025
    Configuration menu
    Copy the full SHA
    99a521b View commit details
    Browse the repository at this point in the history
  4. Merge pull request matplotlib#30020 from anntzer/trnc

    Micro-optimize _to_rgba_no_colorcycle.
    QuLogic authored May 8, 2025
    Configuration menu
    Copy the full SHA
    6dcfa9d View commit details
    Browse the repository at this point in the history

Commits on May 9, 2025

  1. Configuration menu
    Copy the full SHA
    ac52254 View commit details
    Browse the repository at this point in the history
  2. Corrected subplots_adjust diagram

    ellie committed May 9, 2025
    Configuration menu
    Copy the full SHA
    dd7f51b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    785140b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    da6b32e View commit details
    Browse the repository at this point in the history
  5. Merge pull request matplotlib#30029 from Bindi003/fix-subplots-adjust…

    …-diagram
    
    Update diagram in subplots_adjust documentation to clarify parameters
    timhoffm authored May 9, 2025
    Configuration menu
    Copy the full SHA
    f7051b5 View commit details
    Browse the repository at this point in the history
  6. Merge pull request matplotlib#30006 from dstansby/lint-pyi

    Enable linting of .pyi files
    timhoffm authored May 9, 2025
    Configuration menu
    Copy the full SHA
    75d9199 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2025

  1. Remove meson-python pinning (matplotlib#30035)

    Version 0.18 should restore handling of symlinks:
    mesonbuild/meson-python#728
    QuLogic authored May 10, 2025
    Configuration menu
    Copy the full SHA
    03fa1ff View commit details
    Browse the repository at this point in the history
Loading