Yes I found that, but it covers the x axis which is fine, not the y axis which is causing the problem, the tick marks line up to the top of the bar, not the middle of it and looks a bit strange.
Ok, I've found solved this/found workaround for this. It's not the most intuitive, but I reset the xticks to [0,1] instead of [0,2] with the view that having the tick labels below the bar on a horizontal chart would look better, and then the align parameter worked:
Ok, I've found solved this/found workaround for this. It's not the most intuitive, but I reset the xticks to [0,1] instead of [0,2] with the view that having the tick labels below the bar on a horizontal chart would look better, and then the align parameter worked:
ax2.barh(xhar, yhar, align='center', color=['grey', rag_sets]) # align parameter now works ax2.set_xlabel('Number of Sets') ax2.set_xlim(0, 50) ax2.set_yticks([0, 1]) # so long as the ticks are set in this way ax2.set_yticklabels(tyreStock)iFunk