Questions tagged [pandas-bokeh]

This tag should be added when `pandas_bokeh` library functions are used in the code. It uses Bokeh as plotting backend but has its own high-level API.

Pandas Bokeh provides a Bokeh plotting backend for Pandas and GeoPandas, similar to the already existing Visualization feature of Pandas. Importing the library adds a complementary plotting method plot_bokeh() on DataFrames and Series.

For more information and examples have a look at the Github Repository.

80 questions
1
vote
1 answer

How to pause bokeh server updating plot based on some condition

I am using bokeh server to plot the result from my streaming frames of a video. I see Bokeh provide add_periodic_callback as an auto-update on the server, but I don't know how to pause it. Any suggestion?
dtlam26
  • 1,410
  • 11
  • 19
1
vote
1 answer

Bokeh line color based on the True/Fase condition

I am trying to plot anomaly regions in Bokeh. The idea is to have a line that will use red color to show that those samples are anomalous ones. Here is a sample reproducible code. import numpy as np import random n=300 dat =…
eemamedo
  • 325
  • 1
  • 6
  • 14
1
vote
1 answer

Is there a way to use bokeh box annotation to highlight the same time frame each day?

I have been unable to find any way to add a box annotation to a bokeh plot between the same set of hours for each day on a graph. For example, if I had a line graph of hourly data for an entire month, is it possible to add a box annotation between…
PrimeMet
  • 65
  • 2
  • 7
1
vote
1 answer

how to create columns for a checkbox group in Bokeh

I have close to 50 items that can be checkboxed. The list is long. How can I create multiple columns, say 5 columns with 10 items each?
NinjaGaiden
  • 3,046
  • 6
  • 28
  • 49
1
vote
1 answer

How to update the Figure attributes (x_range) after the Figure is already created using bokeh 1.4, programatticall?

I am trying to create a Bar Chart here, I already have figure object, but want to assign x_range later instead of inside figure object. I have tried various techniques shown at the end, I am using Bokeh 1.4 def generate_bar_chart( …
1
vote
1 answer

Wrong plotting in bokeh

When running the below code, it displays a wrong plot. from pandas_datareader import data from datetime import datetime as dt from bokeh.plotting import figure, show,…
1
vote
1 answer

Why does the bokeh app callback convert variable type? (ColumnDataSource to pandas df)

I am using an embedded bokeh app in jupyter to label sections of time series. Lets say we have to following example dataframe: Time Y Label 0 2018-02-13 13:14:05 0.401028 a 1 2018-02-13 13:30:46 0.900101 a 2 …
Andre S.
  • 478
  • 4
  • 13
1
vote
1 answer

Unable to clear multi-line figure with callback

I have a figure with a line plot and another one with a multi-line plot. The plot updates when a user selects a new option from a Select object. The line plot updates correctly as is syncd with a ColumnDataSource. However, the multi-line plot pulls…
raul
  • 121
  • 2
  • 9
1
vote
1 answer

negative values not showing when using circle function

I get two different results when I use bokehs circle (ordiamond_cross` function) and line function. The line function includes negative values and the circle does not. Plot with line and a plot with diamond_cross I want to plot the temperatures…
keesnotels
  • 11
  • 1
1
vote
1 answer

Exporting Bokeh Plots as images

I have a piece of sample Python that makes a waterfall visual. It uses the bokeh lib It looks great and works well in Jupyter but when I come to use it in PowerBI I get an error saying that no image was created the code uses show(p) which seems to…
John
  • 189
  • 1
  • 10
0
votes
2 answers

Setting initial zoom with Bokeh

Suppose I have the following bar plot from the documentation: from bokeh.io import show, output_notebook from bokeh.plotting import figure output_notebook() Here is a list of categorical values (or factors) fruits = [`Apples, Pears`,…
mang
  • 1
0
votes
0 answers

Bokeh plotting circle with line based on datapoint count

Is it possible to make a logical loop where if one data point is availble then he bokeh shows a circle and if there are more than one datapoint is available then it draws a line. How to write such a code.Considering we are collecting datapoints in a…
noob
  • 3
  • 3
0
votes
1 answer

bokeh could not set initial ranges

I am a begineer in plotting graphs in bokeh. So please forgive me if this is a stupid question. I am trying to plot a line grpah, where my data is in a dataframe and I have provided the x and y axis as lists. But some of my data in y axis has…
noob
  • 3
  • 3
0
votes
1 answer

Can not get any Bokeh graphs show up when the check boxes are ticked

I have tried the below code to generate bokeh graphs for each of the element when the their respective check boxes are ticked. data is a df with columns like 'id', 'data_point', 'max', 'min' I am expecting a graph where if the data_point is empty or…
noob
  • 3
  • 3
0
votes
1 answer

Bokeh: Open a new data table with each time a point on plot is clicked

I have two data sources with the same keys. Source 1 has key/value pairs with unique keys to be plotted. Source 2 has the same keys as source 1, but each with potentially multiple values. Is it possible for clicking on a point on the plot (source1)…
Will
  • 1
  • 1