octave-maintainers
[Top][All Lists]
Advanced

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

handle graphics (was Re: 2.9.10, finally?)


From: Daniel J Sebald
Subject: handle graphics (was Re: 2.9.10, finally?)
Date: Thu, 08 Feb 2007 13:15:59 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020

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.

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]