26 views (last 30 days)

I am using MATLAB R2018 b. I have two plots with same x but, the limits of y axes are different. Both plots has a line and some data points (different color of the line and shape of the markers). These two plots are output from two different scripts. I want to combine these two plots to compare my results.

I am unable to use the dock figure option which was suggested for one such similar questions in the community.

Any help would be appreciated.

Star Strider
on 24 Aug 2019

Star Strider
on 25 Aug 2019

Hi!

Add this line somewhere after the plot call loop:

set(gca, 'Box','on')

Opportunities for recent engineering grads.

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

Start Hunting!
## 0 Comments

Sign in to comment.