Plot Sensor Data Python


The main principle of matplotlib. Now make your own temperature sensor by Arduino and LM35 Sensor You require the following parts: 1-ARDUINO BOARD ANY VERSION; 2-LM35 TEMPERATURE SENSOR. The TAO moored buoy array consists of 55 moored ocean buoys spanning the tropical Pacific Ocean. In most of. Make working with geographic data like working with other kinds of data in python; Work with existing tools Desktop GIS (ArcGIS, QGIS) Geospatial databases (e. Plotting Real-time Data From Arduino Using Python (matplotlib): Arduino is fantastic as an intermediary between your computer and a raw electronic circuit. Aug 25, 2016 · I have data from two sensors that I want to visualize. I want process the data from some ros nodes and make a real time plot, preferably using matplotlib. As one example, we can highlight the daily high consumption of steam while looking at a week's worth of data. Matplotlib is the grandfather of python. ly Python Library - plotly/raspberrypi. 3) Name a few libraries in Python used for Data Analysis and Scientific computations. collections. This is our enriched collection of Python libraries for data science in 2018. Open Raster Data in Python. In this course, Introduction to Data Visualization with Python, you'll learn how to use several essential data visualization techniques to answer real-world questions. You may want to use this for something like graphing live stock pricing data, or maybe you have a sensor connected to your computer, and you want to. xgboost import XGBClassifier. In addition it can be used as a module in Python for plotting. Anderson Gilbert A. Python(x,y) is a free scientific and engineering development software for numerical computations, data analysis and data visualization based on Python programming language, Qt graphical user interfaces and Spyder interactive scientific development environment. Python Forums on Bytes. Python Crash Course - Cheat Sheets. I wanted to display this as a scrolling graph that moves to the right as data keeps coming in. First, we'll subset the steam sensor into one week (called steam_series_four) and create a formatted data object:. Plot annotations are used to call out aspects of a visualization for attention. A common task for scientists and engineers is to analyze data from an external source that may be in a text or comma separated value (CSV) format. The program has to take as input a. tavgM_2d_slv_Nx. For a first project i want to plot sensor data from my arduino that is hooked up to the pc. The arithmetic mean is the sum of the data divided by the number of data points. Kouatchou@nasa. Python Programming for Data Processing and Climate Analysis Jules Kouatchou and Hamid Oloso Jules. PyQwt is a set of Python bindings for the Qwt C++ class library which extends the Qt framework with widgets for scientific and engineering applications. There you have it, a ranked bar plot for categorical data in just 1 line of code using python! Histograms for Numberical Data. Python - NetCDF reading and writing example with plotting. Introduction to Sensors. Welcome! Looking for a fast and flexible visualization software? Here we present psyplot, an open source python project that mainly combines the plotting utilities of matplotlib and the data management of the xarray package and integrates them into a software that can be used via command-line and via a GUI!. get_temperature() Now that we have the data, lets print it to the screen using the print() function. It's been well over a year since I wrote my last tutorial, so I figure I'm overdue. In order to perform slicing on data, you need a data frame. MatPlotLib Tutorial. Plotting Live Sensor Data with Python. Plotting Examples¶. Let's show this by creating a random scatter plot with points of many colors and sizes. txt file that we did on day 1 using TextWrangler. Both sensors take only 0/1 values. In the previous chapter, you saw that the. GeoPandas can help you manage and pre-process the data, and do initial visualizations. This script worked well on a Linux computer, but when the same Python code ran on a Raspberry Pi (reading the same sensor data from the same Arduino via serial port), the Pi was too slow to handle all of the data, so the plot was not picking up dynamic changes in the data that it should have. Data visualization is the graphical representation of data in order to interactively and efficiently convey insights to clients, customers, and stakeholders in general. Real-time plotting of sensor data using Matplotlib. A categorical. Bar plots are a great way to visually represent data and it's very familiar to most people. More syntax for conditions will be introduced later, but for now consider simple arithmetic comparisons that directly translate from math into Python. In this tutorial we look at how to Plot Sense HAT data with matplotlib. all i can do is just to show plot of my sensor in my GUI, but i need the. Then, the server asks for data of particular sensor, then the computer reads the data of that sensor and. For a first project i want to plot sensor data from my arduino that is hooked up to the pc. You can generate intermediate GIS files and plots with GeoPandas, then shift over to QGIS. I want to rotate the below curve to 45 degree and then find the minimum point. In this example I will be using the accelerometer smartphone data that Datarella provided in its Data Fiction competition. For example, let's say that you have the following data about the age of 100 individuals:. In this tutorial, you learn how to visualize real-time sensor data that your IoT hub receives with a node. It creates a plain text file called “mydata. , acceleration, gravity, Rate of rotation around the x axis, … One of the features of the app is the possbility to send the data via TCP/UDP stream to a server (e. Our Team Terms Privacy Contact/Support. xgboost import XGBClassifier. Libraries are simply bundles of pre-existing functions and objects that you can import into your script to save time. Plot an Equation in Excel Using Python Something I've wanted to do easily in Excel is plot equations. Multiple plots on single axis It is time now to put together some of what you have learned and combine line plots on a common set of axes. Reading the data and sending it to Power BI. I’ll use this opportunity to pick up where they left off! Create Random Forests Test/Training Sets. Streaming data to automatically update plots is very straightforward using bokeh-server. Some of the common operations for data manipulation are listed below: Now, let us understand all these operations one by one. py When the sensor data changes, I'll wait 10 seconds. Visualising live micro:bit sensor data with Python and Mu. CSV or comma-delimited-values is a very popular format for storing structured data. It is often necessary to reverse engineer images of data visualizations to extract the underlying numerical data. A common task for scientists and engineers is to analyze data from an external source that may be in a text or comma separated value (CSV) format. Linear Data Smoothing in Python November 17, 2008 Scott Leave a comment General , Python Here’s a scrumptious morsel of juicy python code for even the most stoic of scientists to get excited about. Plotting Real-time Data From Arduino Using Python (matplotlib): Arduino is fantastic as an intermediary between your computer and a raw electronic circuit. Very often we have information from different sources and it's very important to combine it correctly. Veusz is a scientific plotting and graphing program with a graphical user interface, designed to produce publication-ready 2D and 3D plots. Whether you are teaching a class or want to create a dashboard to plot sensor data, the matplotlib Python package has you covered! We introduce a new guide that walks you through the basics of using matplotlib. As we love Python, we've prepared a script called " plot_data. The histogram represents the. Converting to a Bar Chart. This controls if the figure is redrawn every draw() command. 3+) GeoPandas. In most cases these tools can be used without pandas but I think the combination of pandas + visualization tools is so common, it is the best place to start. In this tutorial, we will see how to plot beautiful graphs using csv data, and Pandas. collections. Graphing sensor data with Python. It’s easy to add clean, stylish, and flexible dropdowns, buttons, and sliders to Plotly charts. Parallel plot or parallel coordinates plot allows to compare the feature of several individual observations (series) on a set of numeric variables. This example shows you how to send a byte of data from the Arduino or Genuino to a personal computer and graph the result. All visualizations are npm modules, built with the latest web technologies, and endlessly customizable. It is built for making profressional looking, plots quickly with minimal code. Once this is done, we can make evolute the angle of view (‘camera position’) and use each image to make an animation. I'm a newbie to python. WARNING: this project is largely outdated, and some of the modules are no longer supported by modern distributions of Python. The python-fit module is designed for people who need to fit data frequently and quickly. Once this is done, we can make evolute the angle of view (‘camera position’) and use each image to make an animation. It is similar to a scatter plot except that the measurement points are ordered (typically by their x-axis value) and joined with straight line segments. Internet Of Things Feeling left behind, I too want to get on board the Internet Of Things bandwagon by putting a sensor on the net. If you are using these newer versions of Origin, you can go to the Data menu and select Pick Data Points to select an arbitrary number of individual data points from any plot in a 2D graph. As we love Python, we've prepared a script called "plot_data. More than once I'd like to have a real-time plot for my arduinos sensors (LDR, thermistor, accelerometer, etc). 68 and R 2 from. CSV; Uploads data to a server so you can remotely access you data, or plot them with Google Charts (Python logger code). Android Sensors and SensorManager: Collecting and Plotting. logic level shifter, a voltage divider etc. The first argument is the sensor type, it can be 11 or 22 or 2302. On my previous tutorial, Python WebServer With Flask and Raspberry Pi, we learned how to interact with the physical world, thru a web front-end page, built with Flask. In this example I will be using the accelerometer smartphone data that Datarella provided in its Data Fiction competition. Take-Away Skills: Matplotlib is the most commonly used graphing tool in Python. ) can be individually controlled or mapped to data. You will learn how to: Create line graphs; Create. Don't google AJAX first, or you may get scared off. At the core of data science and data analytics is a thorough knowledge of data visualization. The following was done via the Python interpreter:. So you end up with a list that contains a dictionary that contains two lists! To make the Scatter Plot, I passed the data to plotly’s plot method. In this short tutorial I want to provide a short overview of some of my favorite Python tools for common procedures as entry points for general pattern classification and machine learning tasks, and various other data analyses. ggparallel on the other is specialized on categorical data and produces plots that are clear and good to interpret, if you filter your data beforehand. Can this be related?? Streaming Support Streaming is no longer supported in Plotly Cloud. plot() method will place the Index values on the x-axis by default. The authors produced a handful of useful plots, but didn’t explain how they produced those, either. Learn to create interactive charts and dashboards with Python and Plotly. What is the easiest way to do this? For example if I would like plot the average of two values in the ros network, or add a legend to the plot. Plotting is an essential skill for Engineers. Wednesday, August 3, 2011 How to plot the frequency spectrum with scipy. For a more modern, cleaner, and more complete GUI-based viewer of realtime audio data (and the FFT frequency data), check out my Python Real-time Audio Frequency Monitor project. WARNING: this project is largely outdated, and some of the modules are no longer supported by modern distributions of Python. All visualizations are npm modules, built with the latest web technologies, and endlessly customizable. If you're new to data science with Python I highly recommend reading A modern guide to getting started with Data Science and Python. Python - NetCDF reading and writing example with plotting. Here’s an quick example for getting prices for an ETF representing the S&P 500 index, SPY. Bokeh is a powerful open source Python library that allows developers to generate JavaScript data visualizations for their web applications without writing any JavaScript. Here is a simple Python script to create some test data. It offers line plotting, 2D and 3D surface plots in a variety of formats, and 3D volumetric visualization. This document provides references to software packages that may be used for manipulating or displaying netCDF data. Most commercial sensors (Fitbit, etc. The primary difference of plt. Python code samples for the YouTube Data API are now available in the APIs Explorer. This in principle enables to receive data in real-time and plot them. Learn how to plot graphical weather data from the Raspberry Pi Weather Station. The higher valued digit forms the left column - called stem. Python Forums on Bytes. Introduction. The Ultimate Python Seaborn Tutorial: Gotta Catch ‘Em All Share Google Linkedin Tweet In this step-by-step Seaborn tutorial, you’ll learn how to use one of Python’s most convenient libraries for data visualization. This site contains materials and exercises for the Python 3 programming language. It is similar to a box plot, with the addition of a rotated kernel density plot on each side. Level up your data visualisation. This python Box plot tutorial also includes the steps to create Horizontal Box plot, Vertical Box plot and box plot with notch. This means it is possible to manipulate the sound data then save it. Both sensors take only 0/1 values. For these examples, we'll be using the meat data set which has been made available to us from the U. There are already tons of tutorials on how to make basic plots in matplotlib. Each lesson is a tutorial with specific topic(s) where the aim is to gain skills and understanding how to solve. (The units can even be different). I am using Python and the Matplotlib library for this. Matplotlib. Though it’s entirely possible to extend the code above to introduce data and fit a Gaussian processes by hand, there are a number of libraries available for specifying and fitting GP models in a more automated way. This post is about how I got one and wrote a Python program to send the data from a Raspberry PI over the network to my laptop, which plots the results in real time. Plot Sensor Data. Introduction: Matplotlib is a tool for data visualization and this tool built upon the Numpy and Scipy framework. Introduction to Python is a resource for students who want to learn Python as their first language, and for teachers who want a free and open curriculum to use with their students. First off, we’ll play around with the plot data. Here’s an quick example for getting prices for an ETF representing the S&P 500 index, SPY. Plotting Financial Data With Python: Comparing Returns October 11, 2018. See the use cases page to select an API method and see its use cases. It is often necessary to reverse engineer images of data visualizations to extract the underlying numerical data. The GSM modem used in this video is the SM5100B that is connected to the Arduino UNO board. The default representation of the data in catplot() uses a scatterplot. Veusz is a scientific plotting and graphing program with a graphical user interface, designed to produce publication-ready 2D and 3D plots. • Folium builds on the data wrangling strengths of the Python ecosystem and the mapping strengths of the Leaflet. Specifically, you learned: That some machine learning algorithms perform better or even require rescaled data when modeling. py script is set up to render a graph for a selection of sensors referenced by ID. TRINITY SNOTEL Site Elevation: 2930 ft Current SNOTEL data: 7-Day Summary Report - Midnight data for standard SNOTEL sensors; 7-Day In-Depth Report - Hourly data for standard SNOTEL sensors; 30-Day Plot - Daily snow water, precipitation, and snow depth; Current Water Year Plot - Daily snow water, precipitation and snow depth. Data Frames and Plotting 1 Working with Multiple Data Frames Suppose we want to add some additional information to our data frame, for example the continents in which the countries can be found. I used to plot the dump data using gnuplot not in real-time of course. Dataset; (data[, label, reference, weight, Plot split value histogram for the specified feature of the model. You can basically use any type of sensor you want since the principle is the same. You can generate intermediate GIS files and plots with GeoPandas, then shift over to QGIS. Today we are going to build an Android app to read sensor data from Arduino and plot it on a scatter plot in real time. In the examples, I will use pandas to manipulate the data and use it to drive the visualization. In Python we can do this using the following codes: To read CSV file locally, we need the pandas module which is a python data analysis library. gov and Amidu. The following was done via the Python interpreter:. Welcome to Data Analysis in Python!¶ Python is an increasingly popular tool for data analysis. My Project with R and Python. This is called serial communication because the connection appears to both the board and the computer as a serial port, even though it may actually use a USB cable, a serial to USB and a USB to serial converter. Counter() from the Python standard library offers a fast and straightforward way to get frequency counts from a container of data. Using Python pandas, you can perform a lot of operations with series, data frames, missing data, group by etc. Big Data with Python Class 03 – Make a list and plot it. This python Box plot tutorial also includes the steps to create Horizontal Box plot, Vertical Box plot and box plot with notch. a file which contains 16-bit values and plot it. com to plot the data. The app is able to record sensor data from your Android smartphone, e. Again the higher this is the better the audio quality. Make working with geographic data like working with other kinds of data in python; Work with existing tools Desktop GIS (ArcGIS, QGIS) Geospatial databases (e. gmplot is a library that generates the plot by creating an html file which we can load in our browser. Python allows us to create visualizations easily and quickly using Matplotlib and Seaborn. Continuing my series on using matplotlib and python to generate figures, I'd like to get now to the meat of the topic: actually making a figure or two. Oct 26, 2016 · I am trying to plot a data coming from a photocell sensor in the real-time, is there anyway to do that by using matplotlib? I'm trying to find how to do that but I didn't find a way to plot my data directly from the GPIO bin without taking the data from a txt file. If and only if the data’s noise is Gaussian, minimising is identical to maximising the likelihood. See the use cases page to select an API method and see its use cases. Many thanks in advance. WARNING: this project is largely outdated, and some of the modules are no longer supported by modern distributions of Python. You can use the rasterio library combined with numpy and matplotlib to open, manipulate and plot raster data in Python. Bar ()(1, 3, 3, 7)(1, 6, 6, 4). ) Photo credit: Barry Rowlinson (@geospacedman) About. Python Crash Course Resources for Python Crash Course, from No Starch Press. Introduction In the previous article, we looked at how Python's Matplotlib library can be used for data visualization. Finding the right vocabulary for. By using this site, home > topics > python > questions > 3-dimensional plot in python?. This in principle enables to receive data in real-time and plot them. interface a Phidgets* temperature sensor with your Intel® IoT Gateway using Python. Graphing sensor data with Python. 3+) GeoPandas. The Ultimate Python Seaborn Tutorial: Gotta Catch ‘Em All Share Google Linkedin Tweet In this step-by-step Seaborn tutorial, you’ll learn how to use one of Python’s most convenient libraries for data visualization. In recent years, a number of libraries have reached maturity, allowing R and Stata users to take advantage of the beauty, flexibility, and performance of Python without sacrificing the functionality these older programs have accumulated over the years. You will learn how to: Create line graphs; Create. The first thing to do in our loop is to get the current temperature from the DS18B20 sensor, and then store it in a variable called temperature. See the dedicated section. Python as a plotting tool (for RMP project of Finlator & Leung, in summer 2012) This note contains some basic examples of using Python for plotting scientific figure. As a side note, this Apple Health data is actually not the raw sensor data. And this is the average that you see above in the plot. Reading data from sensor and printing that to computer. ggplot is a plotting system for Python based on R's ggplot2 and the Grammar of Graphics. Time series lends itself naturally to visualization. More syntax for conditions will be introduced later, but for now consider simple arithmetic comparisons that directly translate from math into Python. Then, the server asks for data of particular sensor, then the computer reads the data of that sensor and. Visualizing that data allows us to gain insights into the health of the devices and how they interact with the environment. Since python ranges start with 0, the default x vector has the same length as y but starts with 0. Plotting real-time streaming data with Bokeh is very simple. It is similar to a scatter plot except that the measurement points are ordered (typically by their x-axis value) and joined with straight line segments. Stem plot is a popular statistical tool that helps in exploratory data analysis. As we love Python, we’ve prepared a script called “plot_data. Streaming data to automatically update plots is very straightforward using bokeh-server. Level up your data visualisation. We're going to use CircuitPython, Mu, and the light sensor on Circuit Playground Express to plot light levels. In this post, we'll be using pandas and ggplot to analyze time series data. Earlier this year, we wrote about the value of exploratory data analysis and why you should care. A categorical. • Manipulate your data in Python, then visualize it in on a Leaflet map via Folium. Anderson Gilbert A. You’ll need a raspberry pi(obviously) and a USB flash drive. Skip to content that connects to a mqtt server and plots all sensor data. It is fairly common that you want to look at the histogram of your data. It is built for making profressional looking, plots quickly with minimal code. I used to plot the dump data using gnuplot not in real-time of course. Once you have the data in your computer, you can do all sorts of things with it. Introduction to Python is a resource for students who want to learn Python as their first language, and for teachers who want a free and open curriculum to use with their students. Pradeep Singh | 20th Jan 2017 MQTT is a great protocol for Sensors to publish data to their Subscribers. Plot sensor denoising using oversampled temporal projection Decoding sensor space data with generalization across time and conditions auto_examples_python. The Q-Q plot, or quantile-quantile plot, is a graphical tool to help us assess if a set of data plausibly came from some theoretical distribution such as a Normal or exponential. First, matplotlib has two user interfaces:. Wednesday, August 3, 2011 How to plot the frequency spectrum with scipy. Welcome! Looking for a fast and flexible visualization software? Here we present psyplot, an open source python project that mainly combines the plotting utilities of matplotlib and the data management of the xarray package and integrates them into a software that can be used via command-line and via a GUI!. In this case, we want to read these temperature and humidity values and plot them as a function of time. All of the data files for the examples below can either be found on the data page, or via instructions included in the scripts. My module is a small pcb measuring 15x13mm with a 5 pin header. From Quantitative Analysis Software Courses. edu UCSB BROOM CENTER. In most cases these tools can be used without pandas but I think the combination of pandas + visualization tools is so common, it is the best place to start. A cheat sheet can be really helpful when you’re trying a set of exercises related to a specific topic, or working on a project. The BMP180 device is a digital barometric pressure sensor. I wanted to display this as a scrolling graph that moves to the right as data keeps coming in. When you view most data with Python, you see an instant of time — a snapshot of how the data appeared at one particular moment. Realtime Data Acquisition and Plotting with Arduino and Python - AnalogReadSerial. Here is a simple Python script to create some test data. Python’s pandas make data analysis easy and powerful with a few lines of code. Simple python charting¶. In this article we will look at Seaborn which is another extremely useful library for data visualization in Python. Today we are going to build an Android app to read sensor data from Arduino and plot it on a scatter plot in real time. I'll be starting with the simplest kind of figure: a line plot, with points plotted on an X-Y Cartesian plane. Again the higher this is the better the audio quality. The plotter (contributed by Adafruit makes it easy to visualise numeric data which your code may create. pdf(x)) We then show this graph plot with the line, plt. In this exercise, you'll practice making line plots with specific columns on the x and y axes. It is possible to create a 3D object with python. More than once I'd like to have a real-time plot for my arduinos sensors (LDR, thermistor, accelerometer, etc). Using Python for Signal Processing and Visualization Erik W. To conclude, we’ll say that a p-value is a numerical measure that tells you whether the sample data falls consistently with the null hypothesis. The authors produced a handful of useful plots, but didn’t explain how they produced those, either. Python Forums on Bytes. Wednesday, August 3, 2011 How to plot the frequency spectrum with scipy. This python Box plot tutorial also includes the steps to create Horizontal Box plot, Vertical Box plot and box plot with notch. We can use data visualizations to make an argument, or to support a hypothesis, or to explore our world in different ways. Learn how to plot graphical weather data from the Raspberry Pi Weather Station. Counter() from the Python standard library offers a fast and straightforward way to get frequency counts from a container of data. Python has very powerful statistical and data visualization libraries. As a side note, this Apple Health data is actually not the raw sensor data. Plots can reveal trends in data and outliers. First, we’ll subset the steam sensor into one week (called steam_series_four) and create a formatted data object:. Welcome to backtrader! A feature-rich Python framework for backtesting and trading. With just 4 lines of Python you can get live sensor reading – the accelerometer is the obvious place to start – from a microbit and display them in graph form just with a few clicks. Static plots are like simple non-interactive images. The first is the number of the month, and the second is the mean precipitation recorded at the Portland International Airport between 1961 and 1990. Let's look at few of them that we are going to use in our example:. Fitting Gaussian Processes in Python. Overview of the data we'll be working with. Multiple plots on single axis It is time now to put together some of what you have learned and combine line plots on a common set of axes. However, to create the Raincloud Plot we are going to have to use the Python package ptitprince. This is called serial communication because the connection appears to both the board and the computer as a serial port, even though it may actually use a USB cable, a serial to USB and a USB to serial converter. In this case, we want to read these temperature and humidity values and plot them as a function of time. And this is how to create a probability density function plot in Python with the numpy, scipy, and matplotlib modules. Python offers an easy entry into text-based programming and is used by professionals for quick prototyping to run websites, test algorithms and control robots. Level up your data visualisation. Realtime Data Acquisition and Plotting with Arduino and Python - AnalogReadSerial. Steps to plot a histogram in Python using Matplotlib Step 1: Collect the data for the histogram. In this course, part of the Data Science MicroMasters program, you will learn the foundations of probability and statistics. I'm not going to explain how the script works in detail but it's inspired on Stephen Wolfram's Elementary Cellular Automatas which converts numbers like 30 into binary (00011110) and then interprets the digits as turning ON. You will also need a way to convert the 5V sensor to 3. Python’s pandas make data analysis easy and powerful with a few lines of code. My goal was to have my HAB transmit GPS data (as well as other sensor data) over RF. You can use the rasterio library combined with numpy and matplotlib to open, manipulate and plot raster data in Python. And when you have IoT with Python on your side, you'll be able to build interactive objects and design them. Python library for accessing Sensirion RH/T and Flow sensors - Sensirion/libsensors-python. Can anybody recommend tutorials or code to start and play around with. If you want to try to visualize the data. This is just going to be a quick example of how to read some serial data off of the arduino and make a real-time plot of that data using python (python 3. At the moment there are several better and more up-to-date alternatives: PythonXY. To begin you will load a suite of python libraries required to complete this lesson. A collection of sloppy snippets for scientific computing and data visualization in Python. Graphs makes it easier to see the relation between a…. • Folium builds on the data wrangling strengths of the Python ecosystem and the mapping strengths of the Leaflet. By importing the data into Python, data analysis such as statistics, trending, or calculations can be made to synthesize the information into relevant and actionable information. You need to convert the data to factors to make sure that the plot command treats it in an appropriate way. In this Project, we first see how to interface a temperature sensor to an arduino. During this plot, the sensor was exposed to a heat source, which can be seen here as an increase from 31 to 35 degrees C. It’s easy to add clean, stylish, and flexible dropdowns, buttons, and sliders to Plotly charts. Box plot in Python with matplotlib In this Tutorial we will learn how to create Box plot in python using matplotlib with an example. Creating a plot with data obtained by the Sense HAT can help to make that data more understandable. At the core of data science and data analytics is a thorough knowledge of data visualization. Python handles different data structures very well. Hey Lanre, Thank you. Second the sensor requires 5V as input and the Pi operates at 3. Robert Sheldon demonstrates matplotlib, a 2D plotting library, widely used with Python to create quality charts. It plots some number of data sources and supports streaming to multiple clients. From Quantitative Analysis Software Courses. I'd do it with a mostly static web page containing a bit of AJAX to periodically fetch the sensor readings from a CGI program on the Pi.