Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75972
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <ian.g.kelly@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.014 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'python,': 0.02; 'interfaces': 0.04; 'explanation': 0.09; 'pixel': 0.09; 'subject:using': 0.09; 'whole,': 0.09; 'subject:How': 0.10; 'bounds': 0.16; 'color.': 0.16; 'shape,': 0.16; 'trace.': 0.16; 'subject:python': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'passing': 0.19; 'stack': 0.19; 'aug': 0.22; 'large,': 0.24; 'helpful': 0.24; 'question': 0.24; 'suggested': 0.26; 'values': 0.27; 'header:In- Reply-To:1': 0.27; 'tried': 0.27; 'array': 0.29; 'wonder': 0.29; 'message-id:@mail.gmail.com': 0.30; 'checked': 0.32; 'know.': 0.32; 'says': 0.33; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'collecting': 0.36; 'so,': 0.37; 'too': 0.37; 'two': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'according': 0.40; 'color': 0.61; 'full': 0.61; "you're": 0.61; 'show': 0.63; 'kind': 0.63; 'more': 0.64; 'deals': 0.65; 'series': 0.66; 'answer.': 0.68; 'present.': 0.74; 'actually,': 0.84; 'problems?': 0.91; 'besides,': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=XbPONESQl56fL0FhGsFVGcvhnMN6pha4apbsN8/5jQ0=; b=j5EEzSEGXRL0THgDMewm4PPsdB6GED+UkGmX5HgU/+7SplydABAj9NHagWu64D2CPz mvxY6Gv74ZHpcTXOdfy0P3zY0jcvZ6mX/v3PNV+i3CYed4PgpCtsijS1S+ODfwTbhrbv mRjKhgDoHRXpzP310Y8mZb39Sg2NEnwuVY44ygvjPVOA61rW7koGDI7+0Ubr36tSLflR g0a903QBQ0HnKchBFviqM73aEZcU2v5K2LqP0Kj2GQJNkM1zFAcoXeb5idU6cL4sUW0T YpB+Fcya16k50OYK/dH5NSq3dRnMSaD6mF3Sle+Nr2VhEe20uMU2dLFpqZXEFD0i6DbI DRMA== |
| X-Received | by 10.68.132.10 with SMTP id oq10mr1482360pbb.132.1407662791279; Sun, 10 Aug 2014 02:26:31 -0700 (PDT) |
| MIME-Version | 1.0 |
| In-Reply-To | <CAPLr9LEeMhQOyEDhB9dhY=5Oojd_gAUKGKcg4+CioJd62kkc0g@mail.gmail.com> |
| References | <CAPLr9LHmOgFjma_qptZwpPBwoAxXOQ==q+8=cwu19Jv2xGMd6Q@mail.gmail.com> <CAPLr9LEeMhQOyEDhB9dhY=5Oojd_gAUKGKcg4+CioJd62kkc0g@mail.gmail.com> |
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | Sun, 10 Aug 2014 03:25:51 -0600 |
| Subject | Re: How to draw a map using python |
| To | Python <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| 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.12811.1407662799.18130.python-list@python.org> (permalink) |
| Lines | 31 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1407662799 news.xs4all.nl 2867 [2001:888:2000:d::a6]:37435 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:75972 |
Show key headers only | View raw
On Sat, Aug 9, 2014 at 7:44 PM, Yuanchao Xu <xuyuanchao37@gmail.com> wrote: > 1. I wonder in python, is there any more fast way to generate this kind of > map, as a whole, not a series of shapes, i think that would be faster?? You mean like collecting all the shapes into a single sparse array and passing the single array to contourf? Why would that be faster? > 2. I have tried using contourf, as below, but it says "out of bounds for > axis 1", but actually, I printed X,Y and cordi, they have the same shape, > why still out of bounds? I don't know. If you're going to ask about an error, it would be helpful if you would include the full stack trace. > 3. Some kind person has suggested me to use imshow to plot. I checked the > explanation of imshow, it deals more about images not plots, and it needs a > 3D array to plot, in which for each pixel it needs 3 values to show the > color. I also tried, not so acceptable. According to the documentation, it will also accept an MxN array of greyscale or colormapped data. > The interfaces of each color are so > vague, and besides, when the data is large, it just failed to present. So, > if I use imshow, could I have some way to avoid those two problems? Failed how? As posed, this question is too vague to answer.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: How to draw a map using python Ian Kelly <ian.g.kelly@gmail.com> - 2014-08-10 03:25 -0600
csiph-web