rstoolbox.plot.
plot_thermal_melt
(df, ax, linecolor=0, pointcolor=0, min_temperature=None, fusion_temperature=False, temp_marker=False)¶Plot Thermal Melt data.
Plot thermal melt and generate the fitting curve to the pointsself.
The provied DataFrame
must contain, at least, the following
columns:
Column Name | Data Content |
---|---|
Temp | Temperatures (celsius). |
MRE | Value at each temperature (10 deg^2 cm^2 dmol^-1). |
Warning
Some of the advanced attributes in this function require scipy
to be
installed.
Parameters: |
|
---|
Example
In [1]: from rstoolbox.plot import plot_thermal_melt
...: import numpy as np
...: import pandas as pd
...: import matplotlib.pyplot as plt
...: df = pd.read_csv("../rstoolbox/tests/data/thermal_melt.csv")
...: fig = plt.figure(figsize=(10, 6.7))
...: ax = plt.subplot2grid((1, 1), (0, 0))
...: plot_thermal_melt(df, ax, fusion_temperature=True, temp_marker=True)
...:
In [2]: plt.show()
In [3]: plt.close()