matplotlibでヒストグラムをプロットしようとしていて、個々のバーの間に少しのスペースがあります。したがって、rwidth=0.9
と設定しました。これが出力されます。Matplotlibヒストグラム:rwidthを0.9に設定するとグリッチが発生する
はグリッチを回避する方法はありますか?
私はmatplotlibのバージョン2.0.2を使用しています:rwidth
ために低い値を設定すると、しかし、まだスペースの幅に見える違いがあり、すべてのバーが分離されることが保証されます。ここではそれが助け場合pip freeze
です:
appdirs==1.4.3
bleach==2.0.0
bokeh==0.12.9
callcatcher==1.2.0
certifi==2017.7.27.1
chardet==3.0.4
cycler==0.10.0
decorator==4.1.2
entrypoints==0.2.3
graphviz==0.8
holoviews==1.8.4
html5lib==0.999999999
idna==2.6
ipykernel==4.6.1
ipython==6.2.0
ipython-genutils==0.2.0
ipywidgets==7.0.1
jedi==0.11.0
Jinja2==2.9.6
jsonschema==2.6.0
jupyter==1.0.0
jupyter-client==5.1.0
jupyter-console==5.2.0
jupyter-core==4.3.0
MarkupSafe==1.0
matplotlib==2.0.2
mistune==0.7.4
nbconvert==5.3.1
nbformat==4.4.0
notebook==5.1.0
numpy==1.13.2
packaging==16.8
pandas==0.20.3
pandocfilters==1.4.2
param==1.5.1
parso==0.1.0
pexpect==4.2.1
pickleshare==0.7.4
pkg-resources==0.0.0
prompt-toolkit==1.0.15
ptyprocess==0.5.2
Pygments==2.2.0
pyparsing==2.2.0
python-dateutil==2.6.1
pytz==2017.2
PyYAML==3.12
pyzmq==16.0.2
qtconsole==4.3.1
requests==2.18.4
scipy==0.19.1
seaborn==0.8.1
simplegeneric==0.8.1
six==1.11.0
terminado==0.6
testpath==0.3.1
tornado==4.5.2
traitlets==4.3.2
urllib3==1.22
wcwidth==0.1.7
webencodings==0.5.1
widgetsnbextension==3.0.3
xonsh==0.3.2
すべてのヘルプは高く評価され、感謝!
ルーカス
https://stackoverflow.com/questions/25394913/spacing-between-bars-in-matplotlib-hist-with-thousands-of-bins – Dadep