display records to plot only if there are rows to select