Skip to content

plot_stats_with_layout error for mean_kinetic_energy #105

Description

@thuzz08

After I upgrade the version from 0.7.7 to 0.10.1, I have error when I try to plot mean_kinetic_energy in Astra.

plot_stats_with_layout(A, ykeys=['mean_kinetic_energy'], 
                           xkey='mean_z', xlim=(0, 14),
                           nice=True, 
                           include_layout=True,
                           include_labels=True, 
                           include_particles=True, 
                           include_legend=True, **kwargs)

The error message is pretty long, but the main reason should be this:

ValueError:
\left<E_\text{kinetic}\right>~(\mathrm{ MeV } )
^
Expected token, found '\' (at char 8), (line:1, col:9)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions