How can I set the y-axis to contain larger values? Or, is there any alternative way to avoid this problem? I have tried the
figsize(,) option but it isn't effective.
This is a bug in the
plot_histogram function. I pushed a fix for it here: https://github.com/Qiskit/qiskit-terra/pull/1661 In the meantime you can probably workaround this locally by doing something like:
fig = plot_histogram(data) ax = fig.axes ax.set_ylim(0, 1) fig.savefig('output.png') # Or whatever you doing to output the image
Which will adjust the y axis boundaries to be between 0 and 1.