Hi.
Thanks for the advice. Does the "every" command work when you have two line beaks between data sets? I can't seem to get it to work.
Regarding the legal disclaimer. I have no control over it I am afraid.
Thanks
Adrian
-----Original Message-----
From: Tait [mailto:gnuplot-info@...]
Sent: 20 October 2012 05:13
To: gnuplot-info@...
Cc: Adrian Hill
Subject: Re: [Gnuplot-info] stacked line plots
> 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.
This message has been scanned for viruses by MailControl - http://www.mailcontrol.com
Click https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ== to report this email as spam
If the reader of this email is not the intended recipient(s), please be advised that any dissemination, distribution or copying of this information is strictly prohibited. Johnson Matthey PLC has its main place of business at 5th Floor, 25 Farringdon Street, London (020 7269 8400).
Johnson Matthey Public Limited Company
Registered Office: 5th Floor, 25 Farringdon Street, London EC4A 4AB
Registered in England No 33774
Whilst Johnson Matthey aims to keep its network free from viruses you should note that we are unable to scan certain emails, particularly if any part is encrypted or password-protected, and accordingly you are strongly advised to check this email and any attachments for viruses. The company shall NOT ACCEPT any liability with regard to computer viruses transferred by way of email.
Please note that your communication may be monitored in accordance with Johnson Matthey internal policy documentation.
|