# NBVAL_IGNORE_OUTPUT
from pymagicc import MAGICC6
from pymagicc import rcp26

import matplotlib.pyplot as plt

plt.style.use("bmh")

"""
Explanation: Filtering and plotting
Here we provide a quick example of how to filter and plot with your data, making the most of the capability provided by pyam's IamDataFrame.
End of explanation
"""


with MAGICC6() as magicc:
    results = magicc.run(rcp26)

# NBVAL_IGNORE_OUTPUT
# Note that row ordering may vary
results.head()

"""
Explanation: Run MAGICC6.
End of explanation
"""


plt.figure(figsize=(16, 9))
results.filter(variable="*Concentrations|CO2",).line_plot(x="time");

plt.figure(figsize=(16, 9))
results.filter(variable="*Temperature*").line_plot(x="time");

"""
Explanation: Filter and plot results.
End of explanation
"""


