Commit 36871dff authored by Philipp Arras's avatar Philipp Arras
Browse files

Merge branch 'import_matplotlib' into 'NIFTy_7'

Import matplotlib

See merge request !566
parents b30eca8f 3f3cb688
Pipeline #81438 passed with stages
in 27 minutes and 31 seconds
......@@ -19,7 +19,6 @@ import os
from datetime import datetime as dt
import numpy as np
from matplotlib.dates import DateFormatter, date2num
from .domains.gl_space import GLSpace
from .domains.hp_space import HPSpace
......@@ -266,6 +265,7 @@ def _register_cmaps():
def _plot_history(f, ax, **kwargs):
import matplotlib.pyplot as plt
from matplotlib.dates import DateFormatter, date2num
for i, fld in enumerate(f):
if not isinstance(fld, EnergyHistory):
raise TypeError
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment