set automatic values in Legend for OUTPUT using Plaxis Python

Hi,

I want to set automatic values in the legend for OUTPUT using Plaxis Python.

I tried this:

g_o.Plots[-1].LegendSettings.MinValue.Automatic = True
g_o.Plots[-1].LegendSettings.MaxValue.Automatic = True

it doesn't give any error, but also doesn't work.
What command should I use?

Many thanks in advance!
Parents
  • Dear Kacper,

    Indeed, it does not work as this is not a PLAXIS setting. This is simply not implemented yet, which is why we have requested it. I have added your request, too, now.

    One workaround another user found was the following:

    If you first set the legend settings on manual (based on what you need at that stage), then switch to a Plastic points plot (or any different plot type) and again to the plot you had at first, the legend settings are back to ‘Automatic’.

    So, as an example for this workaround until we implement this:

    g_o.Plots[-1].ResultType = g_o.ResultTypes.Soil.Utot  # this is the plot I want and it is set to Automatic now
    g_o.Plots[-1].LegendSettings.MinValue = -1.6  # I change the minimum value so it switches to Manual
    g_o.Plots[-1].ResultType = g_o.ResultTypes.Soil.Ux  # switch to any random plot to reset it
    g_o.Plots[-1].ResultType = g_o.ResultTypes.Soil.Utot  # this is the plot I want and it is set to again to Automatic

    Naturally, the simplest recommendation is to export any plots at the first stage where it is already set to Automatic, then change to a Manual choice and continue. Each time you switch to a different plot the legend settings go back to Automatic.

Reply Children
No Data