Skip to content

Exporting bokeh plots #267

@NTBiotech

Description

@NTBiotech

Dear FlowKit team,

While Bokeh plots allow for interactivity, it is a bit complicated to export them as pdf.

Single plots as generated by the session.plot_gate and session.plot_scatter functions can be converted to svg, read with svglib and then saved as pdf using the renderPDF module.
If plots are combined, this is not possible, as a bokeh.layouts object cannot be converted to svg. Here, the layout can be converted to html and then to pdf using a headless browser setup.
I have build an implementation of these features and would like to add them to the package.
Another option would be to add matplotlib as an alternative to bokeh.

As I am not yet fully familiar with bokeh, I might be missing something.
I am looking forward to your opinions and feedback!

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