matplotliba mathematical plotting library we'll use matplotlib to make simple plotssuch as line graphs and scatter plots after whichwe'll create more interesting data set based on the concept of random walk-- visualization generated from series of random decisions we'll also use package called pygalwhich focuses on creating visualizations that work well on digital devices you can use pygal to emphasize and resize elements as the user interacts with your visualizationand you can easily resize the entire representation to fit on tiny smartwatch or giant monitor we'll use pygal to explore what happens when you roll dice in various ways installing matplotlib firstyou'll need to install matplotlibwhich we'll use for our initial set of visualizations if you haven' used pip yetsee "installing python packages with pipon page on linux if you're using the version of python that came with your systemyou can use your system' package manager to install matplotlib using just one linesudo apt-get install python -matplotlib if you're running python use this linesudo apt-get install python-matplotlib if you installed newer version of pythonyou'll have to install few libraries that matplotlib depends onsudo apt-get install python -dev python -tk tk-dev sudo apt-get install libfreetype -dev +then use pip to install matplotlibpip install --user matplotlib on os apple includes matplotlib with its standard python installation to check whether it' installed on your systemopen terminal session and try import matplotlib if matplotlib isn' already on your system and you used homebrew to install pythoninstall it like thispip install --user matplotlib