Matplotlib histogram with collection bin for high values
I have an array with values, and I want to create a histogram of it. I am mainly interested in the low end numbers, and want to collect every number above 300 in one bin. This bin should have the same width as all other (equally wide) bins. How can I do this? Note: this question is related to this question: Defining bin width/x-axis scale in Matplotlib histogram This is what I tried so far: import matplotlib.pyplot as plt import numpy as np def plot_histogram_01(): np.random.seed(1) values_A = np.random.choice(np.arange(600), size=200, replace=True).tolist() values_B = np.random.choice(np