Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circle Glyph bug on if fill_color is not passed #963

Closed
perrette opened this issue Aug 5, 2014 · 3 comments
Closed

Circle Glyph bug on if fill_color is not passed #963

perrette opened this issue Aug 5, 2014 · 3 comments

Comments

@perrette
Copy link

perrette commented Aug 5, 2014

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)
@bryevdv
Copy link
Member

bryevdv commented Aug 5, 2014

@perrette thanks! We will take a look into this.

@damianavila
Copy link
Contributor

@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...

@perrette
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants