Skip to content

Missing xplt requirement in pyproject #756

@lnevay

Description

@lnevay

Hello,

When following examples, I find a missing dependency - "xplt". It should be added to the pyproject.toml.

sv = line.survey()
sv.plot(projection='ZX')

ModuleNotFoundError
Traceback (most
recent call last)

Cell In[10], line 1


-- 1 sv.plot (projection='ZX')
File ~/venv/py312/1ib/python3.12/site-packages/xtrack/survey.py:224,
in SurveyTable plot(self, element_width, legend, **
kwargs)
219
Plot the survey using xlt. FloorPlot
221
222 # Import the xplt module here


223 # (Not at the top as
not default installation with xsuite)
-->
224 import xplt


226 # Shallow copy of self
227
out_sv_table = SurveyTable.__new__ (SurveyTable)
ModuleNotFoundError: No module named 'xplt'

Cheers,
Laurie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions