Base directive for plotting lib