Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Line smoothing for log-log plots

Subject: Line smoothing for log-log plots

From: B. Schmidt

Date: 20 Oct, 2011 17:19:09

Message: 1 of 2

I recently discovered the undocumented LineSmoothing option for plotting lines on figure axes. However, this option requires the use of the OpenGL renderer in order to work. The problem is that when I set the renderer to OpenGL the axes tick mark spacing of log-log plots gets really messed up making OpenGL unsusable (and consequently the LineSmoothing option). I was wondering if anyone has run into similar issues with the OpenGL renderer and plotting log-log plots and if there is some sort of fix/work-around for this problem. The issue appears stem from the OpenGL renderer and not the LineSmooth option because the issue persists even after I remove the that option from the code. It's really too bad because the smoothing really makes graphed output look much better.

Subject: Line smoothing for log-log plots

From: Yair Altman

Date: 22 Mar, 2012 18:51:17

Message: 2 of 2

"B. Schmidt" wrote in message <j7pl6d$16o$1@newscl01ah.mathworks.com>...
> I recently discovered the undocumented LineSmoothing option for plotting lines on figure axes. However, this option requires the use of the OpenGL renderer in order to work. The problem is that when I set the renderer to OpenGL the axes tick mark spacing of log-log plots gets really messed up making OpenGL unsusable (and consequently the LineSmoothing option). I was wondering if anyone has run into similar issues with the OpenGL renderer and plotting log-log plots and if there is some sort of fix/work-around for this problem. The issue appears stem from the OpenGL renderer and not the LineSmooth option because the issue persists even after I remove the that option from the code. It's really too bad because the smoothing really makes graphed output look much better.

Did you try the OpenGL workaround that I presented in my article about LineSmoothing?
http://undocumentedmatlab.com/blog/plot-linesmoothing-property/

Namely:
   opengl('OpenGLLineSmoothingBug',1);

Yair Altman
http://UndocumentedMatlab.com
 

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us