added check for no tag matches empty plotting