CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions | Variables
public_plots_tools Namespace Reference

Classes

class  ColorScheme
 

Functions

def AddLogo
 
def DarkenColor
 
def InitMatplotlib
 
def LatexifyUnits
 
def RoundAwayFromZero
 
def SavePlot
 

Variables

tuple FONT_PROPS_AX_TITLE = FontProperties(size="x-large", weight="bold")
 
tuple FONT_PROPS_SUPTITLE = FontProperties(size="x-large", weight="bold", stretch="condensed")
 
tuple FONT_PROPS_TICK_LABEL = FontProperties(size="large", weight="bold")
 
tuple FONT_PROPS_TITLE = FontProperties(size="large", weight="regular")
 

Function Documentation

def public_plots_tools.AddLogo (   logo_name,
  ax,
  zoom = 1.2 
)
Read logo from PNG file and add it to axes.

Definition at line 39 of file public_plots_tools.py.

def public_plots_tools.DarkenColor (   color_in)
Takes a tuple (r, g, b) as input.

Definition at line 97 of file public_plots_tools.py.

def public_plots_tools.InitMatplotlib ( )
Just some Matplotlib settings.

Definition at line 26 of file public_plots_tools.py.

def public_plots_tools.LatexifyUnits (   units_in)

Definition at line 73 of file public_plots_tools.py.

def public_plots_tools.RoundAwayFromZero (   val)

Definition at line 60 of file public_plots_tools.py.

def public_plots_tools.SavePlot (   fig,
  file_name_base 
)
Little helper to save plots in various formats.

Definition at line 215 of file public_plots_tools.py.

Variable Documentation

tuple public_plots_tools.FONT_PROPS_AX_TITLE = FontProperties(size="x-large", weight="bold")

Definition at line 21 of file public_plots_tools.py.

tuple public_plots_tools.FONT_PROPS_SUPTITLE = FontProperties(size="x-large", weight="bold", stretch="condensed")

Definition at line 19 of file public_plots_tools.py.

tuple public_plots_tools.FONT_PROPS_TICK_LABEL = FontProperties(size="large", weight="bold")

Definition at line 22 of file public_plots_tools.py.

tuple public_plots_tools.FONT_PROPS_TITLE = FontProperties(size="large", weight="regular")

Definition at line 20 of file public_plots_tools.py.