import matplotlib as mpl
import matplotlib.pyplot as plt


def cm2inch(value):
    """ function for resizing figures to page dimensions """
    return value / 2.54

import matplotlib as mpl
import matplotlib.pyplot as plt


def cm2inch(value):
    """ function for resizing figures to page dimensions """
    return value / 2.54

function for resizing figures to page dimensions