``` python import matplotlib.pyplot as plt import numpy as np y = np.arange(3000, 112471, 10000) fig, ax = plt.subplots() ax.set_yscale("log") ax.plot(y, linewidth=0, marker=".") ax.set_ylim((0, 1e5)) ``` yields:  Basically, the ymin gets ignored (sometimes) when ymin == 0 and yscale == 0. The code should raise an error or at least a warning. version: 2.0.0b4.post2455+g063cd41