Fixed backend workflow.

Makes the nbagg backend behave like most other backends.

I have an acceptance test which I would run on the changes once I get back from scipy, but for the meantime, this seems to work as expected.