Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #63363

Re: Drawing shaded area depending on distance with latitude and altitude coordinate

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'rows,': 0.09; 'jan': 0.12; 'columns': 0.16; 'expecting': 0.16; 'guessing': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:Drawing': 0.16; 'subject:area': 0.16; 'subject:distance': 0.16; 'traceback.': 0.16; 'typeerror:': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'error': 0.23; 'mon,': 0.24; 'post': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'matching': 0.30; "i'm": 0.30; 'libraries': 0.31; 'guess': 0.33; 'skip:d 20': 0.34; 'message.': 0.35; 'subject:with': 0.35; 'but': 0.35; 'others.': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'received:org': 0.40; 'length': 0.61; "you're": 0.61; 'here': 0.66; 'subjectcharset:utf-8': 0.72; 'isaac': 0.84; 'won': 0.96
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dave Angel <davea@davea.name>
Subject Re: Drawing shaded area depending on distance with latitude and altitude coordinate
Date Mon, 06 Jan 2014 17:46:52 -0500
References <7f58342b-9b75-4a2c-b98e-cc43a4bb05a6@googlegroups.com> <7f58342b-9b75-4a2c-b98e-cc43a4bb05a6@googlegroups.com>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host dpc6744199211.direcpc.com
In-Reply-To <7f58342b-9b75-4a2c-b98e-cc43a4bb05a6@googlegroups.com>
User-Agent Groundhog Newsreader for Android
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5081.1389048319.18130.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1389048319 news.xs4all.nl 2851 [2001:888:2000:d::a6]:46723
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:63363

Show key headers only | View raw


On Mon, 6 Jan 2014 12:08:19 -0800 (PST), Isaac Won 
<winefrog@gmail.com> wrote:
>     dis1 = [[]]*1


>     for c in range(0,275):
>         dis1[0].append(dis[c])

So dis1 has 1 row in it. But contourf is expecting many rows, 
matching the length of lat.  I'm guessing you have to fill in the 
others. 


>     cs = plt.contourf(lon,lat,dis1)


>     TypeError: Length of x must be number of columns in z, and 
length of y must be number of rows.

That's only a tiny part of the error message.  Please post the whole 
traceback.  I made a guess here knowing nothing about these libraries 
you're using.

-- 
DaveA

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Drawing shaded area depending on distance with latitude and altitude coordinate Isaac Won <winefrog@gmail.com> - 2014-01-06 12:08 -0800
  Re: Drawing shaded area depending on distance with latitude and altitude coordinate Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-06 20:16 +0000
  Re: Drawing shaded area depending on distance with latitude and altitude
 coordinate Dave Angel <davea@davea.name> - 2014-01-06 17:46 -0500

csiph-web