small medium large xlarge

Generic-user-small
09 Apr 2018, 20:48
M Marcus (2 posts)

I encounter the following error message every time I use dzcnapy.plot() command

ValueError: max() arg is an empty sequence ————————————————————————— ValueError Traceback (most recent call last)

in () ----> 1 dzcnapy.plot("nutrients-graphviz") ~/Documents/Programming/CNA/code/dzcnapy_plotlib.py in plot(fname, save) 52 53 def plot(fname, save = False): ---> 54 plt.tight_layout() 55 if save: 56 plt.savefig("../images/{}.pdf".format(fname), dpi=600) ~/anaconda/lib/python3.6/site-packages/matplotlib/pyplot.py in tight_layout(pad, h_pad, w_pad, rect) 1404 1405 fig = gcf() -> 1406 fig.tight_layout(pad=pad, h_pad=h_pad, w_pad=w_pad, rect=rect) 1407 1408 ~/anaconda/lib/python3.6/site-packages/matplotlib/figure.py in tight_layout(self, renderer, pad, h_pad, w_pad, rect) 1751 renderer, 1752 pad=pad, h_pad=h_pad, w_pad=w_pad, -> 1753 rect=rect) 1754 1755 self.subplots_adjust(**kwargs) ~/anaconda/lib/python3.6/site-packages/matplotlib/tight_layout.py in get_tight_layout_figure(fig, axes_list, subplotspec_list, renderer, pad, h_pad, w_pad, rect) 324 subplots.append(ax) 325 --> 326 max_nrows = max(nrows_list) 327 max_ncols = max(ncols_list) 328 ValueError: max() arg is an empty sequence ---
You must be logged in to comment