Hi everyone, I just plotted about 50'000 data points using the Qt graphics toolkit and recognised that many data points are left out. I think the plot backend reduces the number of points due to performance reasons. However, if I change the graphics toolkit to gnuplot the result looks more like what I expect, i.e. much more points are plotted. On the other hand, if I do plot(x, y, '.') the result generated by Qt also looks fine. Is there a way to adjust the number of plotted points for the Qt toolkit when I do plot(x,y)? Octave version is 4.2.1. _______________________________________________ Help-octave mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-octave |
On Tue, Aug 15, 2017 at 9:31 AM, <[hidden email]> wrote:
Since you did not provide an example that demonstrate this problem, we do not believe you just assume you are making it up. The Qt backend does not any such things. What you probably see is an effect of the display antialiasing. Dmitri. -- _______________________________________________ Help-octave mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-octave |
Please find attached screenshots of the same data plotted with both Qt and gnuplot. I executed exactly the same script that just loads the data (a recorded GPS trajectory) and plots it. Dmitri A. Sergatskov wrote on 15.08.2017 16:43:
_______________________________________________ Help-octave mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-octave |
On Tue, Aug 15, 2017 at 10:04 AM, <[hidden email]> wrote:
That is better. Having data and the script to use to plot it would be better yet. Anyway I suspect here is the problem with floating precision of OpenGL. Could you re-zero your data (subtract 5.77293e6 from Y and 389550 from X) and replot that with Qt backend? Dmitri. -- _______________________________________________ Help-octave mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-octave |
Dmitri A. Sergatskov schrieb am 15.08.2017 17:10:
Yes, re-zeroing the plot did the job. Now the Qt result is also smooth. _______________________________________________ Help-octave mailing list [hidden email] https://lists.gnu.org/mailman/listinfo/help-octave |
Free forum by Nabble | Edit this page |