Skip to content

plotting routine

Peter Lünenschloß requested to merge plotFunc into develop

New plotting functionality integrated.

  • added .show method to the saqc object
  • added plot to tools module
  • removed old PLOT mechanics (not sure if i did everything right when carving out the PLOT keyword reference from the core and the reader - i guess the APIController now looks a little strange - maybe you want to have a look @schaefed)

NOTE: translator dependent features are yet to be integrated

Examples:

New plotting is not shiny, but handy and customizable.

Blank call to .show gives the following:

saqc.show(field='incidents')

plotExample

  • As soon as translator is available, a legend, indicating the flaglevel for the red dots will be added

PLotting can set to be "history-sensitive". Also slices can be passed:

i_saqc.show(field='incidents', plot_kwargs={'history':'valid', 'slice':slice('2020-03')})

histPlotExample

  • As soon as callStack is available, flags can be labeled with test names.

A statistics table can be added - as it was possible with the old plotting mechanics.

i_saqc.show(field='incidents', stats=True)

tableExample

  • The table is ugly - but hell - its just a little annoying to make nice tables with matplotlib - any hints are welcome

The statistics are sensible to the slice passed. Also, it is possible to add custom statistics to the table. I think that is a cool feature - also with having the reporting tool to come in mind.

i_saqc.show(field='incidents', stats=True, stats_dict={'my_summary': lambda x, y, z: round(np.std(x),2)}) 

CustomTableExample

Edited by Peter Lünenschloß

Merge request reports