Need help to solve an issue: big rendering times for drawing stuff on axes in GUIs built with GUIDE

1 view (last 30 days)
I am trying to implement a specific graphic visualization named "horizon graph" for plotting some time series data. I implemented the graph using the "fill" function. If I generate the graph in a figure the drawing is very fast. But if i try to draw it on pre-existing axes, built within a gui (made with GUIDE), the drawing takes forever and every update to the gui (like moving the window) takes also a long time.
Does anyone has an idea of what is the problem and how can I solve it?
Emanuel

Accepted Answer

Jan
Jan on 16 Apr 2015
Perhaps the axes created by GUIDE uses the 'painters' renderer, while the dynamically created axes decides for 'OpenGL', or the other way around.
Does the slower axes object contain a lot of older (invisible?) objects?
How long is "forever"? It matters if you mean a second or a minute.
  1 Comment
Emanuel Sousa
Emanuel Sousa on 17 Apr 2015
Thanks for the help. You were right. OpenGL was defined and it was to slow (old laptop). I changed to zbuffer and now the graphs are rendered as fast as in the outside picture. Unfortunately, other plots from the same figure here jeopardized (zbuffer and painters doesn't seem to deal very well with transparencies). But for now it will do.
Thanks!

Sign in to comment.

More Answers (0)

Categories

Find more on Line Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!