# For Python 3 # In place of the dollar sign $ put any sign you would need graph.yaxis.set_major_formatter('${x:1.2f}')