ValueError: Image size of 8000x66400 pixels is too large. It must be less than 2^16 in each directio

multiprocessing.pool.RemoteTraceback: 
"""
Traceback (most recent call last):
  File "D:\ProgramData\Anaconda3\lib\multiprocessing\pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "E:\ZGD\02-wind_profile\all_state\15-GuiZhou.py", line 577, in main_function
    spectral_wind_profile.draw_picture3(df_10min_1, df_10min, saver, ws_start=ws_start, ws_end=ws_end)
  File "E:\ZGD\02-wind_profile\all_state\15-GuiZhou.py", line 207, in draw_picture3
    plt.tight_layout()  # 自动调整子图的间距
  File "D:\ProgramData\Anaconda3\lib\site-packages\matplotlib\pyplot.py", line 2302, in tight_layout
    return gcf().tight_layout(pad=pad, h_pad=h_pad, w_pad=w_pad, rect=rect)
  File "D:\ProgramData\Anaconda3\lib\site-packages\matplotlib\figure.py", line 3195, in tight_layout
    renderer = _get_renderer(self)
  File "D:\ProgramData\Anaconda3\lib\site-packages\matplotlib\backend_bases.py", line 1544, in _get_renderer
    print_method(io.BytesIO())
  File "D:\ProgramData\Anaconda3\lib\site-packages\matplotlib\backend_bases.py", line 1648, in wrapper
    return func(*args, **kwargs)
  File "D:\ProgramData\Anaconda3\lib\site-packages\matplotlib\_api\deprecation.py", line 412, in wrapper
    return func(*inner_args, **inner_kwargs)
  File "D:\ProgramData\Anaconda3\lib\site-packages\matplotlib\backends\backend_agg.py", line 540, in print_png
    FigureCanvasAgg.draw(self)
  File "D:\ProgramData\Anaconda3\lib\site-packages\matplotlib\backends\backend_agg.py", line 431, in draw
    self.renderer = self.get_renderer(cleared=True)
  File "D:\ProgramData\Anaconda3\lib\site-packages\matplotlib\backends\backend_agg.py", line 447, in get_renderer
    self.renderer = RendererAgg(w, h, self.figure.dpi)
  File "D:\ProgramData\Anaconda3\lib\site-packages\matplotlib\backends\backend_agg.py", line 93, in __init__
    self._renderer = _RendererAgg(int(width), int(height), dpi)
ValueError: Image size of 8000x66400 pixels is too large. It must be less than 2^16 in each direction.
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "D:/pycharm_professional_zgd/PyCharm 2023.1/plugins/python/helpers/pydev/pydevd.py", line 1496, in _exec
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "D:\pycharm_professional_zgd\PyCharm 2023.1\plugins\python\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "E:\ZGD\02-wind_profile\all_state\15-GuiZhou.py", line 657, in <module>
    main()
  File "E:\ZGD\02-wind_profile\all_state\15-GuiZhou.py", line 649, in main
    ans.append(process.get())
  File "D:\ProgramData\Anaconda3\lib\multiprocessing\pool.py", line 771, in get
    raise self._value
ValueError: Image size of 8000x66400 pixels is too large. It must be less than 2^16 in each direction.

Process finished with exit code 1

猜你喜欢

转载自blog.csdn.net/weixin_46713695/article/details/130320598
今日推荐