|
From: rand0m <ra...@0x...> - 2012-10-10 13:40:57
|
Hello, I'm new to matplotlib and I hope you can help me out with my question. When drawing for example a Rectangle() I have to specify it like the following: rect = Rectangle((1, 3), 2, 20, facecolor="#aaaaaa") Where 2 is the length and 20 is the height. (1,3) is for xy. Imagine a coordination system where x-axis should represent the value 0 to 100. I would like to draw the rectangle from 50 to 60 on x-axis. So I would specify: rect = Rectangle((50, 3), 10, 20, facecolor="#aaaaaa") But this does not work as desired because at the xtick 50 the x-axis does not "hold" the value 50 but 5 because I made xticks 1-100 with step 10. So my x-axis "holds" the values 1-10. But I need 1-100. If anyone knows what Im missing I d be glad to hear about it :-). thank you |