Questions tagged [bqplot]
41 questions
0
votes
0 answers
Can I manually select the used theme in bqplot?
I'm manually setting up a bqplot canvas:
import bqplot as bq
ys = bq.LinearScale()
xs = bq.DateScale()
xax = bq.Axis(scale=self.xs, label="Date", grid_lines="solid")
yax = bq.Axis(scale=self.ys, label="NDVI", orientation="vertical",…

Pierrick Rambaud
- 1,726
- 1
- 20
- 47
0
votes
0 answers
Bqplot formatting saved image (png)
I'm new to bqplot. I'm trying to save image of plots in png to use them in some powerpoint presntations. I'm trying to find a way to do something similar to whtat you can do with matplotlib with the paramater " bbox_inches="tight" " in the .savefig…

Fred Dujardin
- 127
- 1
- 1
- 8
0
votes
0 answers
Is there a way to make a bit of gap between x-axis and the graph? (Python, bqplot)
I created a random number graph and I want to have a more gap between the x axis and the graph because it looks hard to read. Does anyone have a idea how to do that? Thank you so much. Here is my example code.
from bqplot import Axis, LinearScale,…

jaewon lee
- 11
- 2
0
votes
1 answer
Partially visible text for ipywidgets
I have made a selection_range_slider in jupyter notebook using ipywidgets, the only issue is that we can't see the end of the second date. What modification should I make to make this visible? (see picture below)
Here is my code:
start_date =…

Godjenka
- 47
- 1
- 7
0
votes
1 answer
Individually accessing the points of scatter points in BQPLOT
I would like to change the size of a point amongst scatter points in BQPLOT. What is the best way to do it without affecting the size of the rest of the points?
Thanks

Godjenka
- 47
- 1
- 7
0
votes
1 answer
How to remove scientific notation on bqplot?
I am using bqplot to create a live line graph on jupyter-notebook + VOILA
from bqplot import pyplot as plt2
import datetime
x_values = [] #array of datetimes
y_values = [] #array of 10+ digit numbers
plt2.show()
def…

enieni5252
- 3
- 3
0
votes
1 answer
Change plot limits with aspect ratio = 1 in bqplot
I hope you all are fine
I'm trying to make plots with aspect_ratio=1 (same scale for both axis), but this always gives a squared layout, with no matters what are the real limits of the elements that i'm plotting
from bqplot import pyplot as plt
from…

Kevin Bernardo
- 3
- 1
0
votes
1 answer
on_click/hover event for bqplot image
I'm trying to build an interactive dashboard using ipywidgets and bqplot with image chips and a scatterplot. Each point in the scatterplot corresponds to an image chip, and so I would like (1) to 'highlight' the point when hovering over the…

Loïc Dutrieux
- 381
- 5
- 16
0
votes
1 answer
How to prevent recursion with interactive plot in bqplot?
I created an interactive scatterplot using bqplot where you are allowed to drag points around (using enable_move=True).
I don't want the user to drag points above the line y=x.
If they do, I want the point to snap back to where it was most…

John Mahoney
- 85
- 1
- 5
0
votes
1 answer
Using multiple sliders to create dynamic chart in bqplt/jupyter
I am trying to plot a dynamic portfolio performance that changes as the weights of the portfolio change
Assume a portfolio has 2 components with a 50% weighting each. I want to show a chart of the portfolio with sliders representing the weights of…

breaker7
- 113
- 8
0
votes
1 answer
Updating bqplot image widget
I'm working on a project that uses ipywidgets and bqplot to display and interact with an image.
Using ipywidgets and open cv I can modify an image, save it and update the value of the widget. But I also need the on_click_element aspect of bqplot,…

av36
- 1
0
votes
1 answer
bqplot - Tick placement outside of plot
I'm trying to place the x-axis tick marks out side of the plot, not beginning on the x-axis as below. Do you have any tips on how the achieve this?
My code for the plotting bits:
x_data = df_ts.columns.values.tolist()
y_end = df_ts.loc[end_date,…

aNadjalin
- 11
- 4
0
votes
1 answer
Tooltip data shows up NaN in bqplot Lines chart
I am having trouble getting my tooltip data to show up in my line chart. Here is some very simple code that reproduces the error. When I hover over the line all that shows up is NaN. Can someone please help me? Thank you!
from bqplot import (Axis,…

NewRCoder
- 23
- 2
0
votes
1 answer
Using bqplot tooltip with a dataframe
Use widget to display snippets from a csv file/dataframe and feed to tooltip attribute of bqplot
I am trying to display certain info (statistics such as age group, income, obesity levels etc.) for each state in the US using bqplot. I am able to plot…

DolphinB
- 5
- 4
0
votes
2 answers
streaming data in bqplot visualization
Other than running a loop in a latter notebook cell, how is it possible to stream data to bqplot? Does bqplot provide any periodic callback method for streaming data?
Also, does bqplot have a server to show the corresponding visualization (real-time…

Hossein Kalbasi
- 1,641
- 2
- 13
- 26