Skip to content

ValueError on text.latex.preamble parameter #11

@mmsaki

Description

@mmsaki

Erorr

  • When I run python two_assets.py a value error is being raised:
ValueError: Key text.latex.preamble: Could not convert ['\\usepackage{gensymb}'] to str

See more of this issue here documented matplotlib/matplotlib#26464

Fix

def latexify(fig_width=None, fig_height=None, font_size=12, columns=2):
    params = {'backend': 'ps',
        # Fix: This is expecting a string instead of array
        'text.latex.preamble': '\\usepackage{gensymb}',
    }

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