Tidied version of inline gridding code example.