main

This file contains function to set automatically the color templates in Fraunhofer cd

@author: cwolff

main.get_plotly_template(style: str = 'scientific', colors: str = 'official')

This function sets the the different styles for matplotlib plots. Please run this function, after the figure is build.

Parameters:
  • style (str, optional) – Sets the default style. Options are:[“darkgrid”, “greengrid”, “grid”, “scientific”]. Defaults to “scientific”.

  • colors (str, optional) – Sets the colormap that is used for traces. Options are: [colorful, official, rainbow]. Defaults to “official”.

main.set_matplotlib_style(style: str = 'scientific', colors: str = 'official')

This function sets the the different styles for matplotlib plots. Please run this function, before the figure is created.

Parameters:
  • style (str, optional) – Sets the default style. Options are:[“darkgrid”, “greengrid”, “grid”, “scientific”]. Defaults to “scientific”.

  • colors (str, optional) – Sets the colormap that is used for traces. Options are: [colorful, official, rainbow]. Defaults to “official”.