Graph Plotter

v2

Graph Plotter
Graph Plotter
Derivative Calculator

This Multifunctional Graph Plotter is an iPython Jupyter Notebook copmrising of several functions and cells which can be used to plot .csv datafiles based on user inputs. Current features of the notebook allow the user to plot multiple series of data with errorbars, styling and labelling each, along with:

The script uses logic to suggest appropriate orders of polynomial for the user to choose from; this works based on the fact that the χ2 value should approach 1 for a good fit. It calculates a χ2 value for polynomial orders 1 through 10 and plots a graph of χ2 against order for the user to visualise the most appropriate choice. The order suggested to the user is the order corresponding to the first value of χ2 to fall below a certain precision (which can be changed by a user if they wish by editing the code cell).
In circumstances where the random error is inaccurately estimated on data, χ2 will approach a value higher than 1 and thus the script's logic breaks down. To counteract this, the user can use the graph of χ2 vs. order to look for where it starts to plateau, i.e. the value changes in only small amounts for increasing the order on the polynomial. This allows users to avoid overfitting.

Graph Plotter
Graph Plotter
Graph Plotter
Graph Plotter
Derivative Calculator Derivative Calculator

After each step of plotting the graph, e.g. bare plot, fitted line, there is a save cell giving the user the opportunity to save the figure to file's local directory after giving it a name.
The libraries used in the notebook include NumPy, matplotlib, iPyWidgets and SciPy.stats. The future plans for the project are to introduce new types of graph, such as streamplots, and to build a GUI for the program.



Click the image below to download Graph Plotter v2:


Download the Graph plotter

Last updated: 13/08/2020