Menu

#82 legend() makes stk_plot1d very slow, even when no legend is displayed

2.6
closed
nobody
None
2018-05-17
2018-05-16
Julien Bect
No

legend() makes stk_plot1d very slow, even when no legend is displayed !

Look for instance at this example:

[xi, zi0, ref] = stk_dataset_twobumps ('noiseless');
stk_figure ('stk_example_kb01 (b)');

for i = 1:20    
    zi = zi0 + 0.2 * rand (size (zi0));
    zp = stk_predict (stk_model ('stk_materncov_iso'), xi, zi, ref.xt);    
    stk_plot1d (xi, zi, ref.xt, ref.zt, zp);  drawnow;
end

Here is the profiler output:
Profiler output

1 Attachments

Discussion

  • Julien Bect

    Julien Bect - 2018-05-17
    • status: open --> closed