Matplotlib Custom Hatch Patterns in 5 Steps

Matplotlib hatch is a pattern that can be used as an overlay in bar charts, shapes and are important to ensure the readability of graphs in the absence of color (when printed in a single color format). Unfortunately, there are only a few patterns available on Matplotlib.By reading this post, you will be able to … Continue reading Matplotlib Custom Hatch Patterns in 5 Steps

Add Matplotlib Percentage Ticks to a Histogram

Matplotlib provides an easy way of converting your yaxis to percentages. It's just a one liner import matplotlib.ticker as ticker ax.yaxis.set_major_formatter(ticker.PercentFormatter(xmax)) But the issue is you can't space the yticks as you want them to be. Usually you can do this by setting yticks (ax.set_yticks). But the issue is, python converts the axis directly to … Continue reading Add Matplotlib Percentage Ticks to a Histogram