% Beispielgrafik erstellen
y = rand(30,3);
x = (1:length(y));
hf = figure;
set(hf, 'Units', 'normalized', 'Position', [0.2 0.2 0.5 0.5]);
hp = plot(x,y);
grid on
title('Export Grafik', 'FontSize', 11, 'FontWeight', 'bold');
xlabel('X-Achsen Beschriftung', 'FontWeight', 'bold');
ylabel('X-Achsen Beschriftung', 'FontWeight', 'bold');
set(hp, 'LineWidth', 1.5);
set(gcf, 'Color', [1 1 1]);
set(gca, 'Color', [245/255 245/255 220/255]);
ltext = {'\bfInformation:\rm' ; 'was ein gekrakel'};
text(0.85, 0.98, ltext, ... 
  'Units', 'normalized', ...
  'VerticalAlignment', 'top', ... 
  'HorizontalAlignment', 'left', ...
  'BackgroundColor',[1 1 1], ...
  'EdgeColor', [0 0 0], ...
  'HitTest', 'on');

% Export Versuche
saveas(hf, 'saveas.png');
saveas(hf, 'saveas.pdf'); % BESTE Qualität --> solch eine ist für png gewünscht!
print(hf,'print' , '-dpng');
export_fig('export_fig','-png', '-nocrop', '-q100', '-opengl'); % bestes Ergebnis
