Skip to content

Expose js an api function for saving figures as png/pdf/jpeg/eps/etc with config #89

Closed
@sglyon

Description

@sglyon

I'm sorry if this is already in another issue somewhere. I looked around a bit, but couldn't find it

It would be awesome if the Snapshot functions were exposed at a higher level - perhaps through something that would work like this:

Plotly.save(gd, {format: 'pdf', width: '800', height: '450', dpi: '400'})

which would then trigger the download of the requested file (similar to how the snapshot button triggers a png download right now)

Being able to easily save to to a vector image backend like pdf or eps with specified sizes and dpi would be amazing -- then I could publish my plotly figures in latex based research articles.

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