|
From: Adrian H. <Hi...@ma...> - 2012-10-19 11:46:05
|
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: reset set termoption dash set term postscript color enhanced eps "Helvetica" 16 set output "stack_01.eps" set size 1,1 set border 4095 front linetype -1 linewidth 1.000 unset key unset contour set xlabel "2{/Symbol-Oblique q} / {/Symbol \260}" set ylabel "Scan number" set ytics mirror set zlabel "Relative intensity / s^{-1}" rotate by 90 set xrange [ * : 70 ] set yrange [ 1 : 95] set zrange [ * : *] set view 60,15 splot "combined.txt" using 2:1:($3/925.1) every :8::1::95 with lines #splot "combined.txt" using 2:1:($3/925.1) every :8::1::95 with points Can anyone suggest a good way to plot stacked plots, not joining up on the y axis? 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. |
|
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. |
|
From: Adrian H. <Hi...@ma...> - 2012-10-22 08:24:16
|
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:gnu...@t4...] Sent: 20 October 2012 05:13 To: gnu...@li... 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 - 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. |