only plot when there's data
fixes #76