octave-maintainers
[Top][All Lists]
Advanced

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

Re: handle graphics (was Re: 2.9.10, finally?)


From: Shai Ayal
Subject: Re: handle graphics (was Re: 2.9.10, finally?)
Date: Thu, 8 Feb 2007 21:35:20 +0200



On 2/8/07, Daniel J Sebald <address@hidden> wrote:
A few bugs.  Attached is a simple oversight.  A bigger problem is that a subplot(2,1,1)/subplot(2,1,2) script isn't working on the first pass.  On the first pass only the first of the two plots appears.  Second time rerunning the script the second plot shows up.

I don't seem to get a key with the commands:

set(fig1,"visible","off")
set(get(fig1,"children")(1),"key","on")
set(get(fig1,"children")(1),"keypos",2)
set(fig1,"visible","on")

The print() works OK, but there is no "pslatex" option.  (The script seems to process as though a file is being created, but no such file shows up for the pslatex option.)  Something I use a great deal.

Certainly this will make a lot of people happy...  I'm still a little apprehensive about programming get,get,get,set or set(get(get(get()))) for half an hour or more.  But that's just me.

Here's an example of what I'm talking about with having the ability to access raw gnuplot commands.  What I'm testing out with the handle graphics is attempting to line one plot right above another where the x axes are the same.  First, to ensure the plots have the exact same size I'd do a:

%__gnuplot_raw__("set lmargin 1\n");
%__gnuplot_raw__("set bmargin 0\n");

Since one of the x tick text is extraneous I'd turn that off with:

%__gnuplot_raw__("set format x ""\n");
I don't think that sort of thing is possible, easily with handle graphics.

Well, In matlab the way to do it in handle graphics is to set each axes' position so that they are one above the other and then set(ax1,"xticks",[]). I'm not sure if this actually works in the current handle graphics code

Dan

--- /usr/local/share/octave/2.9.9+/m/plot/subplot.m     2007-02-08 11:50: 57.110158680 -0600
+++ subplot.m   2007-02-08 12:03:39.161309296 -0600
@@ -135,7 +135,7 @@
       if (obj.outerposition == pos)
        found = true;
        tmp = child;
-       axes (h);
+       axes (tmp);
        break;
       endif
     endif



reply via email to

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