def minimize_graph():
    context = mu.get_graph_context()
    bpy.ops.screen.back_to_previous(context)
def maximize_graph():
    context = mu.get_graph_context()
    bpy.ops.screen.screen_full_area(context)