Visualization using FigRecipes

authors: Alireza Faghaninia, Alex Dunn, Joseph Montoya

This notebook illustrates some of the basic plotting functionality of matminer.figrecipes which is integrated with a number of other data management functionalities of the package. Note that these examples and a few additional ones are included in script form in the matminer_examples repository.

This notebook was last updated 11/15/18 for version 0.4.5 of matminer.

Note that in order to get the in-line plotting to work, you might need to start Jupyter notebook with a higher data rate, e.g., jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10. We recommend you do this before starting.

In [2]:
from matminer.datasets import load_dataset
from pymatgen.core.composition import Composition
from figrecipes import PlotlyFig

XY and scatter plots

In [3]:
# A Simple XY plot
pf = PlotlyFig(title="Basic Example", mode='notebook')

# Inputs are tuples contain a list of x variables and y variables
pf.xy(([1, 2, 3], [4, 5, 6]))