fixed legend off axis plot

using e.g. PlotPanel.oplot(..., legend_on=False) did not work due to the small bug I fixed in this patch.