PYTHON get the max displacement of a phase for the Legend setting in a plot

Hi,

how to get the max displacement of for a plot in python?

I can get the SumMsf out of the Reached method for each phase, how ever no displacement value is stored there.

I need that to set the max value of the legend for the displacement plot.

Or asking it in a different way:

how to adjust the legend setting to automatic in python?

thanks.