How to change axis to log scale for Mechanical charts?

Member, Moderator, Employee Posts: 479
100 Answers 250 Likes 100 Comments Second Anniversary
✭✭✭✭
edited June 2023 in Structures

How to change axis to log scale for Mechanical charts?

Tagged:

Answers

  • Member, Moderator, Employee Posts: 479
    100 Answers 250 Likes 100 Comments Second Anniversary
    ✭✭✭✭
    Answer ✓

    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

    1. x_axis = figure.axes.get("bottom")
    2. x_axis.Logrithmic = chart.LogBase.LogBaseCommon # For common log
    3. y_axis = figure.axes.get("left")
    4. y_axis.Logrithmic = chart.LogBase.LogBaseNatural # For natural log

Welcome!

It looks like you're new here. Sign in or register to get started.