Python for Science and Engg:Plotting experimental dataFOSSEEDepartment of Aerospace EngineeringIIT BombaySciPy 2010, Introductory tutorials,Day 1, Session 2FOSSEE group (IIT Bombay) Plotting with Python 1 / 37Outline1 Plotting Points2 Lists3 Simple Pendulum4 Strings5 SummaryFOSSEE group (IIT Bombay) Plotting with Python 2 / 37Plotting PointsOutline1 Plotting Points2 Lists3 Simple Pendulum4 Strings5 SummaryFOSSEE group (IIT Bombay) Plotting with Python 3 / 37Plotting PointsWhy would I plot f(x)?Do we plot analytical functions or experimental data?In []: time = [0, 1, 2, 3]In []: distance = [7, 11, 15, 19]In []: plot(time,distance)Out[]: []In []: xlabel(’time’)Out[]: In []: ylabel(’distance’)Out[]: object at 0x98746ec>FOSSEE group (IIT Bombay) Plotting with Python 4 / 37Plotting PointsIs this what you have?FOSSEE group (IIT Bombay) Plotting with Python 5 / 37Plotting PointsPlotting pointsWhat if we want to plot the points?In []: clf()In []: plot(time, distance, ’o’)Out[]: []In []: clf()In []: plot(time, distance, ’.’)Out[]: []FOSSEE group (IIT Bombay) Plotting with Python 6 / 37Plotting PointsFOSSEE group (IIT Bombay) Plotting with Python 7 / 37Plotting PointsAdditional Line Styles’o’ - Filled circles’.’ - Small Dots’-’ - Lines’--’ - Dashed ...