[Top][All Lists]

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

Re: Chart is not resizing to plot all points (QTHandles)

From: Marco Atzeri
Subject: Re: Chart is not resizing to plot all points (QTHandles)
Date: Mon, 26 Oct 2015 15:08:40 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 26/10/2015 08:57, Jonathan Mario Camilleri Borg wrote:
I noticed that the chart does not plot all the points.

I typed:
 >> plot(1,2);
 >> a = [1,2;1,3;1,5];
 >> plot(a);

Using windows 8.1 and Octave 4.0.0

Inline images 1

I understand that learning from scratch is the biggest steps,
but you should consider that the software was born 27 years ago,
so unlikely has very basic bugs, and more likely you are misunderstanding the usage.

You should read the documentation before rising basic questions

Going back to your test

  >> plot(1,2);

this produce a single point, with X=1 and Y=2

>  >> a = [1,2;1,3;1,5];
>  >> plot(a);

This produce 3 points   (1,2) , (2,3) and (3,5).
Why ? Because instead of calling as

plot (X,Y)

with two series of numbers one for X and one for Y axis.
you are calling with a single argument


so the X values are the points sequence 1,2,3...
and the Y are taking by "a" as 2, 3 and 5

reply via email to

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