How to change axis to log scale for Mechanical charts?
![Ayush Kumar](https://us.v-cdn.net/6037473/uploads/userpics/RGJ3E8O4WFAG/n98CYBYJ7H6ZS.jpg)
Ayush Kumar
Member, Moderator, Employee Posts: 472
✭✭✭✭
Answers
-
For log scale you need to first get the axis you want to set to log-scale and then select if you would like the common log or the natural log, example code
x_axis = figure.axes.get("bottom") x_axis.Logrithmic = chart.LogBase.LogBaseCommon # For common log y_axis = figure.axes.get("left") y_axis.Logrithmic = chart.LogBase.LogBaseNatural # For natural log
2