ccplot | line application for visualizing data
kandi X-RAY | ccplot Summary
kandi X-RAY | ccplot Summary
Command-line application for visualizing data from CloudSat and CALIPSO satellites
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Parse a cmap file .
- Generate dimmap .
- Convert arguments to str .
- Auto - encode string .
- Convert a calipso timestamp to a datetime object .
- converts a time to a datetime
ccplot Key Features
ccplot Examples and Code Snippets
Community Discussions
Trending Discussions on ccplot
QUESTION
I have a 3 lists and I would like to make a pcolor plot.
ccplot = plt.pcolor(a,b, c, vmin=np.min(c), vmax=np.max(c))
the shape of a and b are: (108,)
The problem is:
when the shape of c is (216,) I get the error:
" ValueError: not enough values to unpack (expected 2, got 1) "
and when I reshape the c to be a 2d array of the shape (10800, 2), I get the error:
" TypeError: Dimensions of C (108, 2) are incompatible with X (108) and/or Y (108); see help(pcolor) "
Please help me handle this pcolor plot. I appreciate in advance.
regards Travis h
...ANSWER
Answered 2018-Dec-11 at 14:15I believe you are looking at the pcolor implementation in the wrong way. If you have c as an array of (216,) it doesn't make sense as it needs both an i, and j value to unpack to find its location in a 2D grid. pcolor needs to be able to access c[ i , j ] and for a 1D array like (216,) this is not possible.
Also when you have C (108,2) your other arrays should look like X (109,) Y(3,). Try the following example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ccplot
Python 3
Cython
HDF4
HDF-EOS2
numpy
matplotlib
cartopy
packaging
pytz
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page