update cavity scan analysis

add savefig into analyze function
add analyze_trans and analyze_ref