From: Justace C. <pro...@co...> - 2004-03-03 04:27:09
|
So, I have this project where I have computed a bunch of channel correlations. The entire matrix is like 1800x1800 with one side of the diaganal set to NaN since it is symetric. Now to the root of the problem. I use the pm3d portion of gnuplot to create a 2D map of the matrix. Here is the snipplit of code that I use... -----------------------SNIP if($save) { print GNUPLOT " set terminal postscript eps color palfuncparam 500 set output \"${saveFilename}\" set size 3/10,3/7 "; } else { GNUPLOT->autoflush(1); } print GNUPLOT " set xrange [1:1792] set yrange [1:1792] set cbrange [-1:1] # unset colorbox unset ytics set xtics (\"129\" 129, \"257\" 257, \"385\" 385, \"513\" 513, \"641\" 641, \"0\" 769, \"129\" 897, \"257\" 1025, \"385\" 1153, \"513\" 1281, \"641\" 1409, \"769\" 1537, \"897\" 1665) set y2tics (\"129\" 129, \"257\" 257, \"385\" 385, \"513\" 513, \"641\" 641, \"0\" 769, \"129\" 897, \"257\" 1025, \"385\" 1153, \"513\" 1281, \"641\" 1409, \"769\" 1537, \"897\" 1665) set format y \"%4.0f\" set format x \"%4.0f\" set size ratio 1 set title \"${titleClean}\" set y2label \"Channel\" set xlabel \"Channel\" set pm3d map set palette defined (0 \"white\", 1 \"black\", 2 \"blue\") # set palette defined (-1 \"red\", -0.5 \"black\", 0.5 \"black\", 1 \"blue\") splot '${tmpFilename}' matrix title \"\" "; if(! $save) { print GNUPLOT " pause -1; "; getc(); } close(GNUPLOT); --------------------------END SNIP I used the first set size command to try to bring the file size down, of course it did not work. The resultant file is 120Meg. This is crazy. Am I doing somehting wrong? Justace |