-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite the barcode example #17922
Conversation
I'd say that in the example? Or do you want it to be an easter egg? |
It doesn't really add to the example. So, I'd leave it as an easter egg. But no strong preference. |
This 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.
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.
Fine, though not sure about the DPI
ax2.set_axis_off() | ||
ax2.imshow(x.reshape((1, -1)), **barprops) | ||
pixel_per_bar = 4 | ||
dpi = 100 |
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.
So not sure this matters, but we save at 200 dpi now, don't we?
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.
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?
I don't think there's any 200 dpi yet, so merging. |
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.