Skip to content

[pull] master from matplotlib:master #2

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 187 commits into
base: master
Choose a base branch
from

Conversation

pull[bot]
Copy link

@pull pull bot commented Sep 30, 2021

See Commits and Changes for more details.


Created by pull[bot]

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

uihsnv and others added 30 commits July 21, 2021 22:23
Move Type1Font._tokens into a top-level function _tokenize that is a
coroutine. The parsing stage consuming the tokens can instruct the
tokenizer to return a binary token - this is necessary when decrypting
the CharStrings and Subrs arrays, since the preceding context determines
which parts of the data need to be decrypted.

The function now also parses the encrypted portion of the font file.

To support usage as a coroutine, move the whitespace filtering into the
function, since passing the information about binary tokens would not
easily work through a filter.

The function now returns tokens as subclasses of a new _Token class,
which carry the position and value of the token and can have
token-specific helper methods. The position data will be needed when
modifying the file, as the font is transformed or subsetted.

A new helper function _expression can be used to consume tokens that
form a balanced subexpression delimited by [] or {}. This helps fix a
bug in UniqueID removal: if the font includes PostScript code that
checks if the UniqueID is set in the current dictionary, the previous
code broke that code instead of removing the UniqueID definition. Fonts
can include UniqueID in the encrypted portion as well as the cleartext
one, and removal is now done in both portions.

Fix a bug related to font weight: the key is title-cased and not
lower-cased, so font.prop['weight'] should not exist.
Type-1 fonts are required to have subroutines with specific contents
but their names may vary. They are usually ND, NP and RD but names
like | and |- appear too.
Improvement was done in instantiating new instance
utilizing deep copy should preserve immutability of
MarkerStyle members (e.g. Path, or Transform).
Added, translated, scaled, and rotated methods with test.
Apply suggestion from @timhoffm, update lib/matplotlib/markers.py

Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
This prevents them accidentally breaking the test runner itself,
depending on platform.
This toggles defaults for the image compression, HiDPI images, theme
navigation, and analytics.
timhoffm and others added 28 commits October 14, 2021 20:03
DOC: move usage tutorial info to Users guide rst
Inherit more docstrings.
Simplify _init_legend_box.
ENH: Add support to save images in WebP format
Simplify wording of allowed errorbar() error values
Add GHA testing whether files were added and deleted in the same PR.
The exception message is clearer for end users than downstream callers
failing to `open()` a file named `""`.

Also update the function's docstring.

_tfmfile now never returns None (an exception would have been raised
earlier by find_tex_file), so remove the corresponding branch.
Raise an exception when find_tex_file fails to find a file.
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
Describe possible need for loading the 'lmodern' package when using PGF files
Currently, the scatter_hist example needs to force the main axes to be
square by carefully adjusting the figure size -- shared axes and fixed
aspects don't work well together (and manually resizing the figure shows
that the aspect is indeed not fixed).  In fact, the
scatter_hist_locatable_axes example explicitly states that the advantage
of using axes_grid1 is to allow the aspect to be fixed.

I realized that one can also use inset_axes to position the marginals
axes relative to the main axes *and* support a fixed aspect ratio for
the main axes.  Perhaps this can be considered as a slight API abuse,
but I think this is a solution for a real limitation; the question is
whether we want to promote this use?
Demonstrate inset_axes in scatter_hist example.
We don't need to drop the alpha channel for jpeg anymore as imsave
handles that.

In imsave, also clarify that `sm` is not going to be used in the
already-usable-rgba case.

Also, spliting out pil_kwargs under "other parameters" seems overkill
for an effectively internal method (`savefig` is the user-facing API).
Enable tests for text path based markers
Document what indexing a GridSpec returns
Factor common parts of saving to different formats using pillow.
Log pixel coordinates in event_handling coords_demo example on terminal/console
@tacaswell tacaswell deleted the branch labaran1:master October 20, 2021 19:53
@tacaswell tacaswell deleted the master branch October 20, 2021 19:53
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.