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
The example script displays a scatter plot via the bokeh.glyphs.Circle / bokeh.objects.Glyph interface, using the bokeh server.
I noticed that when the fill_color parameter is not provided, the data area of the plot shows up as blank on the second execution (the first execution, for a given document, works just fine). You need either to click the "close all plots" button, or give a new document name, for the plot to show up again. If fill_color is provided, everything is normal. Below a minimal example.
import numpy as np
from bokeh.objects import Plot, ColumnDataSource, DataRange1d, Glyph
from bokeh.glyphs import Circle
from bokeh.document import Document
from bokeh.session import Session
document = Document()
session = Session()
session.use_doc('test_server_issue')
session.load_document(document)
x = np.random.randn(100)
y = np.random.randn(100)
source = ColumnDataSource( data = dict(x=x, y=y) )
xdr = DataRange1d(sources=[source.columns('x')])
ydr = DataRange1d(sources=[source.columns('y')])
plot = Plot( data_sources=[source], x_range=xdr, y_range=ydr, plot_width=600, plot_height=600 )
circle = Circle(x='x', y='y')
#circle = Circle(x='x', y='y', fill_color='blue') # adding fill_color will solve the bug
circle_glyph = Glyph(data_source=source, xdata_range=xdr, ydata_range=ydr, glyph=circle)
plot.renderers.append(circle_glyph)
document.add(plot)
session.store_document(document)
link = session.object_link(document._plotcontext)
print("Please visit %s to see the plots" % link)
The text was updated successfully, but these errors were encountered:
@perrette, I can not replicate this on master... which version are you using... in any case, I will be releasing a devel build today if you want to try...
I was using 0.5.1. Just updated to master, and now everything behaves normally. Sorry for the false alert.
PS: every time I had tried to install the master over the last 10 days or so, only the bokeh symbol would show up, without plot (probably something to do with bokehjs?). This also seems to have been solved, now everything works fine with master. So I guess I do not need the devel build either. Thanks anyway.
The example script displays a scatter plot via the
bokeh.glyphs.Circle
/bokeh.objects.Glyph
interface, using the bokeh server.I noticed that when the
fill_color
parameter is not provided, the data area of the plot shows up as blank on the second execution (the first execution, for a given document, works just fine). You need either to click the "close all plots" button, or give a new document name, for the plot to show up again. If fill_color is provided, everything is normal. Below a minimal example.The text was updated successfully, but these errors were encountered: