question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Bokeh Saving SVG error

See original GitHub issue

As I am aiming to plot the data into the plot, I encounter 2 problems.

(1) For the Bokeh function, while I am plotting 4 pictures in a row and adding the save as the SVG. Then the browser is shown as figure1. Moreover, as I comment out the code below, it works definitely right as I thought(figure2). It’s weird. figure1: https://i.stack.imgur.com/MR5i3.png figure2: https://i.stack.imgur.com/E6pOw.png

p1.output_backend = "svg"
export_svgs(p1, filename="./number_like_comment/fig/{}.svg".format(action_str))

(2) For the second question, after I save those files, I realized that the “Label” I put in the plot also disappear. (as figure3).

figure3: https://i.stack.imgur.com/aO4II.png

Thanks so much for reading through. This question bothers me quite a long time.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
bryevdvcommented, Apr 22, 2020

@goldentoby OSS projects are run on an all-volunteer effort. Cycle times for issues are are often measured in days, weeks, or sometimes months. This is not an on-call help desk, and there is no SLA.

Apart from that, I don’t actually know what you are seeking. The latest image, that is an incorrect image? Or the correct one? Or something else? What is missing? What is the code that generated it? Are you specifying a css render mode for labels? Are you even using actual Label objects or do you mean something else? (Impossible to know without code this is why minimal code is essential to provide)

1reaction
bryevdvcommented, Apr 21, 2020

@goldentoby can you confirm if there are zeros in your data?

If so, zeros on log axes are not currently supported, so I would close this. It’s possible #6517 will be implemented at some point to add a “symlog” scale (though that really only seems useful in a narrow set of use cases to me).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Export SVG Error - Community Support - Bokeh Discourse
I am trying to use the export_svg function and I have run through the instructions a couple of time on seperate anaconda envs...
Read more >
python bokeh saving issue and label disappear, and display ...
Currently, there is still a problem in showing the Label while saving SVG. I've e search through the Issue pages, it seems to...
Read more >
Releases — Panel v0.14.2
Ensure external resources are configured correctly on save (#2452). Ensure table formatters and editors are copied on render to avoid bokeh errors (#2453)....
Read more >
1.0.0b4 (February 7, 2020) — Solar Forecast Arbiter Core 1.0.12+1 ...
The biggest change is a new data model for Reports so that metrics, processed data, and generated Bokeh javascript and SVG figures are...
Read more >
Changelog - Streamlit Docs
Bug fix: all commands with the icon parameter such as st.error, ... we'll let you know if there's a mismatch in your Bokeh...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found