Plots

It used used to create different plots.

DIRAC.Core.Utilities.Plotting.Plots.checkMetadata(metadata)
Parameters:

metadata (dict) – it contains information which will used in the plot creation.

DIRAC.Core.Utilities.Plotting.Plots.generateCumulativePlot(fileName, data, metadata)

It is used to create cumulativ plots.

Parameters:
  • fileName (str) – the name of the file

  • data (list) – the data which is used to create the plot

  • metadata (dict) – extra information used to create the plot.

DIRAC.Core.Utilities.Plotting.Plots.generateErrorMessagePlot(msgText)

It creates a plot whith a specific error message

Parameters:

msgText (str) – the text which will appear on the plot.

Returns:

the plot.

DIRAC.Core.Utilities.Plotting.Plots.generateHistogram(filename, data, metadata)

It is used to create histograms.

Parameters:
  • fileName (str) – the nanme of the file

  • data (list) – the data which is used to create the plot

  • metadata (dict) – extra information used to create the plot.

DIRAC.Core.Utilities.Plotting.Plots.generateNoDataPlot(fileName, data, metadata)

Tis generate an image with a specific error message.

Parameters:
  • fileName (str) – name of the file

  • data (list) – data

  • metadata (dict) – metadata information

DIRAC.Core.Utilities.Plotting.Plots.generatePiePlot(fileName, data, metadata)

It is used to create pie charts.

Parameters:
  • fileName (str) – the nanme of the file

  • data (list) – the data which is used to create the plot

  • metadata (dict) – extra information used to create the plot.

DIRAC.Core.Utilities.Plotting.Plots.generateQualityPlot(fileName, data, metadata)

It is used to create 2D plots.

Parameters:
  • fileName (str) – the name of the file

  • data (list) – the data which is used to create the plot

  • metadata (dict) – extra information used to create the plot.

DIRAC.Core.Utilities.Plotting.Plots.generateStackedLinePlot(fileName, data, metadata)

It is used to create stacked line plot.

Parameters:
  • fileName (str) – the name of the file

  • data (list) – the data which is used to create the plot

  • metadata (dict) – extra information used to create the plot.

DIRAC.Core.Utilities.Plotting.Plots.generateTimedStackedBarPlot(fileName, data, metadata)

It is used to create a time based line plot.

Parameters:
  • fileName (str) – the name of the file

  • data (list) – the data which is used to create the plot

  • metadata (dict) – extra information used to create the plot.