Make a plot with log scaling on the y axis.
Call signatures:
semilogy([x], y, [fmt], data=None, **kwargs) semilogy([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs)
This is just a thin wrapper around plot
which additionally changes the y-axis to log scaling. All of the concepts and parameters of plot can be used here as well.
The additional parameters base, subs, and nonpositive control the y-axis properties. They are just forwarded to Axes.set_yscale
.
Base of the y logarithm.
The location of the minor yticks. If None, reasonable locations are automatically chosen depending on the number of decades in the plot. See Axes.set_yscale
for details.
Non-positive values in y can be masked as invalid, or clipped to a very small positive number.
All parameters supported by plot
.
Line2D
Objects representing the plotted data.
matplotlib.axes.Axes.semilogy
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/_as_gen/matplotlib.axes.Axes.semilogy.html