octave-maintainers
[Top][All Lists]
Advanced

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

Re: Compatible plotyy and colorbar (or Confusion about Position, OuterPo


From: David Bateman
Subject: Re: Compatible plotyy and colorbar (or Confusion about Position, OuterPosition and ActivePositionProperty)
Date: Mon, 13 Oct 2008 08:17:29 +0100
User-agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724)

Ben Abbott wrote:
David,

I see a problem that appears to might be related to jwe's swtich to column vectors for handles.

For plotyy please try the demo below. It is the same as the one in plotyy with "subplot(221)" added as the first line.

%!demo
%! subplot(211)
%! x = 0:0.1:2*pi;
%! y1 = sin (x);
%! y2 = exp (x - 1);
%! ax = plotyy (x, y1, x - 1, y2, @plot, @semilogy);
%! xlabel ("X");
%! ylabel (ax(1), "Axis 1");
%! ylabel (ax(2), "Axis 2");

Using jwe's archive I get

error: get: invalid handle (= 3.42134e+180)
error: called from:
error: /Users/bpabbott/Development/mercurial/octave-3.1.51/scripts/plot/__go_draw_axes__.m at line 1314, column 9 error: /Users/bpabbott/Development/mercurial/octave-3.1.51/scripts/plot/__go_draw_axes__.m at line 271, column 8 error: /Users/bpabbott/Development/mercurial/octave-3.1.51/scripts/plot/__go_draw_figure__.m at line 59, column 8 error: /Users/bpabbott/Development/mercurial/octave-3.1.51/scripts/plot/gnuplot_drawnow.m at line 68, column 5

The problems do not end there

octave:6> clf
error: delete: invalid graphics object (= -16.9272)
error: called from:
error: /Users/bpabbott/Development/mercurial/octave-3.1.51/scripts/miscellaneous/delete.m at line 40, column 1 error: /Users/bpabbott/Development/mercurial/octave-3.1.51/scripts/plot/clf.m at line 37, column 9

Notice this second error references a different handle.

I also notice that the xlabe("X") command changes the orientation of the children for the axis from a column vector to a row vector. For the row vector the second element is invalid.

btw, my response to this is rather quick because I was coincidentally working on plotyy as well. My effort was to get it to work with subplot.

Ben

Ok, I'm going to have little time to look at this today, but will try later if someone else doesn't get there first....

D.


--
David Bateman                                address@hidden
35 rue Gambetta                              +33 1 46 04 02 18 (Home)
92100 Boulogne-Billancourt FRANCE            +33 6 72 01 06 33 (Mob)


reply via email to

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