help-octave
[Top][All Lists]
Advanced

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

Re: Plotting large values with small limits cause to make axes mad.


From: PhilipNienhuis
Subject: Re: Plotting large values with small limits cause to make axes mad.
Date: Wed, 13 Feb 2019 13:05:06 -0600 (CST)

Tetsuro Kurita-2 wrote
> I forget to write following information.
> 
> I tested on octave 4.4.1.
> The graphics toolkit was fltk or qt.
> 
> This problem does not occur when gnuplot is used as graphics toolkit. 
> 
> Tetsuro Kurita
> 
>> 2019/02/13 20:14、Tetsuro Kurita <

> tetsukurita@

> > :
>> 
>> Hello, 
>> 
>> I have a problem when I plot large values of which variation is small.
>> 
>> Following code is an example.
>> 
>> x0 = 1e+6
>> x = linspace(x0,x0+0.1, 10);
>> plot(x,x)
>> 
>> In the plot result of above code, the axes are sticking out of the
>> window.
>> 
>> In my tests, plotting large values with small limits causes problem.
>> 
>> Does anyone know to avoid this problem.
>> 
>> Tetsuro Kurita

That is due to OpenGL working with single precision floats. See a.o., bugs
32980, 33748, and several later duplicates. Indeed an annoying issue.

For the time being, scaling (subtracting a large value and afterwards
adapting the axis ticks) is the workaround.

Philip



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

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