[bug #68154] Viewing the value of time (x axe) of each point of a 2-D plot
Pantxo Diribarne <[email protected]>
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
Please use the bug tracker to post updates to a bug report. The mailing list is intended as a read-only notification stream. Info posted to this mailing list address won't appear in the tracker database where it is most useful.
Update of bug #68154 (group octave):
Category: Plotting => Plotting with OpenGL
Item Group: Feature Request => Inaccurate Result
Status: None => Duplicate
Operating System: Microsoft Windows => Any
_______________________________________________________
Follow-up Comment #2:
This is yet another symptom of bug #32980. Until this bug is fixed, you need
to re-scale your data before plotting so that the graphics system is fed with
numbers compatible with single precision floating point representation (`eps
('single')`). E.g:
npoints = 100;
fps = 2.5e9;
t = (0:(npoints-1))/fps;
f0 = 1e8;
voltage = sin (2*pi*f0*t);
plot (t*1e9, voltage)
xlabel ('t [ns]')
ylabel ('Voltage [V]')
There is already examples of such workarounds in the manual:
https://docs.octave.org/v11.1.0/Precision-issues.html
If it's OK, I'll close this report as a duplicate of bug #32980.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68154>
_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCabhpqwAKCRCqLAuaBUf3 TpSvAQCO9NgaSg7fEOhA+xoftk81YfVFz2BM7x6svSff/wjmUAEAvVoCH4g5Lsc8 BIM3FqFyTaMPcbr7z/IRFx9SZY5uTQw= =Iu4j -----END PGP SIGNATURE-----