|
From: Chao Y. <cha...@gm...> - 2012-09-03 21:20:30
|
Thanks Damon, it's very clear now. I explicit set the backend as "GTKAgg" in my ipython user configuration file. and always set the backend to 'Agg' in my rc file. So that when I use ipython, I can see the window interactively, but when I use script, it also works :P Chao On Mon, Sep 3, 2012 at 8:13 PM, Damon McDougall <dam...@gm...>wrote: > On Mon, Sep 3, 2012 at 6:08 PM, Chao YUE <cha...@gm...> wrote: > > Yet if I don't want to change the rc file, I guess I must change in the > > modules where matplotlib has been imported for the first time? > > If you're changing the rc file in your home directory: > > ~/.matplotlib/matplotlibrc > > then just make a copy before you change it: > > cd ~/.matplotlib > cp matplotlibrc matplotlibrc_orig > > then edit matplotlibrc. Just rename matplotlibrc_orig back to > matplotlibrc when you're done. > > -- > Damon McDougall > http://www.damon.is-a-geek.com > B2.39 > Mathematics Institute > University of Warwick > Coventry > West Midlands > CV4 7AL > United Kingdom > -- *********************************************************************************** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 ************************************************************************************ |