Fix plot linew

Closes #971.

Edit: This also closes #284.