Is there a limit on amount of data a figure can contain?

4 vues (au cours des 30 derniers jours)
Aniket Vagha
Aniket Vagha le 19 Mar 2015
Commenté : Walter Roberson le 19 Mai 2015
I was trying to make a figure with multiple subplots (3x3) with what I thought was not a whole lot of data. Every time the figure came across trying to draw contour lines on a subplot, MATLAB would crash with a message pop-up that said "MATLAB has encountered internal errors and need to close".
The contour command was last in sequence of plotting. On a whim, I changed the sequence trying to plot the contour first and then do simpler plots. Now, I could plot the contours but MATLAB crashed again after making like 4 subplots instead of 8 in the previous case.
So that got me thinking - is there a limit on amount of data a figure can capture?
  3 commentaires
Aniket Vagha
Aniket Vagha le 19 Mai 2015
Hi, following up on this thread for a similar concern. I am trying this:
plot(Speed, Load, 'MarkerSize', 5, 'Color', [0.745 0.745 0.745])
hold on; contour(Speed, Load, Percent_Time)*
*after using meshgrid to create square grids of X and Y data.
Here length(Speed) = length(Load) = 400k.
Now, I am exporting this figure as a subplot with some others to pdf using export_fig.
[http://www.mathworks.com/matlabcentral/fileexchange/23629-export-fig].
The pdf file size I get is huge: 20 MB. If, however, I just use:
contour(Speed, Load, Percent_Time)*
The final exported pdf file size reduces drastically: ~ 200 KB. Here, however, I cannot capture some of the detail seen in while plotting entire dataset.
It will be of great help if I get some advice on: 1. plotting the same detail (Speed, Load) but with a reduced file size after export. I have tried -m, -q, options and they do not seem to work. I tried other renderers but they were a tad too unclear.
2. An alternate way of plotting Speed vs Load data that amounts to lesser file size. I am considering sampling the data at 0.1 Hz. Current data is 1Hz.
Thanks!
Walter Roberson
Walter Roberson le 19 Mai 2015
That does not sound like a question about a limit on the amount of data that can be plotted.

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by