rstoolbox.plot.
plot_CD
(df, ax, color=None, wavelengths=None, sample=None)¶Plot Circular Dichroism data.
The provied DataFrame
must contain, at least, the following
columns:
Column Name | Data Content |
---|---|
Wavelength | Wavelength (nm). |
MRE | Value at each wavelength (10 deg^2 cm^2 dmol^-1). |
If the input data is of the class CDFrame, it will assume that data has
been loaded with the read_CD()
function and that multiple temperatures
are present and plot it accordingly.
Parameters: |
|
||||
---|---|---|---|---|---|
Raise: |
|
Example - Single Tabulated Data File
In [1]: from rstoolbox.plot import plot_CD
...: import numpy as np
...: import pandas as pd
...: import matplotlib.pyplot as plt
...: df = pd.read_csv("../rstoolbox/tests/data/cd.csv")
...: fig = plt.figure(figsize=(10, 6.7))
...: ax = plt.subplot2grid((1, 1), (0, 0))
...: plot_CD(df, ax)
...:
In [2]: plt.show()
Example - Multiple Machine-Generated Data Files
In [3]: from rstoolbox.plot import plot_CD
...: import numpy as np
...: import pandas as pd
...: import matplotlib.pyplot as plt
...: df = pd.read_csv("../rstoolbox/tests/data/cd.csv")
...: fig = plt.figure(figsize=(10, 6.7))
...: ax = plt.subplot2grid((1, 1), (0, 0))
...: plot_CD(df, ax)
...:
In [4]: plt.show()
In [5]: plt.close('all')