Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Rewrite the barcode example#17922

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
QuLogic merged 1 commit intomatplotlib:masterfromtimhoffm:doc-barcode
Jul 17, 2020
Merged

Conversation

timhoffm
Copy link
Member

PR Summary

This example is a bit particular anyway, but let's make it practical by
generating a real bar code and not only some random lines.

Fun fact: The used code is the GTIN-13 for "The Visual Display of
Quantitative Information", Edward R. Tufte.

@jklymak
Copy link
Member

I'd say that in the example? Or do you want it to be an easter egg?

@timhoffm
Copy link
MemberAuthor

It doesn't really add to the example. So, I'd leave it as an easter egg. But no strong preference.

jklymak and tacaswell reacted with thumbs up emoji

@timhoffmtimhoffm added this to thev3.4.0 milestoneJul 14, 2020
This is a bit particular anyway, but let's make it practical bygenerating a real bar code and not only some random lines.Fun fact: The used code is the GTIN-13 for "The Visual Display ofQuantitative Information", Edward R. Tufte.
Copy link
Member

@jklymakjklymak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Fine, though not sure about the DPI

ax2.set_axis_off()
ax2.imshow(x.reshape((1, -1)), **barprops)
pixel_per_bar = 4
dpi = 100
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

So not sure this matters, but we save at 200 dpi now, don't we?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Um, I don't think so. When did that happen?

We now oversample the thumbnails in the gallery (#17734). But that does not affect the images in the examples themselves. Maybe you are mixig this up?

@QuLogic
Copy link
Member

I don't think there's any 200 dpi yet, so merging.

@QuLogicQuLogic merged commit38c41ae intomatplotlib:masterJul 17, 2020
@timhoffmtimhoffm deleted the doc-barcode branchJuly 17, 2020 06:41
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic approved these changes

@jklymakjklymakjklymak approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.4.0
Development

Successfully merging this pull request may close these issues.

3 participants
@timhoffm@jklymak@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp