save_array = numpy.array([strain * 100, stresses_factored.inUnitsOf(GPa)]).transpose()
numpy.savetxt('stress_strain.txt', save_array)
In the above code that gives the graph of stress versus strain. I want to get the graph of pressure versus strain. as you know the relationship between pressure and stress is :
P = 1 / 3 Tr [stress]
How do I enter this formula to in the code and plot the graph of pressure versus strain?