Comments (5)
Can't we used a logspace for X and Y with the "default" imshow pattern ? That would be a nice use case.
from cheatsheets.
Cheatsheets are meant to give a quick overview of the main functions and I had to make some choices. Regarding pcolormesh
and imshow
, I don't know if we have usage statistics but from the gallery, I think there are mostly examples using imshow
and not so many using pcolormesh
. But I may be wrong.
from cheatsheets.
I wouldn't suggest pcolormesh instead of imshow. Perhaps pcolormesh instead of xcorr
? xcorr
is just a light wrapper around np.correlate
and stem
.
The point of pcolormesh
is that it works properly with unequally spaced x and y. If someone mistakenly uses imshow
in that circumstance, their image will be off. imshow
also lays things out upside down unless you are explicitly looking at an image. Finally it has the wacky "extent" kwargs which interact so strangely with the limits and the "origin" kwarg that we have to have a whole "intermediate" tutorial to explain it (https://matplotlib.org/stable/tutorials/intermediate/imshow_extent.html)... Of course, the way we implement pcolormesh has its quirks as well ;-)
from cheatsheets.
I would need to think of an illustrative usage case. From the galley, I found only one.
from cheatsheets.
I used the same data that you used for contour
in both imshow
and pcolormesh
. For the pcolormesh
, I made dx vary in the x vector, just to show that was possible:
https://github.com/matplotlib/matplotlib/pull/19703/files
from cheatsheets.
Related Issues (20)
- A better answer about "How I rotate tick labels" HOT 3
- 'right' and 'top' in plt.subplots_adjust() are not directly padding size HOT 3
- Make cheatsheet background non-transparent? HOT 6
- Replace `step` with `stairs`? HOT 1
- Clarify when to use None / np.nan to segement data HOT 2
- Update for 3.6.0 HOT 2
- In the handout for beginners, plt.subplots(2, 1) should be used. HOT 4
- Branch protection and merge rules? HOT 4
- Cartopy version HOT 3
- Brazilian Portuguese translation HOT 2
- markevery HOT 1
- Update Beginner Cheatsheet: fig.show → plt.show HOT 3
- Grey text of the Cheastsheets is hard to read when printed HOT 6
- Error from fonts.py: missing files HOT 1
- Move image diff check to standalone GH actions workflow HOT 1
- prune the number of image interpolations and replace with new material HOT 2
- Style the website HOT 3
- The cheatsheets website should include a link to the GitHub page HOT 1
- broken links on cheatsheets site HOT 1
- Cursive font is not cursive
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cheatsheets.