def get_figure(new_fig=True, subplot='<STR_LIT>', params=None):
_get_plt()<EOL>if new_fig:<EOL><INDENT>fig = plt.figure()<EOL><DEDENT>else:<EOL><INDENT>fig = plt.gcf()<EOL><DEDENT>params = dict_if_none(params)<EOL>if isinstance(subplot, (tuple, list)):<EOL><INDENT>ax = fig.add_subplot(*subplot, **params)<EOL><DEDENT>else:<EOL><INDENT>ax = fig.add_subplot(subplot, **params)<EOL><DEDENT>return fig, ax<EOL>
Function to be used for viewing - plotting,
to initialize the matplotlib figure - axes.

Args:
    new_fig(bool): Defines if a new figure will be created, if false current figure is used
    subplot (tuple or matplolib subplot specifier string): Create axes with these parameters
    params (dict): extra options passed to add_subplot()

Returns:
    Matplotlib Figure and Axes