質問: ``` 発生したエラーは以下 ``` $ python make_corrCoef_data.py Traceback (most recent call last): File "make_corrCoef_data.py", line 58, in plt.colorbar() File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/pyplot.py", line 2114, in colorbar raise RuntimeError('No mappable was found to use for colorbar ' RuntimeError: No mappable was found to use for colorbar creation. First define a mappable such as an image (with imshow) or a contour set (with contourf). ```
回答: `xx = plt.gca()`,`PCM = ax.get_children()[2]`,`plt.colorbar(PCM, ax=xx)`を`plt.colorbar()`の手前に挿入することで解決しました.参考URL: