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


Groups > comp.graphics.apps.gnuplot > #506

help with reformatting the data file to generate a heatmap gnu plot.

From anky <ankit.10arya@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject help with reformatting the data file to generate a heatmap gnu plot.
Date 2011-08-02 15:35 -0700
Organization http://groups.google.com
Message-ID <cdcfe9af-35b1-40e0-9ea2-e8d666ed9d94@t8g2000prm.googlegroups.com> (permalink)

Show all headers | View raw


So i have file that looks like this:

2011-06-21 17:44:46.530931	21258	23073	23953	24130	22604	21228	21724
22321	21683	20634	20111	19894	20327	18160	20973	21218	20648	21302
21605	20884	19589	19551	19619	16660	20965	20819	19782	21630	21755
21224	20824	20965	20084	19093	17648	19216	21595	19985	20465	22000
20539	21850	21530	19104	19781	18720	16754	18382	20611	19208	19643
19650	21285	20495	20856	21048	18787	18875	17473	17752	19299	17470
18940	20106	21178	20915	20999	20539	19803	19783	17913	19165	19556
17638	18664	21315	19654	22412	22758	19738	21351	18839	18019	20317
18626	19399	18838	20736	21780	22011	22095	22473	21223	19421	19565
19520	17539	20619	20699	20630	22299	22084	20928	20932	21194	18949
18723	21129	20183	20346	20293	21103	22440	19436	22467	25005	24913
24279	25117	22610	32765	32766	45000	65535


this is 1 row of the file with 124 values. The next row will have a
new timestamp and corresponding 124 values. i want to make a heatmap
which plots them in 10*12 matrix which means, i just use the first 120
values. I want to do something like this http://gnuplot.sourceforge.net/demo_4.2/heatmaps.html
( 1st example) . In my case the 120 values correspond to color
intensity it would show. The problem is i will read these values  from
an external file and i need to reformat this in form of a matrix to
generate a heatmap like the one shown in example.

This is my first time using gnuplots and i dont have much idea about
it. Is there way that i can read these in as strings and then format
them as a 10*12 matrix ??

Please HELP!!

Back to comp.graphics.apps.gnuplot | Previous | Next | Find similar


Thread

help with reformatting the data file to generate a heatmap gnu plot. anky <ankit.10arya@gmail.com> - 2011-08-02 15:35 -0700

csiph-web