Skip to content

Latex support in labels. #56

Open
Open
@dineshadepu

Description

@dineshadepu

Hello,

First, thank you for the crate. Very helpful.

I am trying to add symbols in the labels, like, nano, or $\lambda$ symbols.

Is this supported currently?

I tried doing this,

    let mut fg = Figure::new();
    fg.axes2d()
        .set_x_label("Normal contact displacement ($$\lambda$$ nano m)", &[])
        .set_y_label("Normal contact force (kN)", &[])
        .set_x_range(Fix(0.), Fix(400.))
        .set_y_range(Fix(0.), Fix(12.));

But it fails.

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