ValueError in Plot
Opened this issue · 0 comments
When i run the code, the following error is shown
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2017.3.2\helpers\pydev\pydev_run_in_console.py", line 53, in run_file
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files\JetBrains\PyCharm 2017.3.2\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/User/PycharmProjects/summer_work/stock_ann.py", line 97, in
fig = plt.figure()
File "C:\Users\User\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\pyplot.py", line 557, in figure
draw_if_interactive()
File "C:\Program Files\JetBrains\PyCharm 2017.3.2\helpers\pycharm_matplotlib_backend\backend_interagg.py", line 39, in draw_if_interactive
figManager.canvas.show()
File "C:\Program Files\JetBrains\PyCharm 2017.3.2\helpers\pycharm_matplotlib_backend\backend_interagg.py", line 62, in show
self.figure.tight_layout()
File "C:\Users\User\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\figure.py", line 1753, in tight_layout
rect=rect)
File "C:\Users\User\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\tight_layout.py", line 326, in get_tight_layout_figure
max_nrows = max(nrows_list)
ValueError: max() arg is an empty sequence
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python35\lib\site-packages\IPython\core\events.py", line 73, in trigger
func(*args, **kwargs)
File "C:\Users\User\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\pyplot.py", line 149, in post_execute
draw_all()
File "C:\Users\User\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib_pylab_helpers.py", line 150, in draw_all
f_mgr.canvas.draw_idle()
File "C:\Users\User\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\backend_bases.py", line 2040, in draw_idle
self.draw(*args, **kwargs)
File "C:\Program Files\JetBrains\PyCharm 2017.3.2\helpers\pycharm_matplotlib_backend\backend_interagg.py", line 94, in draw
self.show()
File "C:\Program Files\JetBrains\PyCharm 2017.3.2\helpers\pycharm_matplotlib_backend\backend_interagg.py", line 62, in show
self.figure.tight_layout()
File "C:\Users\User\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\figure.py", line 1753, in tight_layout
rect=rect)
PyDev console: using IPython 6.2.1
File "C:\Users\User\AppData\Local\Programs\Python\Python35\lib\site-packages\matplotlib\tight_layout.py", line 326, in get_tight_layout_figure
max_nrows = max(nrows_list)
ValueError: max() arg is an empty sequence