elements = [{'name': 'CONFIG 1',
'length_pipe': 8.920698939198246,
'min_length_pipe': 0.7119027216330243,
'max_length_pipe': 1.4792896624259773,
'avg_length_pipe': 1.1150873673997808,
'mini_distance_between_block': 0.030000000000000082,
'maxi_distance_between_block': 0.13000000000000012},
{'name': 'CONFIG 2',
'length_pipe': 6.85902156118525,
'min_length_pipe': 0.41895064761469547,
'max_length_pipe': 1.3236557977320382,
'avg_length_pipe': 0.8573776951481562,
'mini_distance_between_block': 0.029681644159311606,
'maxi_distance_between_block': 0.6187083319303209},
{'name': 'CONFIG 3',
'length_pipe': 5.273043755389396,
'min_length_pipe': 0.1249460085369101,
'max_length_pipe': 0.9020225953545109,
'avg_length_pipe': 0.8573776951481562,
'mini_distance_between_block': 0.08944271909999157,
'maxi_distance_between_block': 0.33000000000000007}]
to_disp_attribute_names = ['name','length_pipe','min_length_pipe','max_length_pipe',
'avg_length_pipe','mini_distance_between_block',
'maxi_distance_between_block']
text_style = TextStyle(text_color=GREY,
font_size=10,
font_style='sans-serif')
surface_style = SurfaceStyle(color_fill=LIGHTGREY, opacity=0.3)
custom_tooltip = Tooltip(to_disp_attribute_names=to_disp_attribute_names,
surface_style=surface_style,
text_style=text_style,
tooltip_radius=10)
all_points = elements
plots = []
#ScatterPlot
plots.append(Scatter(tooltip=custom_tooltip,
to_disp_attribute_names=['min_length_pipe', 'name'],
elements=all_points))
plots.append(Scatter(tooltip=custom_tooltip,
to_disp_attribute_names=['mini_distance_between_block', 'name'],
elements=all_points))
plots.append(Scatter(tooltip=custom_tooltip,
to_disp_attribute_names=['avg_length_pipe', 'length_pipe'],
elements=all_points))
# ParallelPlot
plots.append(ParallelPlot(elements=all_points,
to_disp_attribute_names=to_disp_attribute_names))
multiplots = MultiplePlots(plots=plots, elements=all_points,
initial_view_on=True)
from plot_data import plot_canvas
plot_canvas(plot_data_object=multiplots, canvas_id='canvas')