Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
Close
From: thorneliu <liuqiang@co...>  20100608 02:24:21

Hello, every one! Here is my question: I have a matrix data file (data in rows and collums), and I successfully got a contour figure by the following commands: set pm3d map splot 'matrix.dat' matrix Well, I got the figure as follows: http://old.nabble.com/file/p28812980/Dis1550.jpg So, what can I do if I wanna plot a line in this contour figure? (I wanna plot the line where z=0 in the x y plane) Thanks a lot!  View this message in context: http://old.nabble.com/howtoplotalineinthecontourmaptp28812980p28812980.html Sent from the Gnuplot  User mailing list archive at Nabble.com. 
From: Thomas Sefzick <t.sefzick@fz...>  20100608 07:24:58

so you want not to plot 'just a line' but a contour line, that's easy: set contour surface set cntrparam levels discrete 0 set pm3d map splot 'matrix.dat' matrix thorneliu wrote: > > Hello, every one! > Here is my question: > I have a matrix data file (data in rows and collums), > and I successfully got a contour figure by the following commands: > > set pm3d map > splot 'matrix.dat' matrix > > Well, I got the figure as follows: > http://old.nabble.com/file/p28812980/Dis1550.jpg > > So, what can I do if I wanna plot a line in this contour figure? > (I wanna plot the line where z=0 in the x y plane) > Thanks a lot! > >  View this message in context: http://old.nabble.com/howtoplotalineinthecontourmaptp28812980p28814296.html Sent from the Gnuplot  User mailing list archive at Nabble.com. 
From: thorneliu <liuqiang@co...>  20100608 07:43:42

Well,thanks By the way, what can i do if I wanna just plot a line (not a contour line) in this plot? Thomas Sefzick wrote: > > so you want not to plot 'just a line' but a contour line, > that's easy: > > set contour surface > set cntrparam levels discrete 0 > set pm3d map > splot 'matrix.dat' matrix > > > thorneliu wrote: >> >> Hello, every one! >> Here is my question: >> I have a matrix data file (data in rows and collums), >> and I successfully got a contour figure by the following commands: >> >> set pm3d map >> splot 'matrix.dat' matrix >> >> Well, I got the figure as follows: >> http://old.nabble.com/file/p28812980/Dis1550.jpg >> >> So, what can I do if I wanna plot a line in this contour figure? >> (I wanna plot the line where z=0 in the x y plane) >> Thanks a lot! >> >> > >  View this message in context: http://old.nabble.com/howtoplotalineinthecontourmaptp28812980p28814301.html Sent from the Gnuplot  User mailing list archive at Nabble.com. 
From: Thomas Sefzick <t.sefzick@fz...>  20100608 19:33:28

are you looking for e.g. something like this: http://old.nabble.com/file/p28822118/ts.gif a coloured surface with lines where z=10? set size square set pm3d map set contour surface set cntrparam levels discr 10 set samples 20 set isosamples 20 splot x*y thorneliu wrote: > > Well,thanks > But I could not get a line (z=0) in my previos figure. > And another question: > By the way, what can i do if I wanna just plot a line (not a contour line) > in this plot? > for example : > I have another matrix file > I want to plot the contour figure as the figure I inserted before, and I > want to draw a line where Z is the minimums in the > x y plane. > what can I do? > I hope I have made myself understood. > Thanks. > > Thomas Sefzick wrote: >> >> so you want not to plot 'just a line' but a contour line, >> that's easy: >> >> set contour surface >> set cntrparam levels discrete 0 >> set pm3d map >> splot 'matrix.dat' matrix >> > >  View this message in context: http://old.nabble.com/howtoplotalineinthecontourmaptp28812980p28822118.html Sent from the Gnuplot  User mailing list archive at Nabble.com. 
From: thorneliu <liuqiang@co...>  20100609 06:17:23

Oh,yes This is really what i want. I tested the codes you posted and I got the right figure in another PC with gnuplot 4.2.6 installed. I think the failure in my Debian GNU/Linux system results form that I am using an old version gnuplot. Thanks a lot. Problem Solved. thorneliu wrote: > > Well,thanks > But I could not get a line (z=0) in my previos figure. > And another question: > By the way, what can i do if I wanna just plot a line (not a contour line) > in this plot? > for example : > I have another matrix file > I want to plot the contour figure as the figure I inserted before, and I > want to draw a line where Z is the minimums in the > x y plane. > what can I do? > I hope I have made myself understood. > Thanks. > > Thomas Sefzick wrote: >> >> so you want not to plot 'just a line' but a contour line, >> that's easy: >> >> set contour surface >> set cntrparam levels discrete 0 >> set pm3d map >> splot 'matrix.dat' matrix >> > >  View this message in context: http://old.nabble.com/howtoplotalineinthecontourmaptp28812980p28826365.html Sent from the Gnuplot  User mailing list archive at Nabble.com. 