|
From: Lars H. <la...@ho...> - 2006-11-12 16:25:02
|
On Saturday November 11th 2006 21:17 D. R. Evans wrote: > I have a data file in a simple x y z format. It starts > like this: > > 1 0 0 > 1 10 0 > 1 20 0 > 1 30 0 > 1 40 0 > 1 50 0 > 1 60 0 > 1 70 0 > 1 80 0 > > and ends like this > > 249 24950 0 > 249 24960 0 > 249 24970 1 > 249 24980 0 > 249 24990 1 > > It contains a total of ~350,000 lines. Does your file only contain the z-values 0 and 1? As you've described, pm3d does not produce the output you hoped it would be. As I see it, the problem is in the structure of your dataset. Most of the z-values are 0, that should produce a flat surface with the darkest color of the color bar. Over this surface there are only 'a few' peaks with the value 1. The pm3d-option tries to connect these peaks with the 0-surface on the bottom. Due to the mathematic constellation of your data, the resulting connecting surfaces have to be like infinte small columns standing rectangular on the base surface. Since there are no values given in between, gnuplot has problems, how to color these (no-width) columns. As a consequence only small dots with the brightest colors of the colormap should be drawn at the spots, where your dataset contains a 1. Since you are plotting 350.000 datapoints, these dots may te too short for the reolution of your screen (or your favoured output medium). My advice: Reduce the number of datapoints to a plottable amount; you may use gnuplots facilities to plot only every nth line of your dataset (e.g splot dataset every 3). This in combination with a change of the plotting symbol (e.g. splot dataset with dots) may give a better result. Greetings Lars |