<div dir="ltr"><div class="gmail_default" style="font-family: courier\ new, monospace; font-size: small;">Hi, <br>I use this command to calculate an array of 3x3 matrices<br><br>sigma = data[indices, 3:12].reshape((-1, 3, 3))<br><br></div><div class="gmail_default" style="font-family: courier\ new, monospace; font-size: small;">to return <br><br># Plot the xx, yy and zz components as a function of the first column<br>plt.figure()<br>labels = ("xx", "yy", "zz")<br>for i, label in enumerate(labels):<br>    plt.plot(Ef, sigma[:, i, i], label=label)<br>plt.legend(loc="best")<br>plt.xlabel(r"Energy [eV]")<br>plt.ylabel(r"$\sigma$ [1/$\Omega$ m s]")<br>plt.tight_layout()<br>plt.show()<br><br><br></div><div class="gmail_default" style="font-family: courier\ new, monospace; font-size: small;">How could invert the results xx to zz?<br><br></div><div class="gmail_default" style="font-family: courier\ new, monospace; font-size: small;">something as data[indices, 12:3]?<br><br></div><div class="gmail_default" style="font-family: courier\ new, monospace; font-size: small;">regards<br><br></div><div class="gmail_default" style="font-family: courier\ new, monospace; font-size: small;">Alberto<br></div><div class="gmail_default" style="font-family: courier\ new, monospace; font-size: small;"><br><br></div></div>