help-octave
[Top][All Lists]
Advanced

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

Re: strange behaviour of errorbox() function when combined with subplot


From: Gerald Ebberink
Subject: Re: strange behaviour of errorbox() function when combined with subplot
Date: Wed, 23 Aug 2006 22:06:01 +0200
User-agent: Thunderbird 1.5.0.5 (Windows/20060719)

Matthias Brennwald wrote:
On 23.08.2006, at 19:00, address@hidden wrote:

When I do the following in octave, I would expect to get two identical
graphs in one gnuplot window


octave:142> figure();
octave:143> subplot(1,2,1)
octave:144> errorbar(38000,240/2)
octave:145> title("hello")
octave:146> tics("x",1:6)
octave:147> axis([0,7])
octave:148> xlabel("X label")
octave:149> ylabel("Y label")
octave:150> subplot(1,2,2)
octave:151> errorbar(38000,240/2)
octave:152> title("hello")
octave:153> tics("x",1:6)
octave:154> axis([0,7])
octave:155> xlabel("X label")
octave:156> ylabel("Y label")

The only problem is that the title, tics,axis and label functions only
seem to work with the second plot.

I have looked into the code, but I can not figure out why it should do
this, does any one of you have an idea?

I tried your code example, and it does what I would expect (i.e. it produces two identical plots with identical labels). I have a Mac running Octave 2.1.72, gnuplot 4.0 and Apple's X11.

I guess your environment is different from mine...

Cheers,
Matthias

Sorry ofcourse I forgot to mention those important details.
I am using a Linux (2.6.15-26-386) system with Octave 2.9.7



reply via email to

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