Hi Amit,
The setOrientation method(s) are actually for rotating the text labels annotating the entire dimension; the label that reads "X-Axis" or "Y-Axis" for example. Based on what you said above it sounds like what you really want to do is rotate the tick labels that show up on each domain grid line. Up til now there has been no way to accomplish this. I went ahead and added 4 new methods to XYGraphWidget to handle this:
void setDomainLabelOrientation(float)
float getDomainLabelOrientation(void)
void setRangeLabelOrientation(float)
float getRangeLabelOrientation(void)
If for example, you wanted to add a rotation of -45 degrees to your domain labels you would do this:
plot.getGraphWidget().setDomainLabelOrientation(-45);
Which would result in this:
