cmd-P shows no response.
File -> Print shows no response either.
Anybody else with the same problem?
Any solutions?
David Stewart, "Matlab on OSX (Tiger)" #, 26 Jan 2006 8:34 pm </WebX?14@@.ef26d03>
Or here...
Printing on OS X with R14 seems to really stink! Sorry TMW, but its
true...at least more me...and others...
You can read some of the complaints here:
twigster, "Matlab on Mac OS X Tiger?" #, 1 May 2005 5:06 am
And here:
Karen Lipkow, "R14sp3 and Mac OS X 10.4.2" #, 30 Sep 2005 7:12 am
The only thing that works *somewhat* reliably for me right now is to
print from the command line to a TIFF. I do a lot of "high-end"
graphical rendering and the print function (menu or command line
driven) barfs all the time. My favorite error today...after many
hours of wrestling with printing a figure for a manuscript is the
following:
setting PBuffer for OpenGL printing: invalid drawable
The result is a completely black image. It will be difficult to
convince the reviewers that this is meaningful.
</begin rant...if it didn't begin already>
Fortunately, I can back up to Matlab 7.0 (rather than 7.1)...oh
wait...that gives me license manager errors ever since I switched to
7.1...I could always uninstall, then reinstall, perhaps downgrade to
Oroborosx...
</end rant>
So as to be a bit more helpful I'll offer this as a starting point
for something that should work:
>> figure; [x,y,z]=sphere; s=surf(x,y,z);
>> print(gcf,'-dtiff','-r600','test');
setting PBuffer for OpenGL printing: invalid drawable
Ta dah! Black test.tif!!!!! What is PBuffer? Is it supposed to be
ZBuffer?
Printing at lower resolutions works fine, but this quality is minimal
for publications. I'd be happy to detail other problems.
For figure printing, I curently either save as eps or png via the menu
or use the following code:
% -------------------------------------------------
% Convert & save figure to a pdf and print directly
% -------------------------------------------------
set(gcf,'PaperOrientation','portrait');
set(gcf, 'PaperUnits', 'centimeters');
set(gcf, 'PaperType', 'A4');
set(gcf, 'PaperPosition', [1.5, 2, 18, 27]); % for portrait orientation
% set(gcf, 'PaperPosition', [1.5, 5, 18, 12]); % for landscape orientation
filenamestring_ct = ['Plot_R' num2str(exp_num, '%3.0f') 'conc_over_time.pdf'];
print(gcf, '-dpdf', filenamestring_ct);
if open_pdf ==1
open_string = ['open -a Texshop ', filenamestring_ct];
system(open_string);
end
if print_pdf == 1
print_string = ['open -a /Applications/Utilities/Printer\ Setup\
Utility.app ', filenamestring_ct];
system(print_string);
end
The problem is that printing from the menu gives you no control over
the ouput resolution...unless there is a setting I don't know about.
The result of EPS and PDF outputs are loew-resolution bitmaps which
look really cruddy when you print them on a laser printer.
Furthermore, the Adobe Illustrator option barfs with this message:
Error using ==> hgexport
Error using ==> print
Error using ==> print
Error using ==> graphics/private/render
Error using ==> hardcopy
Adobe Illustratory driver does not print Z-buffer or OpenGL Mode.
If you switch to Painters, then I get this error:
Warning: RGB color data not yet supported in Painter's mode.
And the colored patches in my figure disappear.
Like I said earlier, the only option that works reasonably well is to
print to a hi-res TIFF, which is okay, but leaves a lot to be desired.
My eps and pdf files work fine, in Illustrator 11, Acrobat 7, Latex
(not in preview, though) and are true vector graphics, no matter how I
produce them.
'The printing may be failing because it is expecting a Mac OS
'libTIFF.dylib', but finding the already loaded MATLAB supplied
library, which isn't the same or compatible.'
'To workaround this issue, rename the MATLAB supplied library so that
printing uses the library file which comes with the Mac OS.
1. Open the Mac OS Terminal application, and type the following:
cd <matlabroot>/bin/mac ( where <matlabroot> is the
directory in which MATLAB is installed.
mv libtiff.3.7.1.dylib libtiff.old'
All I can say is based on my situation this fix worked, I can now
print. I hope that helps.
Bill
Adding the option '-zbuffer' in the print command solved it for me.