Info

This question is closed. Reopen it to edit or answer.

Seek help to plot and save all figure components properly in "figure invisible" mode

1 view (last 30 days)
Hi Matlab Experts, I am making multiplots using subplot (4 subplots) commands and figure handles in loop. I am plotting three images (using imshow and using titles) and one graph in 4 subplots. Each time figure was popping in. So I used in beginning of that figure definition :
h1 = figure();
set(gcf,'Visible', 'off');
followed by subplot commands somethign like this: .
subplot(2,3,1)........
subplot(2,3,2).......
subplot(2,3,3)...........
%4th subplot starts here:
subplot(2,3,[4 6]); plot(x1,y1, x2,y2,x3,y3);
title('XYZ4');
xlabel('bla bla1'); ylabel('bla bla2');
legend('bla bla');
followed by saving command to save image....
This makes figure invisible and does not show any error. The saved image shows first three subplots correctly and also shows legend and graph of fourth one. However that has taken away the title and x,y lables and axis of 4th subplot. while surprisingly titles of first there subplots and legend of fourth subplot are coming correctly.
I tried setting axes :
set(gca,'Visible', 'off');
even that didn't work.
Can some expert help please. I need this urgently to proceed further.
Thanks a Ton in advance for the right answer :)

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!