Please provide a MWE (minimal working example that people can copy and paste to reproduce the problem, including all data and using
calls). See Please read: make it easier to help you. In particular you haven’t said which of the many plotting libraries you are using.