Can the vertical axis of a plot be configured to have log log scaling?
Show older comments
Hello,
I’m trying to find software that can plot oil viscosities that follow something called the Walther Equation.

This plots a straight line when the vertical axis is a double log scale.
This is the standard scaling applied to the ASTM D 341-17 chart for plotting viscosities.
Does this software have the ability to set up a vertical axis with this log log scaling?
Thanks for the help,
Andy


8 Comments
Mil Shastri
on 1 Nov 2019
Hi Andy,
Would you like to plot 'gamma' or 'delta'? Also, got some sample data?
I would recommend looking at the log10 documentation which can be applied to matrices too: https://www.mathworks.com/help/matlab/ref/log10.html
Andy Hessler
on 1 Nov 2019
Andy Hessler
on 1 Nov 2019
Mil Shastri
on 1 Nov 2019
Thanks for sharing the data. You can use the semilogy command
semilogy(Sample20Data20for20plotting20viscosities2001NOV20191.K,Sample20Data20for20plotting20viscosities2001NOV20191.Viscosity);
Or for a log log plot you could just use the following:
plot(Sample20Data20for20plotting20viscosities2001NOV20191.K,log(log(Sample20Data20for20plotting20viscosities2001NOV20191.Viscosity)));
Also, I highly encourage using the Import tool, I used it to import your data from it url (https://www.mathworks.com/matlabcentral/answers/uploaded_files/246025/Sample%20Data%20for%20plotting%20viscosities%20(01NOV2019).xlsx) into a table
Andy Hessler
on 1 Nov 2019
Mil Shastri
on 1 Nov 2019
This plot is using semilogy(temp, viscosity) command:
and using the plot(temp, log(log(viscosity)) command:

and if you are curious to learn about some of the visualization and data analysis approaches, this is might be a useful (but 55 minute long) video https://www.mathworks.com/videos/matlab-for-excel-users-81634.html?s_tid=srchtitle
Andy Hessler
on 1 Nov 2019
Mil Shastri
on 1 Nov 2019
My pleasure, all the best!
Answers (1)
Valeriy
on 1 Nov 2019
0 votes
LL = log10(viscosity);
semilogy(x,LL);
??
3 Comments
Andy Hessler
on 1 Nov 2019
Brett
on 21 Sep 2023
Was a solution to this problem found? I am trying to determine something similar.
Dyuman Joshi
on 21 Sep 2023
Categories
Find more on Axis Labels in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
