-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
FIX: fix bad string handling in type1font #4472
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
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Binary file added
BIN
+114 KB
lib/matplotlib/tests/baseline_images/test_backend_pdf/test_type1font_encoding.pdf
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,3 +87,13 @@ def test_multipage_keep_empty(): | |
pdf.savefig() | ||
assert os.path.exists(filename) | ||
os.remove(filename) | ||
|
||
|
||
@image_comparison(baseline_images=['test_type1font_encoding'], | ||
extensions=['pdf']) | ||
def test_type1font_encoding(): | ||
# This doesn't work | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you intend to leave this comment here? It's baffling. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is a typo from modifying the bug report example to be a test, should have been removed. |
||
rcParams['font.serif'] = "Times, serif" | ||
rcParams['text.usetex'] = "true" | ||
fig, ax = plt.subplots() | ||
ax.set_xlabel("$\gamma$") |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps there's no alternative, but I think all those tex packages are huge and will slow down the builds. The existing lines below indicate that the penalty might be reduced by using --no-install-recommends.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did that --no-install-recommends for building the documentation. As I remember it it saved a few 100 MB download. In any case this is only relevant on the colour overhaul branch. On master we are using a container build which handles this different.