SimplifyTicks

The SimplifyTicks function of the mplreport class takes an array of strings and removes any text that is common among all of the array elements at both the start and the end of the array.

Parameters
ParameterTypeDefaultMeaning
arrlistThe array of strings to process
Return

This function returns an array of strings with the common elements removed.

Example
arr = ["Motor A Oil Temperature","Motor B Oil Temperature","Motor C Oil Temperature"]
print(str(report.SimplifyTicks(arr)))

This code would output the array…

A,B,C