Surface plot from data files

View: New views
6 Messages — Rating Filter:   Alert me  

Surface plot from data files

by drgz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I'm trying to make a surface plot using data I've exported from Octave. I found it to be easier to edit the labels etc with Gnuplot when I did my 2D plots, so I want to do the same with the 3D plots, but I simply don't get how to organize the data such that the plot becomes the same as when using surf() in Octave.

Example;

I got two vectors and a matrix I want to plot:

size(freqvec) = 101 x 1
size(pinvec) = 26 x 1
size(s22vec) = 101 x 26

Should I save these to three separate data files, or should I save them all to the same file? And how is the syntax for linking them together in Gnuplot?

I've tried both saving them to different files, and to the same file, but I simply don't manage to get it right.

When using Octave, I get the plot as in the attached file, which is nice, but as I want to tweak a little on the figure I thought it might be easier doing it from Gnuplot directly.

So can anyone point me in the right direction, or know somewhere I can read about how to get the plot right?

Best regards,

drgz

test.pdf

Re: Surface plot from data files

by Tatsuro MATSUOKA-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello

Please read first carefully output of the 'help splot datafile'.

Regards

Tatsuro
--- drgz wrote:

>
> Hello,
>
> I'm trying to make a surface plot using data I've exported from Octave. I
> found it to be easier to edit the labels etc with Gnuplot when I did my 2D
> plots, so I want to do the same with the 3D plots, but I simply don't get
> how to organize the data such that the plot becomes the same as when using
> surf() in Octave.
>
> Example;
>
> I got two vectors and a matrix I want to plot:
>
> size(freqvec) = 101 x 1
> size(pinvec) = 26 x 1
> size(s22vec) = 101 x 26
>
> Should I save these to three separate data files, or should I save them all
> to the same file? And how is the syntax for linking them together in
> Gnuplot?
>
> I've tried both saving them to different files, and to the same file, but I
> simply don't manage to get it right.
>
> When using Octave, I get the plot as in the attached file, which is nice,
> but as I want to tweak a little on the figure I thought it might be easier
> doing it from Gnuplot directly.
>
> So can anyone point me in the right direction, or know somewhere I can read
> about how to get the plot right?
>
> Best regards,
>
> drgz
>
> http://www.nabble.com/file/p25869511/test.pdf test.pdf
> --
> View this message in context:
> http://www.nabble.com/Surface-plot-from-data-files-tp25869511p25869511.html
> Sent from the Gnuplot - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Gnuplot-info mailing list
> Gnuplot-info@...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>


--------------------------------------
GyaO! - Anime, Dramas, Movies, and Music videos [FREE]
http://pr.mail.yahoo.co.jp/gyao/

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

Re: Surface plot from data files

by Tatsuro MATSUOKA-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello

Sorry for separated posts.

Please also read 'help splot grid_data'

Regards

Tatsuro

--- Tatsuro MATSUOKA  wrote:

> Hello
>
> Please read first carefully output of the 'help splot datafile'.
>
> Regards
>
> Tatsuro
> --- drgz wrote:
>
> >
> > Hello,
> >
> > I'm trying to make a surface plot using data I've exported from Octave. I
> > found it to be easier to edit the labels etc with Gnuplot when I did my 2D
> > plots, so I want to do the same with the 3D plots, but I simply don't get
> > how to organize the data such that the plot becomes the same as when using
> > surf() in Octave.
> >
> > Example;
> >
> > I got two vectors and a matrix I want to plot:
> >
> > size(freqvec) = 101 x 1
> > size(pinvec) = 26 x 1
> > size(s22vec) = 101 x 26
> >
> > Should I save these to three separate data files, or should I save them all
> > to the same file? And how is the syntax for linking them together in
> > Gnuplot?
> >
> > I've tried both saving them to different files, and to the same file, but I
> > simply don't manage to get it right.
> >
> > When using Octave, I get the plot as in the attached file, which is nice,
> > but as I want to tweak a little on the figure I thought it might be easier
> > doing it from Gnuplot directly.
> >
> > So can anyone point me in the right direction, or know somewhere I can read
> > about how to get the plot right?
> >
> > Best regards,
> >
> > drgz
> >
> > http://www.nabble.com/file/p25869511/test.pdf test.pdf
> > --
> > View this message in context:
> > http://www.nabble.com/Surface-plot-from-data-files-tp25869511p25869511.html
> > Sent from the Gnuplot - User mailing list archive at Nabble.com.
> >
> >
> > ------------------------------------------------------------------------------
> > Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> > is the only developer event you need to attend this year. Jumpstart your
> > developing skills, take BlackBerry mobile applications to market and stay
> > ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> > http://p.sf.net/sfu/devconference
> > _______________________________________________
> > Gnuplot-info mailing list
> > Gnuplot-info@...
> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> >
>
>
> --------------------------------------
> GyaO! - Anime, Dramas, Movies, and Music videos [FREE]
> http://pr.mail.yahoo.co.jp/gyao/
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Gnuplot-info mailing list
> Gnuplot-info@...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>


--------------------------------------
GyaO! - Anime, Dramas, Movies, and Music videos [FREE]
http://pr.mail.yahoo.co.jp/gyao/

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

Re: Surface plot from data files

by drgz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yup, I found those help commands later on last night, but I still get plots that look much "uglier" than the ones from the surf(). Maybe it would be better I found out what commands octave calls in Gnuplot when the surf() function is called, but when i open surf.m / surface.m I can't find any useful information.


Basically I would like to know how to get the same plot as in th the example PDF, but from scratch in Gnuplot, such that I easily can change whatever I want to change.

Regards,

drgz

Tatsuro MATSUOKA-5 wrote:
Hello

Sorry for separated posts.

Please also read 'help splot grid_data'

Regards

Tatsuro

--- Tatsuro MATSUOKA  wrote:

> Hello
>
> Please read first carefully output of the 'help splot datafile'.
>
> Regards
>
> Tatsuro
> --- drgz wrote:
>
> >
> > Hello,
> >
> > I'm trying to make a surface plot using data I've exported from Octave. I
> > found it to be easier to edit the labels etc with Gnuplot when I did my 2D
> > plots, so I want to do the same with the 3D plots, but I simply don't get
> > how to organize the data such that the plot becomes the same as when using
> > surf() in Octave.
> >
> > Example;
> >
> > I got two vectors and a matrix I want to plot:
> >
> > size(freqvec) = 101 x 1
> > size(pinvec) = 26 x 1
> > size(s22vec) = 101 x 26
> >
> > Should I save these to three separate data files, or should I save them all
> > to the same file? And how is the syntax for linking them together in
> > Gnuplot?
> >
> > I've tried both saving them to different files, and to the same file, but I
> > simply don't manage to get it right.
> >
> > When using Octave, I get the plot as in the attached file, which is nice,
> > but as I want to tweak a little on the figure I thought it might be easier
> > doing it from Gnuplot directly.
> >
> > So can anyone point me in the right direction, or know somewhere I can read
> > about how to get the plot right?
> >
> > Best regards,
> >
> > drgz
> >
> > http://www.nabble.com/file/p25869511/test.pdf test.pdf
> > --
> > View this message in context:
> > http://www.nabble.com/Surface-plot-from-data-files-tp25869511p25869511.html
> > Sent from the Gnuplot - User mailing list archive at Nabble.com.
> >
> >
> > ------------------------------------------------------------------------------
> > Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> > is the only developer event you need to attend this year. Jumpstart your
> > developing skills, take BlackBerry mobile applications to market and stay
> > ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> > http://p.sf.net/sfu/devconference
> > _______________________________________________
> > Gnuplot-info mailing list
> > Gnuplot-info@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> >
>
>
> --------------------------------------
> GyaO! - Anime, Dramas, Movies, and Music videos [FREE]
> http://pr.mail.yahoo.co.jp/gyao/
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Gnuplot-info mailing list
> Gnuplot-info@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>


--------------------------------------
GyaO! - Anime, Dramas, Movies, and Music videos [FREE]
http://pr.mail.yahoo.co.jp/gyao/

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

Re: Surface plot from data files

by Thomas Sefzick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

you may set
gnuplot_binary ("tee logfilename | gnuplot")
at the octave prompt to see which commands are sent to gnuplot.


Yup, I found those help commands later on last night, but I still get plots that look much "uglier" than the ones from the surf(). Maybe it would be better I found out what commands octave calls in Gnuplot when the surf() function is called, but when i open surf.m / surface.m I can't find any useful information.


Basically I would like to know how to get the same plot as in th the example PDF, but from scratch in Gnuplot, such that I easily can change whatever I want to change.

Regards,

drgz

Tatsuro MATSUOKA-5 wrote:
Hello

Sorry for separated posts.

Please also read 'help splot grid_data'

Regards

Tatsuro

--- Tatsuro MATSUOKA  wrote:

> Hello
>
> Please read first carefully output of the 'help splot datafile'.
>
> Regards
>
> Tatsuro
> --- drgz wrote:
>
> >
> > Hello,
> >
> > I'm trying to make a surface plot using data I've exported from Octave. I
> > found it to be easier to edit the labels etc with Gnuplot when I did my 2D
> > plots, so I want to do the same with the 3D plots, but I simply don't get
> > how to organize the data such that the plot becomes the same as when using
> > surf() in Octave.
> >
> > Example;
> >
> > I got two vectors and a matrix I want to plot:
> >
> > size(freqvec) = 101 x 1
> > size(pinvec) = 26 x 1
> > size(s22vec) = 101 x 26
> >
> > Should I save these to three separate data files, or should I save them all
> > to the same file? And how is the syntax for linking them together in
> > Gnuplot?
> >
> > I've tried both saving them to different files, and to the same file, but I
> > simply don't manage to get it right.
> >
> > When using Octave, I get the plot as in the attached file, which is nice,
> > but as I want to tweak a little on the figure I thought it might be easier
> > doing it from Gnuplot directly.
> >
> > So can anyone point me in the right direction, or know somewhere I can read
> > about how to get the plot right?
> >
> > Best regards,
> >
> > drgz
> >
> > http://www.nabble.com/file/p25869511/test.pdf test.pdf
> > --
> > View this message in context:
> > http://www.nabble.com/Surface-plot-from-data-files-tp25869511p25869511.html
> > Sent from the Gnuplot - User mailing list archive at Nabble.com.
> >
> >
> > ------------------------------------------------------------------------------
> > Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> > is the only developer event you need to attend this year. Jumpstart your
> > developing skills, take BlackBerry mobile applications to market and stay
> > ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> > http://p.sf.net/sfu/devconference
> > _______________________________________________
> > Gnuplot-info mailing list
> > Gnuplot-info@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> >
>
>
> --------------------------------------
> GyaO! - Anime, Dramas, Movies, and Music videos [FREE]
> http://pr.mail.yahoo.co.jp/gyao/
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Gnuplot-info mailing list
> Gnuplot-info@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>


--------------------------------------
GyaO! - Anime, Dramas, Movies, and Music videos [FREE]
http://pr.mail.yahoo.co.jp/gyao/

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuplot-info


Re: Surface plot from data files

by drgz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks! That did the trick :)


Thomas Sefzick wrote:
you may set
gnuplot_binary ("tee logfilename | gnuplot")
at the octave prompt to see which commands are sent to gnuplot.