Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #76498
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Christian Gollwitzer <auriocus@gmx.de> |
| Newsgroups | comp.lang.python |
| Subject | Re: Matplotlib Contour Plots |
| Date | Mon, 18 Aug 2014 19:49:29 +0200 |
| Organization | A noiseless patient Spider |
| Lines | 30 |
| Message-ID | <lsteb8$qtd$1@dont-email.me> (permalink) |
| References | <e1bbdda8-47a8-4849-8180-1f1a08aeb059@googlegroups.com> <53ece976$0$29992$c3e8da3$5496439d@news.astraweb.com> <2f9537da-86b8-441d-a214-00123b8416d1@googlegroups.com> <53ee09cd$0$29994$c3e8da3$5496439d@news.astraweb.com> <c3ca3710-a481-43c2-a2b8-e4105d7160ac@googlegroups.com> <53ee2397$0$29966$c3e8da3$5496439d@news.astraweb.com> <ce4ee9aa-1ea1-45a3-83ff-e4ed017b4c5f@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Mon, 18 Aug 2014 17:49:28 +0000 (UTC) |
| Injection-Info | mx05.eternal-september.org; posting-host="0ca390f552aaaca2fd2a25e51821864b"; logging-data="27565"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18gwhCF9H9Xio5UwU83DaX1lKXr5zxjDSQ=" |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
| In-Reply-To | <ce4ee9aa-1ea1-45a3-83ff-e4ed017b4c5f@googlegroups.com> |
| Cancel-Lock | sha1:S/7zOpCyFaEOq6jqdZZSlba+iao= |
| Xref | csiph.com comp.lang.python:76498 |
Show key headers only | View raw
Am 18.08.14 18:51, schrieb Jamie Mitchell: > On Friday, August 15, 2014 4:13:26 PM UTC+1, Steven D'Aprano wrote: > So I have two 1D arrays: > > 1st array - ([8, 8.8,8.5,7.9,8.6 ...], dtype=float32) > > It has a shape (150,) > > 2nd array - ([2, 2.2, 2.5, 2.3, ...],dtype=float32) > > It has a shape (150,) > > What I want to do is create a 2D array which merges the 1st and 2nd array so that I would have: > > ([[8, 8.8,8.5,7.9,8.6 ...],[2,2,2,2,5,2.3, ...]], dtype=float32) that would have a shape (150,150) There is a logical error in your description. This array would not have the shape (150,150), but (2,150). > In this form I could then plot a 2D contour. An image with 150x150 pixels has in total 150x150=22500 pixels. You've got only 300 datapoints. So it's very unclear what you want to do. A "contour plot" displays lines of equal height over a two-dimensional dataset, as in a topographic map. You don't seem to have a two-dimensional dataset at first place; maybe you already have *contour data*, and you just want to plot(x,y) ? Christian
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Matplotlib Contour Plots Jamie Mitchell <jamiemitchell1604@gmail.com> - 2014-08-14 08:22 -0700
Re: Matplotlib Contour Plots Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-15 02:53 +1000
Re: Matplotlib Contour Plots Jamie Mitchell <jamiemitchell1604@gmail.com> - 2014-08-15 04:54 -0700
Re: Matplotlib Contour Plots Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-15 23:23 +1000
Re: Matplotlib Contour Plots Jamie Mitchell <jamiemitchell1604@gmail.com> - 2014-08-15 07:42 -0700
Re: Matplotlib Contour Plots Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-16 01:13 +1000
Re: Matplotlib Contour Plots Jamie Mitchell <jamiemitchell1604@gmail.com> - 2014-08-18 09:51 -0700
Re: Matplotlib Contour Plots Jamie Mitchell <jamiemitchell1604@gmail.com> - 2014-08-18 09:55 -0700
Re: Matplotlib Contour Plots Rustom Mody <rustompmody@gmail.com> - 2014-08-18 10:16 -0700
Re: Matplotlib Contour Plots Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-19 10:10 +1000
Re: Matplotlib Contour Plots Jamie Mitchell <jamiemitchell1604@gmail.com> - 2014-08-19 01:43 -0700
Re: Matplotlib Contour Plots Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-08-19 09:12 -0400
Re: Matplotlib Contour Plots pecore@pascolo.net - 2014-08-19 23:21 +0200
Re: Matplotlib Contour Plots Jamie Mitchell <jamiemitchell1604@gmail.com> - 2014-08-20 03:02 -0700
Re: Matplotlib Contour Plots Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-20 17:55 +0100
Re: Matplotlib Contour Plots Christian Gollwitzer <auriocus@gmx.de> - 2014-08-18 19:49 +0200
Re: Matplotlib Contour Plots Anssi Saari <as@sci.fi> - 2014-08-18 13:37 +0300
csiph-web