Python script to plot curve.