Skip to content

Various changes working on improving the functionality of the plotting scripts

Benjamin Collingwood requested to merge updating_plotting into main
  • Added figure_id to the MatplotlibBackend class to allow multiple plots to be created and data added to them at the same time before being plotted. Is a little hacky, but I'm not sure of the best way around it.
  • Changed a few part of the series.py code and the set_colour_map method in the in the Plot class to allow specific colours to be set for certain series'.
  • Added markers to the line plots, and allowed selecting markers for certain series'. Code was added to all 3 scripts for this.
  • Changed some Series logic to allow data to be added as you go, rather than collecting all the data and creating the Series with the pre-made x and y lists.
  • Following that added a sort method which sorts the series' data by the x-axis values. Not sure if I've done this in a strange way, seems a tad over the top but seemed an obvious route.

NOTE: lines 39/40 of series.py . In the LinePlotSeries method the x and y variables have lost their list[float] specification as they are set to None on initialisation, which is then solved in an if/else. Not sure what is best here.

Merge request reports