Giter Site home page Giter Site logo

lattice-summaries-data-legacy's People

Contributors

felix-andreas avatar paulgoslawski avatar

Watchers

 avatar

lattice-summaries-data-legacy's Issues

matplotlib gives error because of wrong backend

Click to expand!
-- elegant_summary:kuske/bessy3_5ba-20p_v_long-bend-tgrb
.  elegant_summary:hwang/bessy3_4sexts_v_1
TaskError - taskid:elegant_summary:hwang/bessy3_4sexts_v_1
PythonAction Error
Traceback (most recent call last):
  File "/net/home/jvl/.cache/pypoetry/virtualenvs/scripts-lTF_g5QG-py3.8/lib/python3.8/site-packages/doit/action.py", line 437, in execute
    returned_value = self.py_callable(*self.args, **kwargs)
  File "/net/home/jvl/nobeam/lattice-summaries-data/scripts/data_elegant.py", line 25, in results
    twiss_plot(twiss_data).savefig(output_dir / "twiss.svg")
  File "/net/home/jvl/nobeam/lattice-summaries-data/scripts/data_elegant.py", line 92, in twiss_plot
    fig, ax = plt.subplots(figsize=FIG_SIZE)
  File "/net/home/jvl/.cache/pypoetry/virtualenvs/scripts-lTF_g5QG-py3.8/lib/python3.8/site-packages/matplotlib/cbook/deprecation.py", line 451, in wrapper
    return func(*args, **kwargs)
  File "/net/home/jvl/.cache/pypoetry/virtualenvs/scripts-lTF_g5QG-py3.8/lib/python3.8/site-packages/matplotlib/pyplot.py", line 1287, in subplots
    fig = figure(**fig_kw)
  File "/net/home/jvl/.cache/pypoetry/virtualenvs/scripts-lTF_g5QG-py3.8/lib/python3.8/site-packages/matplotlib/pyplot.py", line 687, in figure
    figManager = new_figure_manager(num, figsize=figsize,
  File "/net/home/jvl/.cache/pypoetry/virtualenvs/scripts-lTF_g5QG-py3.8/lib/python3.8/site-packages/matplotlib/pyplot.py", line 315, in new_figure_manager
    return _backend_mod.new_figure_manager(*args, **kwargs)
  File "/net/home/jvl/.cache/pypoetry/virtualenvs/scripts-lTF_g5QG-py3.8/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 3494, in new_figure_manager
    return cls.new_figure_manager_given_figure(num, fig)
  File "/net/home/jvl/.cache/pypoetry/virtualenvs/scripts-lTF_g5QG-py3.8/lib/python3.8/site-packages/matplotlib/backends/_backend_tk.py", line 885, in new_figure_manager_given_figure
    window = tk.Tk(className="matplotlib")
  File "/net/home/jvl/miniconda3/lib/python3.8/tkinter/__init__.py", line 2261, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: couldn't connect to display ":0.0"

Current workaround:

MPLBACKEND=SVG poetry run doit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.