Python Inserting Variable Interval Graphing