Changed theme_empty() to allow the showing of a legend IF there is a need for a legend (like using gradients for edge weights).