Setting Yticks Location Matplotlib
I'm trying to create a plot which has y axis exactly same with this : And I'm in this situation and everything is ok until this point: When i try this lines: ax.set_yticks(range
Solution 1:
If you want numbers on the axes, make sure you plot numbers, not strings. The axis labels would then adjust automatically as desired, or you may use set_yticks
and set_yticklabels
as in the question.
Post a Comment for "Setting Yticks Location Matplotlib"