Useful tools for Nyaplot