Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird bug in Figure #17

Open
zaccharieramzi opened this issue Jun 1, 2021 · 0 comments
Open

Weird bug in Figure #17

zaccharieramzi opened this issue Jun 1, 2021 · 0 comments

Comments

@zaccharieramzi
Copy link
Owner

Traceback (most recent call last):
  File "paper_plot.py", line 193, in <module>
    fig.savefig('fig4.pdf', dpi=300);
  File "/home/zaccharie/workspace/shine/venv/lib/python3.7/site-packages/matplotlib/figure.py", line 2959, in savefig
    self.canvas.print_figure(fname, **kwargs)
  File "/home/zaccharie/workspace/shine/venv/lib/python3.7/site-packages/matplotlib/backend_bases.py", line 2230, in print_figure
    self.figure.draw(renderer)
  File "/home/zaccharie/workspace/shine/venv/lib/python3.7/site-packages/matplotlib/artist.py", line 74, in draw_wrapper
    result = draw(artist, renderer, *args, **kwargs)
  File "/home/zaccharie/workspace/shine/venv/lib/python3.7/site-packages/matplotlib/artist.py", line 51, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
  File "/home/zaccharie/workspace/shine/venv/lib/python3.7/site-packages/matplotlib/figure.py", line 2735, in draw
    renderer, self, artists, self.suppressComposite)
  File "/home/zaccharie/workspace/shine/venv/lib/python3.7/site-packages/matplotlib/image.py", line 132, in _draw_list_compositing_images
    a.draw(renderer)
  File "/home/zaccharie/workspace/shine/venv/lib/python3.7/site-packages/matplotlib/artist.py", line 51, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
  File "/home/zaccharie/workspace/shine/venv/lib/python3.7/site-packages/matplotlib/_api/deprecation.py", line 431, in wrapper
    return func(*inner_args, **inner_kwargs)
  File "/home/zaccharie/workspace/shine/venv/lib/python3.7/site-packages/matplotlib/axes/_base.py", line 2925, in draw
    mimage._draw_list_compositing_images(renderer, self, artists)
  File "/home/zaccharie/workspace/shine/venv/lib/python3.7/site-packages/matplotlib/image.py", line 132, in _draw_list_compositing_images
    a.draw(renderer)
  File "/home/zaccharie/workspace/shine/venv/lib/python3.7/site-packages/matplotlib/artist.py", line 51, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
  File "/home/zaccharie/workspace/shine/venv/lib/python3.7/site-packages/matplotlib/axis.py", line 1132, in draw
    renderer)
  File "/home/zaccharie/workspace/shine/venv/lib/python3.7/site-packages/matplotlib/axis.py", line 1058, in _get_tick_bboxes
    for tick in ticks if tick.label1.get_visible()],
  File "/home/zaccharie/workspace/shine/venv/lib/python3.7/site-packages/matplotlib/axis.py", line 1058, in <listcomp>
    for tick in ticks if tick.label1.get_visible()],
  File "/home/zaccharie/workspace/shine/venv/lib/python3.7/site-packages/matplotlib/text.py", line 903, in get_window_extent
    bbox, info, descent = self._get_layout(self._renderer)
  File "/home/zaccharie/workspace/shine/venv/lib/python3.7/site-packages/matplotlib/text.py", line 315, in _get_layout
    clean_line, self._fontproperties, ismath=ismath)
  File "/home/zaccharie/workspace/shine/venv/lib/python3.7/site-packages/matplotlib/backends/_backend_pdf_ps.py", line 89, in get_text_width_height_descent
    s, fontsize, renderer=self)
  File "/home/zaccharie/workspace/shine/venv/lib/python3.7/site-packages/matplotlib/texmanager.py", line 401, in get_text_width_height_descent
    page, = dvi
  File "/home/zaccharie/workspace/shine/venv/lib/python3.7/site-packages/matplotlib/dviread.py", line 251, in __iter__
    while self._read():
  File "/home/zaccharie/workspace/shine/venv/lib/python3.7/site-packages/matplotlib/dviread.py", line 330, in _read
    byte = self.file.read(1)[0]
IndexError: index out of range

When using science plots (i.e. with Latex)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant