Using multiplot with splot

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

Using multiplot with splot

by WesM :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I am using multiplot mode to plot two surfaces on a single plot. The problem I am having
is that each plot uses a different origin and ranges. I would like the second plot to use
the ranges and origin of the first plot which are computed by autoscale. How can I do this?

Re: Using multiplot with splot

by Thomas Sefzick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

use
set xrange [] writeback
set yrange [] writeback
set zrange [] writeback
and
set xrange restore
set yrange restore
set zrange restore

see:
http://www.gnuplot.info/docs/node294.html

WesM wrote:
Hi

I am using multiplot mode to plot two surfaces on a single plot. The problem I am having
is that each plot uses a different origin and ranges. I would like the second plot to use
the ranges and origin of the first plot which are computed by autoscale. How can I do this?

Re: Using multiplot with splot

by Hans-Bernhard Bröker-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

WesM wrote:
> Hi
>
> I am using multiplot mode to plot two surfaces on a single plot.

That's usually not the right approach.  You can just plot two surfaces
in one plot:

        splot 'data1', 'data2'



------------------------------------------------------------------------------
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: Using multiplot with splot

by WesM :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks again Thomas

That works except that when I try to rotate the image using my mouse the first plot disappears. I have set multiplot mode.


use
set xrange [] writeback
set yrange [] writeback
set zrange [] writeback
and
set xrange restore
set yrange restore
set zrange restore

see:
http://www.gnuplot.info/docs/node294.html

WesM wrote:
Hi

I am using multiplot mode to plot two surfaces on a single plot. The problem I am having
is that each plot uses a different origin and ranges. I would like the second plot to use
the ranges and origin of the first plot which are computed by autoscale. How can I do this?


Re: Using multiplot with splot

by Thomas Sefzick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

then you should follow the suggestion of "Hans-Bernhard Bröker-2":

> splot 'data1', 'data2'

and not use 'multiplot' mode.


Thanks again Thomas

That works except that when I try to rotate the image using my mouse the first plot disappears. I have set multiplot mode.

Thomas Sefzick wrote:
use
set xrange [] writeback
set yrange [] writeback
set zrange [] writeback
and
set xrange restore
set yrange restore
set zrange restore

see:
http://www.gnuplot.info/docs/node294.html

WesM wrote:
Hi

I am using multiplot mode to plot two surfaces on a single plot. The problem I am having
is that each plot uses a different origin and ranges. I would like the second plot to use
the ranges and origin of the first plot which are computed by autoscale. How can I do this?

Re: Using multiplot with splot

by WesM :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Excellent! Thanks Hans


WesM wrote:
Hi

I am using multiplot mode to plot two surfaces on a single plot. The problem I am having
is that each plot uses a different origin and ranges. I would like the second plot to use
the ranges and origin of the first plot which are computed by autoscale. How can I do this?