Questions tagged [bqplot]
41 questions
4
votes
2 answers
How to insert tooltips in a scatter plot with bqplot
I have a pandas dataframe (df) with 4 columns, named 'name', 'nb', 'a' and 'b', that characterize a person, with his name, his id number ('nb') and some values ('a' and 'b') associated to it.
import pandas as pd
data = {
"name": ["Thomas",…

gus
- 103
- 8
3
votes
2 answers
Dynamically adjust axes in bqplot
I'm working on a jupyter based dashboard for data analysis and am planning on using bqplot for plotting the data. Part of the spec for the dashboard is to be able to adjust the axes to be able to zoom in/out on the data. So far I've been able to get…

SamH
- 203
- 1
- 2
- 13
3
votes
2 answers
Tighter layout of bqplot figures in Jupyter
I have created several plots in the Jupyter notebook using bqplot. The plots have been arranged using the Jupyter widget HBox and VBox layout attributes. However, I can't work out how to get a tight layout between the rows of subplots. What is the…

DougR
- 3,196
- 1
- 28
- 29
2
votes
0 answers
Deploy an interactive ipywidget jupyter notebook
I have created a plot (with bqplot) with some sliders with (ipywidgets) in a jupyter notebook using Jupyter Lab and now I would like to send this notebook to anyone and have the widget work, that is, when I'm running the code, everything works fine,…

Bidon
- 221
- 1
- 12
2
votes
1 answer
Interactive Covid Plot with Multiple iPyWidgets Dropdowns
I'm attempting to put together a Jupyter Notebook that allows a user to input a state in a dropdown, which would change the result in the second dropdown to only show cities from that state. Once the city is selected, a button could be pressed to…

fakedane
- 95
- 11
2
votes
1 answer
Bqplot in jupyter lab returns a string instead of an (interactive) image
Today I've been trying to install the module bqplot and use jupyter lab for the very first time.
However, I've not been able to obtain the desired output when using the basic examples as shown on their website.
The code I'm trying to execute is as…

Thijs
- 33
- 4
2
votes
3 answers
Change size of Fig in bqplot?
I'm new to bqplot. Trying to figure out how to resize a figure. I tried both of the following, lightly modifying example code:
fig = Figure(marks=[line], axes=[ax_x, ax_y], title='Security 1')
fig.height = 100
and
fig = Figure(marks=[line],…

helloB
- 3,472
- 10
- 40
- 87
1
vote
1 answer
Removing axes and background gridlines in BQPLOT
I am trying to find a way to remove the gridlines and the axes in bqplot (jupyter notebook).
I have tried the lines:
ax_x = Axis(scale=x_ord)
ax_y = Axis(scale=y_sc)
ax_x.grid_lines = 'none'
fig = bplt.figure(axes=[ax_x, ax_y])
Yet…

Godjenka
- 47
- 1
- 7
1
vote
0 answers
Bqplot numbers exceed limit
I've been using bqplot in jupyter notebook recently.
The numbers that I want to plot is stored in a numpy array. However, when they are plotted, some numbers become negative. I suspect the problem is int conversion and two's complement. I checked…

The Flying Dutchman
- 11
- 1
1
vote
1 answer
Highlight point in scatterplot when hovering over image
I'm trying to link a grid of images to a scatterplot, so that the right scatterplot point is highlighted when hovering over the corresponding image.
Problem is that when registering DOM events iteratively, they seem to get overwritten, and as a…

Loïc Dutrieux
- 381
- 5
- 16
1
vote
1 answer
bqplot filled Lines blocks tooltip
I'm trying to plot a time series forecast, surrounded by a shaded uncertainty interval timeseries, and have tooltips work for both the line and the perimeter of the uncertainty.
import pandas as pd
from bqplot import *
daterange =…

GrayOnGray
- 315
- 3
- 12
1
vote
0 answers
How to set / replace text in bqplot label?
Original question:
How do you set the text in a bqplot label using a slider?
I have solved that problem and show my answer below.
New question:
Why is this the behavior? Doesn't it seem crazy for bqplot to expose the text as a list and then not…

John Mahoney
- 85
- 1
- 5
1
vote
1 answer
Container as tooltip doesn't show contents
I'm creating a scatterplot and want to show some information in a tooltip.
The following works perfectly:
import bqplot as bqp
import ipywidgets as ipw
xSc = bqp.LinearScale()
ySc = bqp.LinearScale()
tt = ipw.Label("A")
def hover_handler(self,…

Wasabi
- 2,879
- 3
- 26
- 48
1
vote
1 answer
bqplot: performance issue
I was playing around with on_drag features of bqplot. and I noticed that it is slightly lagging..
I am not sure if this is
real issue
I do something inappropriate
meant to work like it is
so the code I have is the following
from bqplot import…

László Oroszlány
- 13
- 2
1
vote
1 answer
bqplot: ipython widgets not being rendered
I am trying to use bqplot to plot some graphs in jupyter notebook along with some ipywidgets. I want to render the widgets horizontally adjacent to my plot as discussed in this issue, but I cannot get the widgets to show up in my jupyter notebook.…

Amogh Kulkarni
- 95
- 1
- 11