From: Jeff Harris on
I have a table that is displayed nicely in a ML GUI, but when I export or print it (e.g. print(hndl, filename, '-dmeta') or print(hndl, filename, '-depsc2')), I get a bitmapped image, including fonts, that looks bad, instead of the vector graphics that I want. I have tried all 3 renderer choices, and printing a figure with no UIControls works fine. Is there a way to print UIControls in a vector graphics format?
[Using ML R2009b, Win7]
From: us on
"Jeff Harris" <jeffreymharris(a)earthlink.net> wrote in message <hshcjn$cch$1(a)fred.mathworks.com>...
> I have a table that is displayed nicely in a ML GUI, but when I export or print it (e.g. print(hndl, filename, '-dmeta') or print(hndl, filename, '-depsc2')), I get a bitmapped image, including fonts, that looks bad, instead of the vector graphics that I want. I have tried all 3 renderer choices, and printing a figure with no UIControls works fine. Is there a way to print UIControls in a vector graphics format?
> [Using ML R2009b, Win7]

a hint:
- did you use a sufficiently large resolution when printing a meta file(?), eg,

uctbl={ % <- control specs...
[.05,.05,.2,.2],'edit'
[.30,.30,.2,.2],'listbox'
[.55,.55,.2,.2],'pushbutton'
};
surf(peaks(32));
for i=1:size(uctrl,1)
uicontrol('units','normalized','string','foo',...
'position',uctbl{i,1},'style',uctbl{i,2});
end
print -dmeta -r600 % <- or higher...
% - open a word-doc
% -- import as enhanced meta file
% yields a very good result...

% here, we use r2010a,
% but if i remember correctly, it also worked fine in older ver...

us
From: Jeff Harris on
Thank you for your response! As in your example,a bitmap export of sufficiently high resolution will look good. However, the image is large and inefficient when compared to vector graphics. If I copy the figure as a metafile, the axis label text looks great, but the text in the uicontrols is still just a bitmap. I would still like to know if there is a way get fully vectorized output.
PS I upgraded to ML 2010a to make sure I was getting comparable results.
From: Jan Simon on
Dear Jeff!

> Thank you for your response! As in your example,a bitmap export of sufficiently high resolution will look good. However, the image is large and inefficient when compared to vector graphics. If I copy the figure as a metafile, the axis label text looks great, but the text in the uicontrols is still just a bitmap. I would still like to know if there is a way get fully vectorized output.

As far as I can see in the PRINT function, there is no way to export vectorized UICONTROLs.

Jan
 | 
Pages: 1
Prev: DFT of a time series with windowing
Next: help