Skip to content
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

matplotlib examples appear to be broken #112

Open
buzmeg opened this issue Jul 8, 2019 · 5 comments
Open

matplotlib examples appear to be broken #112

buzmeg opened this issue Jul 8, 2019 · 5 comments
Labels
good first issue good for first-time contributors

Comments

@buzmeg
Copy link

buzmeg commented Jul 8, 2019

Most of the matplotlib (but not all--hello-world.py and glyph-vector.py, for example, seem to be okay.) examples are having issues. I'm on OS X 10.12.6.

Screenshots attached:
Screen Shot 2019-07-08 at 12 50 48 PM
Screen Shot 2019-07-08 at 12 51 24 PM
Screen Shot 2019-07-08 at 12 51 49 PM
Screen Shot 2019-07-08 at 12 52 46 PM
Screen Shot 2019-07-08 at 12 53 14 PM
Screen Shot 2019-07-08 at 12 53 37 PM
Screen Shot 2019-07-08 at 12 56 09 PM
Screen Shot 2019-07-08 at 12 57 11 PM
Screen Shot 2019-07-08 at 12 57 51 PM

@HinTak
Copy link
Collaborator

HinTak commented Jul 9, 2019

What do you mean by broken? They are upside down, and in the vector-2 example, the outline is upside down compared to the filled shape. (there is an issue about that already)

@rougier
Copy link
Owner

rougier commented Jul 15, 2019

Probably due to the origin argument ('lower' or 'upper') in imshow.

@buzmeg
Copy link
Author

buzmeg commented Jul 15, 2024

Closing since no progress for 5 years.

@buzmeg buzmeg closed this as completed Jul 15, 2024
@HinTak
Copy link
Collaborator

HinTak commented Jul 15, 2024

Well, they are examples, so not really urgent to fix... and fixing them would be somewhat a good first issue for new contributors.

@HinTak HinTak reopened this Jul 15, 2024
@HinTak
Copy link
Collaborator

HinTak commented Jul 15, 2024

I'd expand on the earlier comment from @rougier - the problem is likely just the difference in the convention of the co-ordinates in glyph contours, and matplotlib . Matplotlib likely have the origin at the bottom left corner with the y-axis increasing UPWARD, as is custom in mathematics graph plotting. Many (the majority, really, of) computer screen drawing systems have it organised as like how the early computer screens draw things, starting at the top right corner going downward. I think postscript and cairo both have this convention: (0,0) is top right, y-axis increasing DOWNWARD.

Anyway, this is a good new contributor issue...

@HinTak HinTak added the good first issue good for first-time contributors label Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue good for first-time contributors
Projects
None yet
Development

No branches or pull requests

3 participants