matplotlib 0.99 Mplot3d AttributeError: 'list' object has no ...
stackoverflow.com › questions › 50355133May 15, 2018 · Using this code and receiving an error that says: line 1621, in plot_surface if Z.ndim != 2: AttributeError: 'list' object has no attribute 'ndim'. import cobra import os from os.path import join import matplotlib.pyplot as plt import numpy as np from matplotlib import cm from mpl_toolkits.mplot3d import Axes3D data_dir ='/Users/stephenchapman/Documents/research/FBA_algae_digesate/COBRApy/iCZ843/iCZ843_models' model = cobra.io.read_sbml_model (join (data_dir, "iCZ843_hetero.xml")) model.