|
From: Tait <gnu...@t4...> - 2012-10-20 04:13:17
|
> Hi > > I am trying to plot stacked 2-d files which vary in a 3rd dimension. i.e. I have multiple xy files. Something like the following link. > > http://www.mathworks.com/matlabcentral/fx_files/24368/4/style1.jpg > > Plotting a colour map works fine (once I get all the files into one file) with splot, but whenever I use splot with lines, it joins up along the y axis too. > > My script is: > ... > Can anyone suggest a good way to plot stacked plots, not joining up on the y axis? This basically comes down to inserting additional line breaks in your data file. It's explained in more detail in "help data" but the extra line break creates a discontinuity. To get a plot like the one above, you will group all the points with the same y-coordinate together and insert an extra line break between each group of shared-y-coordinate points. There are some demos that are somewhat related: http://gnuplot.sourceforge.net/demo_4.6/surface1.html http://gnuplot-tricks.blogspot.com/2010/07/fence-plots-with-some-liner.html > If the reader of this email is not the intended recipient(s), ... How shall I know whether I am the "intended recipient(s)"? These sorts of disclaimers are irritating, unenforceable, and probably harmful to any possible legal action based on the affected email (because, among other reasons, it's almost certainly not consistently or universally enforced). There used to be an excellent website explaining how/why in detail, but I can't find it anymore. |