How to add multiple axes to a log-log plot?
Afficher commentaires plus anciens
I would like to create a log-log-plot with multiple x-axes. My goal is to display my data 'y' as function of 'x' and as a function of 'u=a*x' simultaneously. I have seen examples of plots with multiple axes but did not come across any log-log plot. Is there a way to achieve this?
Any hint would be appreciated, Christian
Réponse acceptée
Plus de réponses (2)
Azzi Abdelmalek
le 9 Juil 2015
Look at this example
x1=0:0.01:5
x2=10*x1
y1=sin(x1)
y2=2*cos(x2)
plot(x1,y1,'r')
hold on,
ax2=axes('xaxislocation','top','yaxislocation','right','color','none')
hold on
plot(x2,y2,'g')
Catégories
En savoir plus sur Annotations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!