help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiplot with gnuplot


From: Al Niessner
Subject: Re: multiplot with gnuplot
Date: 06 Sep 2003 12:35:05 -0700

The problem seems to be in the subplot.m file. Below is a diff that is
the fix for problem:
24a25,30
> ## Also the global __multiplot_scale__ should be used when the command
> ## @code{gset size xsize,ysize} has been used prior to calling
@code{subplot}.> ## The only rule for defining __multiplot_scale__ is:
> ## @code{__multiplot_scale__(1) == xsize}
> ## and
> ## @code{__multiplot_scale__(2) == ysize}
89a96,100
>   global __multiplot_scale__;
>
>   if (exist ("__multiplot_scale__") == 0)
>     __multiplot_scale__ = [ 1 1 ];
>   endif;
146,147c157,158
<       __multiplot_xsize__ = 1.0 ./ columns;
<       __multiplot_ysize__ = 1.0 ./ rows;
---
>       __multiplot_xsize__ = __multiplot_scale__(1) ./ columns;
>       __multiplot_ysize__ = __multiplot_scale__(2) ./ rows;

The diff is based on 2.1.44. As you can see, subplot was hard coded to
alwasys assume a scale of 1,1 as defined by gnuplot. I have modified
subplot using a global variable because it is too difficult to get the
size back from gnuplot other than in human readable form. I hope that
this patch makes it inot the next release of octave.

On Thu, 2003-09-04 at 14:10, John W. Eaton wrote:
> On  4-Sep-2003, Al Niessner <address@hidden> wrote:
> 
> | Doing a multiplot to a file with octave/gnuplot is a bit fun since you
> | cannot switch outputs with a multiplot. Anyway, here is the problem. I
> | am trying to put 6 graphs into a single image
> 
> What are you going to do with this plot?  It might be possible to get
> better results by making 6 normal plots and combining them with
> something like psnup, or scaling them and grouping them in a table to
> go in a latex document, etc.
> 
> jwe
-- 
Al Niessner <address@hidden>
Jet Propulsion Laboratory

All opinions stated above are mine and do not necessarily reflect 
those of JPL or NASA.

 ----
| dS | >= 0
 ----

Attachment: subplot.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]