Skip to content

Two Problems when Using Bokeh in tplot #160

@qiyycc

Description

@qiyycc

Hi,
Thank you very much for the code!
When I set bokeh = True in tplot, I find there are two problems:

  1. I can't plot spectrograms using bokeh. The error message is:

                                                         ~~~~~~~
    

D:/Games/Anaconda/lib/site-packages/pytplot/HTMLPlotter/CustomModels/colorbarsidetitle.py:ColorBarSideTitle.ts:63:47 - error TS2339: Property '_height' does not exist on type 'CartesianFrame'.

63 const frame_height = this.plot_view.frame._height.value
~~~~~~~

During handling of the above exception, another exception occurred:

SystemExit: 1`

  1. After I plot one figure using bokeh, I can't plot another tplot figure via bokeh unless I restart the python kernal. The error message is:

RuntimeError: Models must be owned by only a single document, DatetimeTickFormatter(id='1003', ...) is already in a doc

These problem do not exist when I do not use bokeh. However, I use bokeh because I want to save interactive tplot figures. Could I save the interactive html figures without bokeh?

Thanks a lot for the code and help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions