Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

equal scaled y axis with two graphs

Status
Not open for further replies.

Ave

Newbie level 4
Newbie level 4
Joined
Oct 6, 2014
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
34
Hello,
I have two different graphs beside each other by subplot but I need to make the vertical axis with the same scale in both graphs, I have tried few options it is not working for two graphs as it daes for one graph.
Does any one have any idea how to make it?
Cheers,
Ave
 

in excel its easy.

the second data set properties are applied to the secondary axis
then select one y axis & choose manual for all ;min, max , major and minor incrments
then repeat for axis.

for Open Office Scalc.exe do same except choose max, min, increment and number of subdivisions.

For MATLAB, who knows ( F1 ;)
 

I have two different graphs beside each other by subplot but I need to make the vertical axis with the same scale in both graphs, I have tried few options it is not working for two graphs as it daes for one graph.Ave

I presume you are working in matlab ? In other software like excel it is still easier.

To do that in matlab,you need to know about handles & how to play with them.
Say you have two subplots subplot(1,2,1) & subplot(1,2,2).
Take handles of both of them & set their axes properties using set command

For your case it turns out to be set(H,'YLim',[min,max]); use this set command where H is the handle of subplot whose properties you want to change.
 
  • Like
Reactions: Ave

    Ave

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top