Legend not exported when position is set to “best”
I’m creating a figure with plot and legend and I set the legend’s position to "best" like this:
legend("…", Location="best")
After exporting:
exportgraphics(f, fullfile(opts.output_path,fig_name), ‘Resolution’, 300);
The legend is not on the figure.
If I set the location to someting else, like "southwest", it works.
Does anyone know if there is a solution to this?
Thanks!I’m creating a figure with plot and legend and I set the legend’s position to "best" like this:
legend("…", Location="best")
After exporting:
exportgraphics(f, fullfile(opts.output_path,fig_name), ‘Resolution’, 300);
The legend is not on the figure.
If I set the location to someting else, like "southwest", it works.
Does anyone know if there is a solution to this?
Thanks! I’m creating a figure with plot and legend and I set the legend’s position to "best" like this:
legend("…", Location="best")
After exporting:
exportgraphics(f, fullfile(opts.output_path,fig_name), ‘Resolution’, 300);
The legend is not on the figure.
If I set the location to someting else, like "southwest", it works.
Does anyone know if there is a solution to this?
Thanks! figure, legend, exportgrapics MATLAB Answers — New Questions