简体   繁体   English

IPython QtConsole图形窗口

[英]IPython qtconsole figure window

I realise that tons of people have asked questions about the interactive figure window in IPython but I haven't yet found an answer to my problem. 我意识到很多人都在问有关IPython中交互式图形窗口的问题,但是我还没有找到解决问题的答案。 I'm using the IPython qtconsole for plotting, and I'd like it if 我正在使用IPython qtconsole进行绘图,如果

 plt.plot(x,y) (plt = matplotlib.pyplot)

would make an interactive figure window pop up BY DEFAULT. 将使交互式图形窗口按DEFAULT弹出。

I can get an interactive window for my plot using %pylab qt but I have to use this command every time before plotting, and I'd prefer to just make this a default setting. 我可以使用%pylab qt为我的绘图获得一个交互式窗口,但是在每次绘图之前我必须每次都使用此命令,而我希望将其设置为默认设置。 I am using IPython qtconsole version 3.2.1. 我正在使用IPython qtconsole版本3.2.1。

Have a look into iPython Profiles . 看一下iPython 配置文件 You should be able to either change the "default" profile to set the matplotlib output be going to qt by default or create another profile and have a convenient alias in your shell set up. 您应该能够更改“默认”配置文件以将matplotlib输出默认设置为qt ,或者创建另一个配置文件并在shell设置中使用方便的别名。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM