0

I am trying to work out how to add a physical baseline at 0 in my bar chart, and how to write P values to the right of each of my bars.

Here is my code so far:

import pandas as pd
import matplotlib.pyplot as plot

Firstandtotalorder  = {"First order indices": [0.081, -0.05, 1.11],
                       "Total order indices":[0.013, 0.047, 1.212]};

index = ["BOD1", "BOD2", "BOD3"];

dataFrame  = pd.DataFrame(data = Firstandtotalorder);

dataFrame.index = index;

dataFrame.plot.barh(rot=15, title="First and total order sobol indices", xlim = -0.2);

plot.show(block=True); 

Plot requiring further formatting

P values for First order indices = 0.01, 0.02, 0.03 (for example) P values for Total order indices = 0.04, 0.05, 0.06 (for example)

Any guidance is much appreciated.

VEM_Dave
  • 25
  • 5

0 Answers0