How to display smooth (high definition) curves with plot?
Show older comments
This question concerns only the way a curve is displayed on the screen with plot(x,y), not the data. For example:
x=linspace(0,50,1000000);
plot(x,sin(x))
Displays the following plot:

And I would like to have something like this:

Notice that in the second graph, the curve is much smoother. The amount of data points is not the problem here, since we have 1000000 (one million) points. Also, I'm looking for a way to display it, not to export into an image file since after plotting it, I use getframe to copy the figure displayed and create a movie.
I have tried setting the figure property Renderer to painters, zbuffer and OpenGL, and none of them work.
Thank you
Accepted Answer
More Answers (0)
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!