Question:

Matlab simple handler question?

by  |  earlier

0 LIKES UnLike

Dear all,

I need to make plenty plots, each plot have 2 subplot. Each subplots have to have the same x and y range, the font of the number have to set to 16 and the 'box' need to be cancelled, the tick direction need to set to outward.

I want to know whether any way that I can just copy and paste one command line to finish all the work? I don't want to have click a hundred buttons for each plot

Please help

 Tags:

   Report

1 ANSWERS


  1. I usually define subplots in a loop and define plot formatting with in the loop, but I found a neat function you can use

    hold on;

    I don't know what buttons you are clicking I do all formating inside my code.

    So after you subplot(4,4,1) use axes([x1 x2 y1 y2])

    or you can use axes after your first plot and use hold on if you are not doing your subplots inside a loop.

    I would go over some of the plotting commands to make your life easier.

    set(gca,’FontSize’,12,’FontName’,’Time...

    changes the size and font of the axis numbers

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.