"Speed up" functions in plot figure

1 回表示 (過去 30 日間)
Jared
Jared 2013 年 2 月 12 日
What is the "speed" of functions in a standalone Matlab executable created plot figure dependent on (the program is NOT running on a machine with a full version of Matlab)?
I am plotting several multi-million data point files, and functions in the plot figure such as pan and zoom, and even dragging the entire window, or closing it, are extremely sluggish.
It doesn't seem to be very dependent on the machine it is running on. Is the limiting factor the Matlab Runtime Environment? Is there anything I can do to improve performance?

回答 (1 件)

Sean de Wolski
Sean de Wolski 2013 年 2 月 12 日
編集済み: Sean de Wolski 2013 年 2 月 12 日
Add a drawnow inside of anything sluggish. The drawnow() will flush the event queue which can help the graphics update if there is a backlog.
Of course there isn't really much reason to plot a millions of data points considering there probably aren't enough pixels for all of them. You might want to consider downsampling or changing how you're visualizing the data.
  2 件のコメント
Jared
Jared 2013 年 2 月 12 日
I'll give that command a try. It's true you can't differential the data points when zoomed all the way out, but when you start zooming and panning, they can be seen. I can not downsample, but visulaizing differently might be a possibility. Any suggestions on that?
Sean de Wolski
Sean de Wolski 2013 年 2 月 12 日
Well if you're just looking for data density (which I can't imagine much else with this many points), use a histogram. You'll have to describe in more detail or provide an example of what you have.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by