[Matplotlib-users] invert columns and labels

alberto voodoo.bender at gmail.com
Mon Apr 16 10:25:18 EDT 2018


Hi,
I use this command to calculate an array of 3x3 matrices

sigma = data[indices, 3:12].reshape((-1, 3, 3))

to return

# Plot the xx, yy and zz components as a function of the first column
plt.figure()
labels = ("xx", "yy", "zz")
for i, label in enumerate(labels):
    plt.plot(Ef, sigma[:, i, i], label=label)
plt.legend(loc="best")
plt.xlabel(r"Energy [eV]")
plt.ylabel(r"$\sigma$ [1/$\Omega$ m s]")
plt.tight_layout()
plt.show()


How could invert the results xx to zz?

something as data[indices, 12:3]?

regards

Alberto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20180416/ea6e6ca1/attachment.html>


More information about the Matplotlib-users mailing list