You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Object model, setting the keyword size to Scatter(...) does not modify the size of the points. Setting default_size works as expected. Using pyplot works as expected, weirdly. Version of bqplot is 0.12.36.
importnumpyasnpimportbqplotasbqimportbqplot.pyplotaspltN=50a=np.random.rand(N)
x, y=np.random.randn(2, N)
# pyplot works as expectedfig=plt.figure()
plt.scatter(x, y, size=a)
fig# Object model does not work as expectedxs=bq.LinearScale()
ys=bq.LinearScale()
xax=bq.Axis(scale=xs, label="X")
yax=bq.Axis(scale=ys, orientation="vertical", label="Y")
scat=bq.Scatter(x=x, y=y, scales={"x": xs, "y": ys}, size=a)
fig=bq.Figure(marks=[scat], axes=[xax, yax])
fig
I hope I did not miss something obvious... Thanks in advance!
Activity
fcichos commentedon May 28, 2023
Try with the parameter name default_size instead.