Ticket #5 (closed defect: duplicate)
patch to add rotate option to options.axis.x
|Reported by:||jae@…||Owned by:||somebody|
Labels on the x axis can overlap if they are long enough. I've attached a small patch which adds a 'options.axis.x.rotate' option to deal with this situation by letting the user set a 'rotate' option as the number of degrees to rotate the labels (clockwise) thus avoiding the overlap.
This is the first time I've played with cairo, so this may not be the optimal way to do it. I rotate() to write the label and then rotate() back to the original orientation. I also tried it with get_matrix() and set_matrix(). I compared their performance (timeit) and there was no difference. I went with rotate as I thought it was more obvious what it was doing.