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 = Trueg_o.Plots[-1].LegendSettings.MaxValue.Automatic = Trueit doesn't give any error, but also doesn't work.What command should I use?Many thanks in advance!
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 nowg_o.Plots[-1].LegendSettings.MinValue = -1.6 # I change the minimum value so it switches to Manualg_o.Plots[-1].ResultType = g_o.ResultTypes.Soil.Ux # switch to any random plot to reset itg_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.
Thank you!