Re: [matplotlib-devel] RFC: candidates for a new default colormap

2015-06-03 Thread Stéfan van der Walt
On Wed, Jun 3, 2015 at 5:08 PM, Nathan Goldbaum wrote: > I'm a big fan of option D. So much so that when I needed to make a movie of > ony my galaxy simulations today I went ahead and used it: > > https://youtu.be/bnm554et0T8 Beautiful! How hard would it be to also do this for the other propose

[matplotlib-devel] Color render bug in scatter?

2011-08-08 Thread Stéfan van der Walt
Hi all, While playing around with scatter plots, I noticed something strange about the colors displayed. For example, f = plt.figure() ax = f.gca(projection='3d') ax.scatter([1,2,3], [1,2,3], [1,2,3], 'o', c=[(0,0,1,1), (0,0,0,1), (1,0,0,1)]) plt.show() should show a blue, a black and a red dot

[matplotlib-devel] SciPy2010 Call for Papers

2010-02-23 Thread Stéfan van der Walt
== SciPy 2010 Call for Papers == SciPy 2010, the 9th Python in Science Conference, will be held from June 28th - July 3rd, 2010 in Austin, Texas. At this conference, novel applications and breakthroughs made in the pursuit of science using Python ar

[matplotlib-devel] Spy on scipy.sparse.spmatrix

2009-12-22 Thread Stéfan van der Walt
Hi all, According to the `spy` docstring, it can display sparse matrices from scipy. The following code snippet seems to break, however: In [20]: import scipy.sparse as sp In [21]: d = sp.lil_eye((15, 15)) In [22]: plt.spy(d) Am I using the `spy` function correctly? I've also tried forcing mar

Re: [matplotlib-devel] imsave function

2009-11-08 Thread Stéfan van der Walt
Hi Gary Sorry, I didn't even read the docstring since I have been using SciPy's "imsave" so far. 2009/11/8 Gary Ruben : > This may be all you need. My tests (in the attached test.py) appear to > work. However, I don't think it's what you want. By default, figimage > even expects NxMx3 and NxMx4 a

Re: [matplotlib-devel] imsave function

2009-11-07 Thread Stéfan van der Walt
Hey all, 2009/2/10 Andrew Straw : > Gary Ruben wrote: >> Hi Andrew, >> >> I don't have commit access. If you would check it in, that would be great. > > Committed to the trunk in r6899... Thanks! > > And, sheesh, SourceForge's SVN server is slooow today for me, although > it seems to have finally

Re: [matplotlib-devel] Layout of subplots in output

2009-11-03 Thread Stéfan van der Walt
2009/11/3 John Hunter : > Perhaps you can file a bug report on the tracker so Michiel can look into it? Here we go: https://sourceforge.net/tracker/?func=detail&aid=2891502&group_id=80706&atid=560720 Cheers Stéfan -- Co

Re: [matplotlib-devel] Layout of subplots in output

2009-11-03 Thread Stéfan van der Walt
Hi JJ 2009/11/2 Jae-Joon Lee : > I now think this is not the dpi issue. > Can you check the size of your figure in mac os X backend, after the > plot is drawn? > > print f.get_size_inches() > > 8x6 inch is the default. It says [4, 2.52], so I think you are right! > So, my recommendation is to us

Re: [matplotlib-devel] Layout of subplots in output

2009-11-02 Thread Stéfan van der Walt
Hi JJ 2009/11/1 Jae-Joon Lee : > Can you try to install matplotlib again, after removing old ones. > The mac os X had a bug that does take care of the dpi. But I guess > this bug has been fixed in the svn. Unfortunately, I still see the same behaviour using the latest version from SVN. As noted

Re: [matplotlib-devel] Layout of subplots in output

2009-11-01 Thread Stéfan van der Walt
Hi John 2009/11/1 John Hunter : > To avoid the overlap on the titles and ticks, you will want to play > with the font size of the ticks and title, but most importantly the > subplots_adjust parameters hspace and wspace. > If using a suptitle, you may also want to adjust top. Thanks for the advice

Re: [matplotlib-devel] Layout of subplots in output

2009-11-01 Thread Stéfan van der Walt
2009/10/31 Eric Firing : > You forgot the attachment. I hate it when that happens -- here it is! Cheers Stéfan badplot.py Description: Binary data -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA

Re: [matplotlib-devel] Layout of subplots in output

2009-10-31 Thread Stéfan van der Walt
Hi Eric, 2009/9/28 Eric Firing : >> When saving plots (using plt.figsave and matplotlib from SVN) >> consisting of subplots, the layout is a bit messed up.  As an example, >> have a look at >> >> http://mentat.za.net/refer/segmentation.pdf > > Wow, that's really ugly!  I suspect that for anyone to

[matplotlib-devel] Layout of subplots in output

2009-09-27 Thread Stéfan van der Walt
Hi all, When saving plots (using plt.figsave and matplotlib from SVN) consisting of subplots, the layout is a bit messed up. As an example, have a look at http://mentat.za.net/refer/segmentation.pdf I have tried adjusting the figure size, the font size, the w- and hspace, etc. Is this a known

[matplotlib-devel] Ginput bug

2008-09-09 Thread Stéfan van der Walt
Hi all, I noticed that `ginput` no longer works (tested with SVN trunk). Is this a known problem? Kind regards, Stéfan --- PyDeadObjectError Traceback (most recent call last) /Users/stefan/ in () /

[matplotlib-devel] Script to generate logo

2008-08-23 Thread Stéfan van der Walt
Hi all, I am putting together a new frontpage for SciPy.org, and I would like to add a link to the Matplotlib project. I have been trying to generate a windrose, which is part of your logo, but the script posted to the list a while ago simply produces a blank plot. Do you have a version availabl

Re: [matplotlib-devel] Transparent backgrounds for savefig

2008-06-25 Thread Stéfan van der Walt
2008/6/25 Michael Droettboom <[EMAIL PROTECTED]>: > Maybe this should be made an option on the "transparent" kwarg to savefig, > something like: > > transparent = 'figure' | 'figure_and_axes' > > Or is that just making things too complicated? Those options would both be very handy. In the meanti

[matplotlib-devel] Transparent backgrounds for savefig

2008-06-25 Thread Stéfan van der Walt
Hi all, I'm generating plots for a document with a non-white background, and I need the outer rectangle (the one is normally gray on the screen) to be transparent. Savefig doesn't seem to have such an option: is it possible to do it already, and if not, would there be any interest in a patch? Re

Re: [matplotlib-devel] Number of points in legend

2008-06-24 Thread Stéfan van der Walt
2008/6/24 John Hunter <[EMAIL PROTECTED]>: > Committed to svn r5654 -- here is the test script:: > > import numpy as np > import matplotlib.pyplot as plt > plt.plot(np.random.rand(10), 'x-', label='first line') > plt.plot(np.random.rand(10), 'o-.', label='second line') > plt.legend(numpoints=1

Re: [matplotlib-devel] Number of points in legend

2008-06-23 Thread Stéfan van der Walt
Hi all, Sorry to bump the thread, but has anyone had a chance to take a look? I've re-attached the patch. Regards Stéfan 2008/6/17 Stéfan van der Walt <[EMAIL PROTECTED]>: > Hi John > > 2008/6/12 John Hunter <[EMAIL PROTECTED]>: >> On Thu, Jun 12, 2008 at 7:56

Re: [matplotlib-devel] Number of points in legend

2008-06-17 Thread Stéfan van der Walt
Hi John 2008/6/12 John Hunter <[EMAIL PROTECTED]>: > On Thu, Jun 12, 2008 at 7:56 AM, Stéfan van der Walt <[EMAIL PROTECTED]> > wrote: > >> linestyle 'x' ---> legend ' x ' >> linestyle '-x' ---> legend '---x---'

Re: [matplotlib-devel] numpy dtype argument

2008-06-12 Thread Stéfan van der Walt
2008/6/12 Manuel Metz <[EMAIL PROTECTED]>: > When looking, e.g. at axes.py, I see 3 different arguments passed to > numpy astype()/array()/zero() and friends: > > x = np.asarray(x).astype(np.float32) > x = np.zeros( x, np.float_ ) > x = np.ones((col,), float) > > Is there a preferred one to s

[matplotlib-devel] Number of points in legend

2008-06-12 Thread Stéfan van der Walt
Hi all, By default, 'legend' uses two points two represent a line. This looks a bit weird when you have only markers (no line), e.g., import matplotlib.pyplot as plt plt.plot([1,2,3], [4,5,6], 'x', label='first line') plt.legend() plt.show() Notice how there are two crosses in the legend. Havi

Re: [matplotlib-devel] future of mpl documentation

2008-06-03 Thread Stéfan van der Walt
Hi all I only read this thread today, and see that we have been battling many of the same challenges in our documentation efforts. I am glad to see that you are making such good progress! 2008/6/1 John Hunter <[EMAIL PROTECTED]>: >> I just realized, though, that I should probably be striving to

Re: [matplotlib-devel] Contourf draws contour lines

2008-04-20 Thread Stéfan van der Walt
And the attachment... On 20/04/2008, Eric Firing <[EMAIL PROTECTED]> wrote: cef.py Description: Binary data - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's

Re: [matplotlib-devel] Contourf draws contour lines

2008-04-20 Thread Stéfan van der Walt
On 20/04/2008, Eric Firing <[EMAIL PROTECTED]> wrote: > I don't see any contour lines; I see only the boundaries between patches. > In other words, the plot looks the way I would expect it to. This is with > evince or gv on a linux machine. (Both fail when trying to blow up the plot > to 400%, bu

Re: [matplotlib-devel] Contourf draws contour lines

2008-04-20 Thread Stéfan van der Walt
On 20/04/2008, Eric Firing <[EMAIL PROTECTED]> wrote: > > Odd, I'm using matplotlib 0.98pre (svn) with GTKAgg (gtk 2.12.8, pygtk > > > Very odd. Would you try writing out postscript and pdf, please, and see > whether they behave the same way? The contour lines are still visible: http://mentat.z

Re: [matplotlib-devel] Contourf draws contour lines

2008-04-19 Thread Stéfan van der Walt
Hi Eric On 18/04/2008, Eric Firing <[EMAIL PROTECTED]> wrote: > It doesn't on my machine with backend GtkAgg, and I have never seen this > behavior. What backend are you using? Odd, I'm using matplotlib 0.98pre (svn) with GTKAgg (gtk 2.12.8, pygtk 2.12.1) on an OSX machine. Btw, matplotlib doe

[matplotlib-devel] Contourf draws contour lines

2008-04-18 Thread Stéfan van der Walt
Hi all, I noticed that, contrary to what the docstring says, contourf(Z,10) draws contour lines on the different levels. The attached patch adds a draw_contours keyword that explicitly controls this behaviour. I don't know why it works (I set linewidths to 1 and the lines disappear?!), but it

[matplotlib-devel] compiler error: reload_cse_simplifty_operands

2008-03-14 Thread Stéfan van der Walt
Hi all, I am trying to compile matplotlib under MacOSX 10.5, and I get the following error message: src/_image.cpp:842: error: insn does not satisfy its constraints: (insn 2573 1070 2574 126 agg24/include/agg_color_rgba.h:268 (set (mem:QI (plus:SI (reg/f:SI 6 bp) (const_int -280 [

[matplotlib-devel] Placing icons on the canvas

2008-03-11 Thread Stéfan van der Walt
Hi all, I am trying to place small images (say 128x128) at specific (x,y) positions on the plotting canvas. I'm sure it is possible, but I don't know what the magic incantation is. I don't want anyone to spend time on figuring it out, but if you do know the answer, please let me know. Thanks, S