Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #76563
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Subject | Re: Matplotlib Contour Plots |
| Date | 2014-08-19 09:12 -0400 |
| Organization | IISS Elusive Unicorn |
| References | (3 earlier) <53ee2397$0$29966$c3e8da3$5496439d@news.astraweb.com> <ce4ee9aa-1ea1-45a3-83ff-e4ed017b4c5f@googlegroups.com> <5a0df87b-6271-48c5-93ec-39949ab7c192@googlegroups.com> <53f295e2$0$29970$c3e8da3$5496439d@news.astraweb.com> <6bc22f4f-1041-4ad4-9a8f-b0b6ec4bd009@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.13147.1408453949.18130.python-list@python.org> (permalink) |
On Tue, 19 Aug 2014 01:43:54 -0700 (PDT), Jamie Mitchell
<jamiemitchell1604@gmail.com> declaimed the following:
>You were right Christian I wanted a shape (2,150).
>
>Thank you Rustom and Steven your suggestion has worked.
>
>Unfortunately the data doesn't plot as I imagined.
>
>What I would like is:
>
>X-axis - hs_con_sw
>Y-axis - te_con_sw
>Z-axis - Frequency
>
>What I would like is for the Z-axis to contour the frequency or amount of times that the X-axis data and Y-axis data meet at a particular point or bin.
>
>Does anyone know what function or graph could best show this?
>
Sounds like a histogram on a function of (x, y) -- you may need to play
with it to get tolerances suitable for binning, and calculate the Z by
scanning the input data.
What are the domain ranges of X and Y? How many bins in X and Y?
initialize Z array [x-bins, y-bins] <- 0
for (x, y) in zip(x-data, y-data)
convert x and y to bin indices
increment Z[x-index, y-index]
plot Z (mapped to a color scale, dot size, whatever) on a grid of x-bins,
y-bins
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
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