notebooks/common.py
def plot_summary_line(df, column, p_color, l_color, title,
                      function, argument, label, lfooter, rot=90):
    """Generate a summary line plot, where the line is generated by function()"""
    fig, ax = initiate_plot()
    add_data_points_by_pollster(ax, df, column, p_color)
    add_summary_line(ax, df, column, l_color, function, argument, label, rot=rot)
    ax.legend(loc='best')
    plot_finalise(ax, 
                     ylabel='Per cent',
                     title=title, 
                     lfooter=lfooter,
                     concise_dates=True)
Generate a summary line plot, where the line is generated by function()
Generate a summary line plot, where the line is generated by function()
Generate a summary line plot where the line is generated by function ()
def plot_summary_line(df, column, p_color, l_color, title,
                      function, argument, label, lfooter, rot=90):
    fig, ax = initiate_plot()
    add_data_points_by_pollster(ax, df, column, p_color)
    add_summary_line(ax, df, column, l_color, function, argument, label, rot=rot)
    ax.legend(loc='best')
    plot_finalise(ax, 
                     ylabel='Per cent',
                     title=title, 
                     lfooter=lfooter,
                     concise_dates=True)
def plot_summary_line ( df , column , p_color , l_color , title , function , argument , label , lfooter , rot = 90 ) : fig , ax = initiate_plot ( ) add_data_points_by_pollster ( ax , df , column , p_color ) add_summary_line ( ax , df , column , l_color , function , argument , label , rot = rot ) ax . legend ( loc = 'best' ) plot_finalise ( ax , ylabel = 'Per cent' , title = title , lfooter = lfooter , concise_dates = True )
Generate a summary line plot, where the line is generated by function()
Generate a summary line plot where the line is generated by function ()
"""Generate a summary line plot, where the line is generated by function()"""
df
column
p_color
l_color
title
function
argument
label
lfooter
rot