Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am trying to plot data with coordinates over a map. And I kept getting this error: TypeError Traceback (most recent call last) in 1

I am trying to plot data with coordinates over a map. And I kept getting this error:

TypeError Traceback (most recent call last) 
 in  1 # Plot data ----> 2 cs = m.pcolor(x, y, np.squeeze(da)) 3 4 # Add grid lines 5 m.drawparallels(np.arange(-80., 81., 10.), labels=[1,0,0,0], fontsize=10) 

4 frames

/usr/local/lib/python3.8/dist-packages/matplotlib/axes/_axes.py in _pcolorargs(funcname, allmatch, *args) 5702 else: 5703 if not (ncols in (Nx, Nx - 1) and nrows in (Ny, Ny - 1)): -> 5704 raise TypeError('Dimensions of C %s are incompatible with' 5705 ' X (%d) and/or Y (%d); see help(%s)' % ( 5706 C.shape, Nx, Ny, funcname)) 
TypeError: Dimensions of C (720, 360) are incompatible with X (720) and/or Y (360); see help(pcolor)

May I know how can I fix this?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic6 Database Programming

Authors: John W. Fronckowiak, David J. Helda

1st Edition

0764532545, 978-0764532542

More Books

Students also viewed these Databases questions

Question

Explain the concept called liability of newness.

Answered: 1 week ago