Re: [Matplotlib-users] What are my options for speeding up a custom function called by `FuncAnimation`?

2015-05-19 Thread Thomas Caswell
What are you plotting? How big is this list that the loops are taking appreciable amounts of time?!? Are we talking seconds here or ms? Have you done enough profiling to know exactly which line in here are slow? I don't quite understand the `np.ravel` calls. You might do better either with one

[Matplotlib-users] matplotlibrc has no effect on the plot? (windows7)

2015-05-19 Thread mato
I want to change the look of the default plots in Python, so I created the file matplotlibrc in the current working directory (Windows 7). The file gets loaded: /import matplotlib as mp print('Config. file loaded from:', mp.matplotlib_fname())/ prints: /Config. file loaded from:

Re: [Matplotlib-users] matplotlibrc has no effect on the plot? (windows7)

2015-05-19 Thread Yuxiang Wang
Are you using IPython QtConsole / Notebook? I think they have their own settings on their backend. Shawn On Tue, May 19, 2015 at 11:01 AM, mato mato_pavlo...@yahoo.com wrote: I want to change the look of the default plots in Python, so I created the file matplotlibrc in the current working

Re: [Matplotlib-users] matplotlibrc has no effect on the plot? (windows7)

2015-05-19 Thread Yuxiang Wang
Here is what I did: Put a 00_matplotlib_rc.py in ipython's profile_default/startup folder (you might need to run ipython profile create, or ipython profile locate to create/find them), and in the file specify my matplotlib rc parameters. For example: import matplotlib as mpl # Figure

Re: [Matplotlib-users] matplotlibrc has no effect on the plot? (windows7)

2015-05-19 Thread mato
This might be the case (I'm running Anaconda/Spyder/Ipython) however so far I haven't been able to locate the appropriate settings file... Yuxiang Wang wrote Are you using IPython QtConsole / Notebook? I think they have their own settings on their backend. Shawn -- View this message in

Re: [Matplotlib-users] matplotlibrc has no effect on the plot? (windows7)

2015-05-19 Thread mato
...or I can put the file(s) that dynamically change the rc settings in the current directory and just execute them (import) whenever I want to use different settings for the plots. This is less elegant than the configuration file, but at least solves my problem for now. Thank you Yuxian. Cheers