yongrenjie / penguins

A Python 3 package for analysing and plotting NMR spectra.
https://yongrenjie.github.io/penguins
MIT License
5 stars 2 forks source link

Allow fast way of setting xlabel/ylabel location (and yticks for 2D) #4

Closed yongrenjie closed 1 year ago

yongrenjie commented 4 years ago

For example for 2D spectra, all of this could be bundled into one function.

Alternatively, we could add another kwarg to mkplot2d(). That might actually be more sensible.

ax.yaxis.tick_right()
ax.yaxis.label.set_rotation(0)
ax.yaxis.label.set_horizontalalignment("left")
ax.yaxis.label.set_verticalalignment("top")
ax.yaxis.set_label_coords(1.02, 1)
yongrenjie commented 4 years ago

That would give something like this.

Screenshot 2020-08-10 at 3 25 25 AM
yongrenjie commented 4 years ago

Done to a certain extent (good enough for the example in the README), but needs to be fleshed out and documented.