question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No pcolormesh referenced

See original GitHub issue

Folks should be usingpcolormesh in general rather than imshow - imshow really only works for equally spaced pixels, and there is lots of data that is not laid out that way. However the cheatsheet doesn’t mention pcolormesh.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rougiercommented, Mar 19, 2021

Can’t we used a logspace for X and Y with the “default” imshow pattern ? That would be a nice use case.

0reactions
jklymakcommented, Mar 17, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

pcolormesh — Matplotlib 3.6.2 documentation
pcolormesh allows you to generate 2D image-style plots. Note it is faster than the similar pcolor . import matplotlib.pyplot as ...
Read more >
pcolormesh with missing values? - numpy - Stack Overflow
My plot comes out blank, and I suspect it is because the method='linear' interpolation comes out with nans. I've tried converting to a...
Read more >
Function Reference: pcolor - Octave Forge - SourceForge
A pcolor plot draws rectangles with colors from the matrix c over the two-dimensional region represented by the matrices x and y ....
Read more >
Plotting data — Basemap tutorial 0.1 documentation
The text method does not belong to Basemap, but directly to matplotlib, ... map.urcrnry, data.shape[0]) xx, yy = meshgrid(x, y) map.pcolormesh(xx, yy, ...
Read more >
scipy.signal.spectrogram — SciPy v1.9.3 Manual
'complex' is equivalent to the output of stft with no padding or boundary extension. ... f, t, Sxx = signal.spectrogram(x, fs) >>> plt.pcolormesh(t,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found