Changing Scale on Plotyy
    6 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
Suppose you want to use plotyy,
one function ranges from [0,1], the other function ranges from [-1,10000]
Suppose that in the section function, it's minimum value is say -.67, when you plot them together, the second function appears above the first one due to the range, suppose I want to bring it down, how would I do this?
0 Commenti
Risposta accettata
  Azzi Abdelmalek
      
      
 il 27 Ago 2013
        
      Modificato: Azzi Abdelmalek
      
      
 il 27 Ago 2013
  
      [ax,h1,h2]=plotyy(x1,y1,x2,y2)
use the handle ax(1) to change the first axis and ax(2) to change the second one
For example
set(ax(2),'ylim',[ymin ymax])
3 Commenti
  Azzi Abdelmalek
      
      
 il 27 Ago 2013
				
      Modificato: Azzi Abdelmalek
      
      
 il 27 Ago 2013
  
			You can control your scale
set(ax(2),'ylim',[min(y2) max(y2)])
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Two y-axis in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!