hsbang09 / iFEED_experiment_result_analysis_2019

1 stars 1 forks source link

Capability to generate a scatter plot showing the design space #2

Closed hsbang09 closed 5 years ago

hsbang09 commented 5 years ago

Implement the capability to plot a scatter plot showing the design from the design synthesis task.

Subject class has a member variable called "design_synthesis_task_data", which is a python dict. Under it, it contains "designs_evaluated" key. Use the designs there to generate a scatter plot. The X axis should be outputs[0] and the Y axis should be outputs[1], which are science and cost, respectively.

The function should take one Subject instance or a list of Subject instances as an argument, and generate a scatter plot using matplotlib.pyplot. Features from each subject should be colored differently.

hsbang09 commented 5 years ago

Extra:

Make it possible to pass groups of subject instances as arguments. Then, each group will be colored differently (or use marker) on the scatter plot.

The argument passed to the function maybe a list or a dict. You can choose to implement it in either way:

If it is a list, it would look like this: [[s0, s2, s4, ... ], [s1, s3, s5, ... ]] Or if it is a dict, it would look like this: {"group1_name": [s0, s2, s4, ...], "group2_name": [s1, s3, s5, ...]}

hsbang09 commented 5 years ago

Capability implemented