Skip to content

pio.to_templated not behaving as expected #1920

Closed
@emmanuelle

Description

@emmanuelle
>>> fig = go.Figure(layout={'title': 'Figure Title', 'font': {'size': 20, 'family': 'Courier'}})                                             
>>> fig                                                                                                                                      
Figure({
    'data': [],
    'layout': {'font': {'family': 'Courier', 'size': 20}, 'template': '...', 'title': {'text': 'Figure Title'}}
})
>>> pio.to_templated(fig)                                                                                                                    
Figure({
    'data': [], 'layout': {'template': '...', 'title': {'text': 'Figure Title'}}
})

The style properties should go to the template I think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions