[Matplotlib-users] mailing list archive broken ?

2012-10-04 Thread Pierre Haessig
Hi, Is it just my web browser getting crazy or is there a real issue with the ML archive on sourceforge: http://sourceforge.net/mailarchive/forum.php?forum_name=matplotlib-users I only see email records until July 16th 2012 !! If there is another ML archive website in better shape, it would be

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Pierre Haessig
Hi Fernando, Le 04/10/2012 09:16, Fernando Perez a écrit : This would make for an awesome couple of examples for the gallery, the mathematica solutions look really pretty cool: http://mathematica.stackexchange.com/questions/11350/xkcd-style-graphs I've never used Mathematica so that it's

Re: [Matplotlib-users] Control the position of a figure window

2012-10-04 Thread Juergen Hasch
If you like to use qt4 as backend, you can also do it like this: import sys from PySide import QtGui import numpy as np from matplotlib.figure import Figure from matplotlib.backends.backend_qt4agg \ import FigureCanvasQTAgg as FigureCanvas fig = Figure() axes = fig.add_subplot(111) x =

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Damon McDougall
On Thu, Oct 4, 2012 at 10:44 AM, Damon McDougall damon.mcdoug...@gmail.com wrote: On Thu, Oct 4, 2012 at 10:02 AM, Pierre Haessig pierre.haes...@crans.org wrote: Hi Fernando, Le 04/10/2012 09:16, Fernando Perez a écrit : This would make for an awesome couple of examples for the gallery, the

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Phil Elson
Nice challenge Fernando! Damon, I love the solution! I do wonder whether we could do some quirky transform on the lines to achieve a similar result, rather than manipulating the data before plotting it. The benefit is that everything should then get randomly Xkcd-ed automatically - maybe I will

[Matplotlib-users] Saving animations

2012-10-04 Thread Andreas Mueller
Hi everybody. I have been trying to save some animations I made and I encountered the problem mentioned here http://sourceforge.net/mailarchive/forum.php?thread_name=CAKH0P%2BVLXthNCAZ1K2pKHYqqPiFHP5iXSFwJvEerVmvtmgGv0g%40mail.gmail.comforum_name=matplotlib-devel. I am using current master. To

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Michael Droettboom
Yes -- this would be a great application for the path filtering infrastructure that matplotlib has. Mike On 10/04/2012 08:29 AM, Phil Elson wrote: Nice challenge Fernando! Damon, I love the solution! I do wonder whether we could do some quirky transform on the lines to achieve a similar

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Jason Grout
On 10/4/12 4:02 AM, Pierre Haessig wrote: Hi Fernando, Le 04/10/2012 09:16, Fernando Perez a écrit : This would make for an awesome couple of examples for the gallery, the mathematica solutions look really pretty cool: http://mathematica.stackexchange.com/questions/11350/xkcd-style-graphs

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Pierre Haessig
Le 04/10/2012 14:29, Phil Elson a écrit : Damon, I love the solution! I do wonder whether we could do some quirky transform on the lines to achieve a similar result, rather than manipulating the data before plotting it. The benefit is that everything should then get randomly Xkcd-ed

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Michael Droettboom
This is just too cool of an idea to pass up -- I'm going to see if I can put together a PR that does this using the C++ path filtering stuff so it would be available everywhere. Mike On 10/04/2012 10:11 AM, Michael Droettboom wrote: Yes -- this would be a great application for the path

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Benjamin Root
On Thu, Oct 4, 2012 at 10:11 AM, Michael Droettboom md...@stsci.edu wrote: Yes -- this would be a great application for the path filtering infrastructure that matplotlib has. Mike I agree with this idea. However, I don't think the code is set up to allow for user-defined path filters.

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Pierre Haessig
Le 04/10/2012 16:03, Jason Grout a écrit : f@r means f(r) a~ImageConvolve~b means ImageConvolve(a,b) (~ treats an operator as infix) Table[..., {2}] means [... for i in range(2)] #+1 is a lambda function lambda x: x+1 So I think it goes something like: def xkcdDistort(p): r =

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Pierre Haessig
Le 04/10/2012 16:11, Michael Droettboom a écrit : Yes -- this would be a great application for the path filtering infrastructure that matplotlib has. Sounds way cooler than post-processing a raster plot image ! I'm not aware of this path filtering infrastructure. I guess it's a deeply buried

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Jason Grout
On 10/4/12 9:11 AM, Michael Droettboom wrote: Yes -- this would be a great application for the path filtering infrastructure that matplotlib has. Is that the same as the path effects features, like http://matplotlib.org/examples/pylab_examples/patheffect_demo.html ? Thanks, Jason

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Benjamin Root
On Thu, Oct 4, 2012 at 10:39 AM, Pierre Haessig pierre.haes...@crans.orgwrote: Le 04/10/2012 16:11, Michael Droettboom a écrit : Yes -- this would be a great application for the path filtering infrastructure that matplotlib has. Sounds way cooler than post-processing a raster plot image !

Re: [Matplotlib-users] Saving animations

2012-10-04 Thread Benjamin Root
On Thu, Oct 4, 2012 at 10:02 AM, Andreas Mueller amuel...@ais.uni-bonn.dewrote: Hi everybody. I have been trying to save some animations I made and I encountered the problem mentioned

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Damon McDougall
On Thu, Oct 4, 2012 at 3:35 PM, Pierre Haessig pierre.haes...@crans.org wrote: Le 04/10/2012 16:03, Jason Grout a écrit : f@r means f(r) a~ImageConvolve~b means ImageConvolve(a,b) (~ treats an operator as infix) Table[..., {2}] means [... for i in range(2)] #+1 is a lambda function lambda

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Michael Droettboom
On 10/04/2012 10:29 AM, Benjamin Root wrote: On Thu, Oct 4, 2012 at 10:11 AM, Michael Droettboom md...@stsci.edu mailto:md...@stsci.edu wrote: Yes -- this would be a great application for the path filtering infrastructure that matplotlib has. Mike I agree with this idea.

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Pierre Haessig
Le 04/10/2012 16:54, Damon McDougall a écrit : Adding Gaussian noise to each point on a function doesn't look nice. That's why I produced a random function in Fourier space first. That way, random functions still have some sense of smoothness. Mathematica code seems to use a Gaussian

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Juergen Hasch
Here is my take on it as an IPython notebook, based on Damon's code: http://nbviewer.ipython.org/3835181/ I took the engineering approach and filtered the random function instead of doing some fft/ifft magic. Also, X and Y of the functions are affected now, giving them a more natural look in

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Damon McDougall
On Thu, Oct 4, 2012 at 10:09 PM, Juergen Hasch pyt...@elbonia.de wrote: Here is my take on it as an IPython notebook, based on Damon's code: http://nbviewer.ipython.org/3835181/ I took the engineering approach and filtered the random function instead of doing some fft/ifft magic. Also, X

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Fernando Perez
Sweet! That should *defiintely* go into the mpl gallery, and honestly I'd love for it to be cleaned up enough to be usable to style generically any plot, much like the mathematica code I linked to earlier does. It would be a beautiful demonstration of matplotlib's capabilities, and furthermore,

Re: [Matplotlib-users] XKCD style graphs?

2012-10-04 Thread Michael Droettboom
I've put up a PR adding this sketchy line drawing as a path filter. This makes it work with almost anything that matplotlib draws. https://github.com/matplotlib/matplotlib/pull/1329 Mike On 10/04/2012 06:06 PM, Fernando Perez wrote: Sweet! That should *defiintely* go into the mpl gallery,

Re: [Matplotlib-users] imlim in ax.imshow

2012-10-04 Thread Michael Aye
On 2012-10-02 20:09:34 +, Eric Firing said: On 2012/10/02 9:21 AM, Michael Aye wrote: How nice of you to ask! ;) Indeed: I had the case that image arrays inside an ImageGrid where shown with some white overhead area around, e.g. for an image of 100 pixels on the x-axis, the imshow

Re: [Matplotlib-users] imlim in ax.imshow

2012-10-04 Thread Michael Aye
On 2012-10-02 20:15:51 +, Damon McDougall said: On Tue, Oct 2, 2012 at 9:09 PM, Eric Firing efir...@hawaii.edu wrote: On 2012/10/02 9:21 AM, Michael Aye wrote: How nice of you to ask! ;) Indeed: I had the case that image arrays inside an ImageGrid where shown with some white overhead

Re: [Matplotlib-users] Saving animations

2012-10-04 Thread Ryan May
On Thu, Oct 4, 2012 at 12:38 PM, Andreas Mueller amuel...@ais.uni-bonn.de wrote: On 10/04/2012 03:51 PM, Benjamin Root wrote: On Thu, Oct 4, 2012 at 10:02 AM, Andreas Mueller amuel...@ais.uni-bonn.de wrote: Hi everybody. I have been trying to save some animations I made and I encountered the

[Matplotlib-users] Matplotlib produced plots in academic journal articles

2012-10-04 Thread Gökhan Sever
Hello, Is there any collection of articles that shows academic articles using matplotlib produced plots? I have come across a few recent articles in my field with plots produced by matplotlib. Though, the mpl page shows some nice examples of publication quality plots, it would be nice to have a