def figure_naming(pretitle='<STR_LIT>', posttitle='<STR_LIT>', prefile='<STR_LIT>', postfile='<STR_LIT>'):
if pretitle:<EOL><INDENT>pretitle = "<STR_LIT>" % pretitle<EOL><DEDENT>if posttitle:<EOL><INDENT>posttitle = "<STR_LIT>" % posttitle<EOL><DEDENT>if prefile:<EOL><INDENT>prefile = "<STR_LIT>" % prefile<EOL><DEDENT>if postfile:<EOL><INDENT>postfile = "<STR_LIT>" % postfile<EOL><DEDENT>return pretitle, posttitle, prefile, postfile<EOL>
Helper function to define the strings that handle pre-post conventions
for viewing - plotting title and saving options.

Args:
    pretitle(str): String to include before the general title of the figure.
    posttitle(str): String to include after the general title of the figure.
    prefile(str): String to include before the general filename of the figure.
    postfile(str): String to include after the general filename of the figure.

Returns:
    str: String to include in the figure name and title, in a suitable form.