def polar2dial(ax):
    '\n    Turns a matplotlib axes polar plot into a dial plot\n    '
    ax.set_theta_zero_location('S')
    theta_label_values = ((np.array([0.0, 3.0, 6.0, 9.0, 12.0, 15.0, 18.0, 21.0]) * 180.0) / 12)
    theta_labels = [('%d:00' % int(((th / 180.0) * 12))) for th in theta_label_values.flatten().tolist()]
    ax.set_thetagrids(theta_label_values, labels=theta_labels)
    r_label_values = (90.0 - np.array([80.0, 70.0, 60.0, 50.0, 40.0]))
    r_labels = [('$%d^{o}$' % int((90.0 - rv))) for rv in r_label_values.flatten().tolist()]
    ax.set_rgrids(r_label_values, labels=r_labels)
    ax.set_rlim([0.0, 40.0])
Turns a matplotlib axes polar plot into a dial plot
def polar2dial(ax):
    '\n    \n    '
    ax.set_theta_zero_location('S')
    theta_label_values = ((np.array([0.0, 3.0, 6.0, 9.0, 12.0, 15.0, 18.0, 21.0]) * 180.0) / 12)
    theta_labels = [('%d:00' % int(((th / 180.0) * 12))) for th in theta_label_values.flatten().tolist()]
    ax.set_thetagrids(theta_label_values, labels=theta_labels)
    r_label_values = (90.0 - np.array([80.0, 70.0, 60.0, 50.0, 40.0]))
    r_labels = [('$%d^{o}$' % int((90.0 - rv))) for rv in r_label_values.flatten().tolist()]
    ax.set_rgrids(r_label_values, labels=r_labels)
    ax.set_rlim([0.0, 40.0])