为什么全息视图没有显示颜色?

时间:2017-12-05 12:31:23

标签: python-3.x graph-visualization holoviews

我试图从全息视图中重现一个简单的例子。我正在运行// match pairs of :B when b2.order is equal to b1.order plus one MATCH (a:A)-[:R]->(b1:B), (a)-[:R]->(b2:B) WHERE b2.order = b1.order + 1 // Create the relation between :B nodes CREATE (b1)-[:NETX]->(b2) bokeh Version: 0.12.11。 这是怎么回事。

holoviews Version: 1.9.1

这是我的结果: enter image description here

无论我做什么,我都无法对类别进行着色,如示例here中所示。即使我定义了自己的import numpy as np import pandas as pd import holoviews as hv hv.extension('bokeh') macro_df = pd.read_csv('http://assets.holoviews.org/macro.csv', '\t') key_dimensions = [('year', 'Year'), ('country', 'Country')] value_dimensions = [('unem', 'Unemployment'), ('capmob', 'Capital Mobility'), ('gdp', 'GDP Growth'), ('trade', 'Trade')] macro = hv.Table(macro_df, key_dimensions, value_dimensions) %%opts Scatter [width=700 height=400 scaling_method='width' scaling_factor=2 size_index=2 show_grid=True] %%opts Scatter (color=Cycle('Category20') line_color='k') %%opts NdOverlay [legend_position='left' show_frame=False] gdp_unem_scatter = macro.to.scatter('Year', ['GDP Growth', 'Unemployment']) gdp_unem_scatter.overlay('Country') ...

我做错了什么?

0 个答案:

没有答案