I understand that this question was asked earlier ( Python Pyplot Bar patches disappear when using the log scale ), but the answer did not help me. I set my pyplot.bar (x_values, y_values etc., Log = True), but received an error message:
"TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'"
I searched in vain for the actual pyplot code example that uses the bar graph with the y axis set to register, but could not find it. What am I doing wrong?
here is the code:
import matplotlib.pyplot as pyplot ax = fig.add_subplot(111) fig = pyplot.figure() x_axis = [0, 1, 2, 3, 4, 5] y_axis = [334, 350, 385, 40000.0, 167000.0, 1590000.0] ax.bar(x_axis, y_axis, log = 1) pyplot.show()
I get an error even when uninstalling pyplot.show. Thank you in advance for your cooperation
source share