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!
The text was updated successfully, but these errors were encountered:
When using Object model, setting the keyword
size
toScatter(...)
does not modify the size of the points. Settingdefault_size
works as expected. Using pyplot works as expected, weirdly. Version of bqplot is 0.12.36.For example, this affects the provided example https://github.com/bqplot/bqplot/blob/master/examples/Marks/Object%20Model/Scatter.ipynb. Here is a MWE:
I hope I did not miss something obvious... Thanks in advance!
The text was updated successfully, but these errors were encountered: