Skip to main content

Generating Challenging plots with Matplotlib

I have a data set that take the following form

Samples, Test Date, Flow Rate, Temperature, Pressure, Concentration

Sample A
Sample A
Sample A
Sample A
Sample A
Sample B
Sample B
Sample B
Sample B
Sample B
Sample C
Sample C
Sample C
Sample C

The test date above may not necessarily be in chronological sequence. I want to have 4 vertical subplots (4 rows x 1 column) representing Flow Rate, Temperature, Pressure and Concentration. Each subplot will have plots for Sample A, Sample B and Sample C. The legend will have the Sample Names as well.

Any help in achieving this goal will greatly be appreciated.

I have tried generating the dictionary for the dataset given the constraints above without success.



source https://stackoverflow.com/questions/75120888/generating-challenging-plots-with-matplotlib

Comments