1 %>@brief Saves current legend
as PNG
3 %>@ingroup graphicsapi ioio
5 %> This
function will save a PNG with the legend, but will mess with the positioning on the screen
7 %> @attention May not work well
if the window is maximized
11 %> @param fn =(
new) File name
12 %> @param dpi =0 Dots Per Inch = resolution. 0 = screen resolution
17 if nargin < 1 || isempty(fn)
20 if nargin < 2 || isempty(dpi)
24 psavef = get(gcf, 'Position');
25 psavea = get(gca, 'Position');
28 psavel = get(hl, 'Position');
29 usavel = get(hl, 'Units');
36 set(hl, 'Units', usavel);
37 set(hl, 'Position', psavel);
39 set(gca, 'Position', psavea);
40 set(gcf, 'Position', psavef);
function show_legend_only()
function save_as_png(in h, in fn, in dpi)
Analysis Session (AS) base class.
function find_filename(in prefix, in suffix, in extension, in flag_return_ext)
function save_legend(in fn, in dpi)