필터 지우기
필터 지우기

Print Pushtool in gui doesn't work!

조회 수: 1 (최근 30일)
hana
hana 2012년 6월 28일
I have a GUI that has a figure containing an axes and some uicontrolls plus some toolbar pushbuttons including a print Pushbutton which is hooked up to the default callback function. when I have a ribbon in my axes it refuses to print the graphics (it still prints an empty figure), but when I have a graphics that was drawn by plot, the print button works. P.S. my axes 'visibility' property is turned off, which don't think has anything to do with the print malfunction.
any tip is appreciated
  댓글 수: 2
Sean de Wolski
Sean de Wolski 2012년 6월 28일
Can you try turning on the axes visibility on and see if it prints?
hana
hana 2012년 6월 28일
The invisibility of the axes is by design and I have to work around this. (turning on the visibility didn't help either) thanks

댓글을 달려면 로그인하십시오.

채택된 답변

Tom
Tom 2012년 6월 28일
It could be the renderer. Try
get(handles.figure1,'Renderer')
for both types of plot and see if they're different. The reasons for this are beyond me, but a while ago I tried changing the renderer on a figure because the colorbar was being weird- it fixed the colorbar problem but when I went to print, a blank sheet came out.

추가 답변 (2개)

Jan
Jan 2012년 6월 29일
If the figure property 'RendererMode' is 'auto', Matlab selects the "best" renderer for the existing objects: 'Painters' for 2D, 'OpenGL' or 'ZBuffer' for 3D, 'OpenGL' for 3D with a lot of data or transparencies.
If you specify, how you "print" the graphics, the influence of the renderer could be investigated. Do you call the print command, and if so, how? Do you print to paper and specify a 'paperposition' outside the printable area?

hana
hana 2012년 6월 29일
Yes thanks Tom, that was the reason preventing the graphics from printing. but the other kind of renderer is too slow and choppy, which I solved with switching immediately before and after printing.

카테고리

Help CenterFile Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by