coloring pink
This commit is contained in:
@@ -2225,9 +2225,9 @@ def interactive_chart(id=0,promember=0,intervaldata = {}):
|
|||||||
intervaldf['itime'] = intervaldf['itime']*1.e3
|
intervaldf['itime'] = intervaldf['itime']*1.e3
|
||||||
intervaldf['time'] = intervaldf['itime'].cumsum()
|
intervaldf['time'] = intervaldf['itime'].cumsum()
|
||||||
intervaldf['time_r'] = intervaldf['time'] +intervaldf['itime'].shift(-1)
|
intervaldf['time_r'] = intervaldf['time'] +intervaldf['itime'].shift(-1)
|
||||||
intervaldf['value'] = 45
|
intervaldf['value'] = 10
|
||||||
mask = intervaldf['itype'] == 3
|
mask = intervaldf['itype'] == 3
|
||||||
intervaldf.loc[mask,'value'] = 10
|
intervaldf.loc[mask,'value'] = 45
|
||||||
intervaldf['bottom'] = 10
|
intervaldf['bottom'] = 10
|
||||||
|
|
||||||
intervalsource = ColumnDataSource(
|
intervalsource = ColumnDataSource(
|
||||||
@@ -2235,7 +2235,7 @@ def interactive_chart(id=0,promember=0,intervaldata = {}):
|
|||||||
)
|
)
|
||||||
|
|
||||||
plot.quad(left='time',top='value',bottom='bottom',
|
plot.quad(left='time',top='value',bottom='bottom',
|
||||||
right='time_r',source=intervalsource,color='gray',
|
right='time_r',source=intervalsource,color='pink',
|
||||||
y_range_name='spmax',fill_alpha=0.2,line_alpha=0.2)
|
y_range_name='spmax',fill_alpha=0.2,line_alpha=0.2)
|
||||||
|
|
||||||
script, div = components(plot)
|
script, div = components(plot)
|
||||||
|
|||||||
Reference in New Issue
Block a user