Skip to content

plot combo plots #2

@TingTingShao

Description

@TingTingShao

Hi Klest,

The package ran smoothly, except one error when plotting combo plots (paste_combo_image.py -> render_title). I had to change the code in order to run:

def render_title(combo_width, title, image_dpi_res, font_size=36, title_padding=20):
    font_size = round(font_size * (image_dpi_res / 72))
    # font = ImageFont.truetype("arial.ttf", font_size)
    # set default font if arial.ttf not found
    try:
        font = ImageFont.truetype("arial.ttf", font_size)
    except Exception:
        font = ImageFont.load_default()
        print("Could not load 'arial.ttf'. Using default font.")

Best,
TingTing

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