How to compress the logarithmic scale of both axes in a plot?
Mostrar comentarios más antiguos
Hi,
how can i change the scaling of an logarithmic axis, so that the distance between
,
,
and so on gets smaller the higher the values get?
,
,
and so on gets smaller the higher the values get?Id like to have the axes scaled as in the following picture (both logarithmic):

The Distance on the y-Axis between 1 and 10 is bigger than the distance between 10 and 100. And the distance gets smaller the higher the values get.
Is it possible to do a plot like this.
My Code shows a graph like the one below. The exact values of the plot are not relevant i used random values in my Code to test the scaling of the axes.
My plot:

Relevant part of my Code for the plot:
%Verlauf plotten
loglog([PA(1),PE(1)],[PA(2),PE(2)]);
%Konfiguration der Achsen
axis([1,120,1,10000]);
ax =gca;
ax.XAxis.TickValues =[1 5 8 10 50 80 100]; %Angezeigte Werte der X-Achse
ax.YAxis.TickValues =[1 2 5 8 10 20 50 80 100 1000 10000]; %Angezeigte Werte der X-Achse
ax.YAxis.Scale = 'log';
grid on;
ylabel('kinematische Viskosit in mm2/s');
xlabel('Temperatur in °C');
title('Ubbelohde-Walther-Diagramm');
Thanks in advance!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Log Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
