How can I get a more distinct bar graph in matplotlib?

Question:

I have ploted a graph using matplotlib in jupyter notebook. I have 3 bars with a very small difference between them. I want to plot a graph that is accurate and shows the difference between the values clearly. I have attached a picture of a graph that I want and my graph

My Code:

pt.bar(['Treated' , 'Untreated' , 'Control'] , [treated_dataset['Pos 1'].mean() , untreated_dataset['Pos 2'].mean() , control_dataset['Pos 3'].mean()] , color = 'blue')

My Graph :

My Graph

The Graph that I want:

Goal Graph

Asked By: Adam Saleem

||

Answers:

You can zoom by setting the limits of the abscissa with pt.set_ylim((90, 97)).

Answered By: Radarrudi
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.