2d color-bar map plot
pkpearson at nowhere.invalid
Fri Oct 17 17:51:21 CEST 2014
On Fri, 17 Oct 2014 14:28:13 +0800, Dhananjay wrote:
> xs = ys = zs = 
> for line in fl1:
> line = line.split()
> print xs, ys, zs
The line "xs = ys = zs = " is almost surely not what you want to do.
It results in xs, ys, and zs all being the same object. Look:
>>> xs = ys = zs = 
Since your xs, ys, and zs are all identical, some unfortunate part
of the plotting package is trying in vain to find some thickness to
the thing it's plotting, but it can't, because all the points you've
given it lie on the x=y=z plane. (It's sad that it tries so heroically
to give a detailed error message that turns out to be so obscure.)
So spend a few more characters:
xs = 
ys = 
zs = 
Then, on to the next problem.
To email me, substitute nowhere->runbox, invalid->com.
More information about the Python-list