I have a list of pairs.
Example:
pair1=[(a,a),(b,b),(c,c),(x,y)....]
In Python i need to generate a bar chart using matplotlib
such that if x
and y
co-ordinates are same in a pair the bar chart should come to the maximum extent or else in case of (x,y)
they are different and hence the bar chart should be at the 0 level. So please do help me out with the code in Python.