Private
Public Access
1
0

fix legenda placement multiflex

This commit is contained in:
Sander Roosendaal
2018-11-12 10:23:27 +01:00
parent dce7785b58
commit afce33f805

View File

@@ -2408,8 +2408,8 @@ def interactive_multiflex(datadf,xparam,yparam,groupby,extratitle='',
for nr, gvalue, color in colorlegend:
box = BoxAnnotation(bottom=400+20*nr,left=550,top=420+20*nr,
right=570,
box = BoxAnnotation(bottom=125+20*nr,left=100,top=145+20*nr,
right=120,
bottom_units='screen',
top_units='screen',
left_units='screen',
@@ -2417,7 +2417,7 @@ def interactive_multiflex(datadf,xparam,yparam,groupby,extratitle='',
fill_color=color,
fill_alpha=1.0,
line_color=color)
legendlabel = Label(x=571,y=403+20*nr,x_units='screen',
legendlabel = Label(x=121,y=128+20*nr,x_units='screen',
y_units='screen',
text = "{gvalue:3.0f}".format(gvalue=gvalue),
background_fill_alpha=1.0,