- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
As the subject says I cannot get the plots to to show. I can save plots fine with savefig() but the show() command doesn't seem to do anything.
My investigations online suggests to change the backend from the default 'Agg' one to a graphical one. But unfortunately I cannot find any Windows specific instructions on how to do this.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
You are right, an interactive backend is needed. We are including one in our beta update that will be available in a couple weeks.
Robert
コピーされたリンク
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
You are right, an interactive backend is needed. We are including one in our beta update that will be available in a couple weeks.
Robert
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Thanks for the reply Robert, that's fantastic. I look forward to the next update, savefig() will work fine in the meantime!
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Here explain like you can change the backend to plot with matplotlib:
http://stackoverflow.com/questions/3285193/how-to-switch-backends-in-matplotlib-python
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hi Andre, thanks for the help. After entering an unsupported value matplotlib reported the following list of valid backends:
'gdk', 'GTK3Agg', 'nbAgg', 'WebAgg', 'GTK3Cairo', 'WX', 'CocoaAgg', 'pgf', 'Qt5Agg', 'GTKAgg', 'cairo', 'svg', 'emf', 'Qt4Agg', 'WXAgg', 'pdf', 'template', 'GTKCairo', 'MacOSX', 'agg', 'ps', 'GTK', 'TkAgg'
I tried them all, most give an error, or run but the show() function still doesn't do anything. One of them, WebAgg does work, it opens the browser and shows the results, which is great. Problem solved!
Regarding the other backends, other SO questions and posts online suggest you need to install the appropriate graphical toolkit before that backend will work. Unfortunately all the instructions I have found on how to do so are for Linux or OSX.