pysilcam/plotting.py
def psd(stats, settings, ax, line=None, c='k'):
    '''
    Plot a normalised particle volume distribution
    
    Args:
        stats (DataFrame)           : particle statistics from silcam process
        settings (PySilcamSettings) : settings associated with the data, loaded with PySilcamSettings
        ax ()                       : axis to plot data on
        line=None ()                : ?? possibly an option to rapidly replace a proviously plotted line??
        c='k' (str)                 : color of the line to be plotted
        
    Returns:
        line ()                     : ?? the plotted line, possible returned incase of future adjustment??
    
    '''

    dias, vd = sc_pp.vd_from_stats(stats, settings)

    if line:
        line.set_data(dias, vd/np.sum(vd)*100)
    else:
        line, = ax.plot(dias,vd/np.sum(vd)*100, color=c)
        ax.set_xscale('log')
        ax.set_xlabel('Equiv. diam (um)')
        ax.set_ylabel('Volume concentration (%/sizebin)')
    ax.set_xlim(10, 10000)
    ax.set_ylim(0, max(vd/np.sum(vd)*100))

    #ax.axvline(sc_pp.d50_from_vd(vd,dias), color=c)

    return line

    Plot a normalised particle volume distribution
    
    Args:
        stats (DataFrame)           : particle statistics from silcam process
        settings (PySilcamSettings) : settings associated with the data, loaded with PySilcamSettings
        ax ()                       : axis to plot data on
        line=None ()                : ?? possibly an option to rapidly replace a proviously plotted line??
        c='k' (str)                 : color of the line to be plotted
        
    Returns:
        line ()                     : ?? the plotted line, possible returned incase of future adjustment??
    
    
Plot a normalised particle volume distribution
Plot a normalised particle volume distribution
def psd(stats, settings, ax, line=None, c='k'):
    dias, vd = sc_pp.vd_from_stats(stats, settings)
    if line:
        line.set_data(dias, vd/np.sum(vd)*100)
    else:
        line, = ax.plot(dias,vd/np.sum(vd)*100, color=c)
        ax.set_xscale('log')
        ax.set_xlabel('Equiv. diam (um)')
        ax.set_ylabel('Volume concentration (%/sizebin)')
    ax.set_xlim(10, 10000)
    ax.set_ylim(0, max(vd/np.sum(vd)*100))
    return line
def psd ( stats , settings , ax , line = None , c = 'k' ) : dias , vd = sc_pp . vd_from_stats ( stats , settings ) if line : line . set_data ( dias , vd / np . sum ( vd ) * 100 ) else : line , = ax . plot ( dias , vd / np . sum ( vd ) * 100 , color = c ) ax . set_xscale ( 'log' ) ax . set_xlabel ( 'Equiv. diam (um)' ) ax . set_ylabel ( 'Volume concentration (%/sizebin)' ) ax . set_xlim ( 10 , 10000 ) ax . set_ylim ( 0 , max ( vd / np . sum ( vd ) * 100 ) ) return line
Plot a normalised particle volume distribution
Plot a normalised particle volume distribution
'''
    Plot a normalised particle volume distribution
    
    Args:
        stats (DataFrame)           : particle statistics from silcam process
        settings (PySilcamSettings) : settings associated with the data, loaded with PySilcamSettings
        ax ()                       : axis to plot data on
        line=None ()                : ?? possibly an option to rapidly replace a proviously plotted line??
        c='k' (str)                 : color of the line to be plotted
        
    Returns:
        line ()                     : ?? the plotted line, possible returned incase of future adjustment??
    
    ''' #ax.axvline(sc_pp.d50_from_vd(vd,dias), color=c)
None
stats
particle statistics from silcam process
particle statistics from silcam process
settings
settings associated with the data, loaded with PySilcamSettings
settings associated with the data loaded with PySilcamSettings
ax
line
c
ax ()                       
axis to plot data on
axis to plot data on
line=None ()                
None
c='k'
color of the line to be plotted
color of the line to be plotted