[Top][All Lists]

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

Re: plot : strange behaviour

From: Przemek Klosowski
Subject: Re: plot : strange behaviour
Date: Fri, 24 May 2019 10:23:29 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

On 5/24/19 7:59 AM, LucaLuca via Help-octave wrote:
i've a variable array ... ValEquity  ...  size(ValEquity) ...  839     1


Can i avoid space if i want plot all element?

plot() has to make a decision about the extent of the axis and the position of axis markers. It tries to make them nice and round: it makes more sense to place markers at 0, 200, 400, 800, 1000   than 1  210.5   420   629.5, but as a consequence, you get the extra space between 839 and 1000.

If you want to override that, you have to declare your own axis e.g. by    axis([1,839])

reply via email to

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