i just want to have a simple 2-bar histogram,
and my problem is that i want my axis to be with NON-squared aspect,
i.e. the y-axes automatically scaled (and this yet works this way),but
the x-axis to be as long as it need to display 2 little bars.
Instead i get a squared graph with 2 big bars.
I also tried using something like "plt.axis([0,1,0,mymax*1.2])",
changing the second value, but this affects the scale and NOT my
picture aspect ratio.
This is my simploe source:
import numpy as np
import matplotlib.pyplot as plt
N = 1
ind = np.arange(N)
width = 0.05
rects2 = plt.bar(ind+width, 100, width, color='g')
rects1 = plt.bar(ind, 200, width, color='b')
I tried many things, figsize, axis.. i have no idea,
probably because i'm new to matplotlib programming
Thank you very much for any help,