Re: [Matplotlib-users] ugly arrow with xpdf
I finally committed this fix. -- Jouni K. Seppänen http://www.iki.fi/jks - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] problem with histogram
Hello list, I am trying to run the "histogram_demo_extended.py" on my mac 10.5. I installed matplotlib through the scisoft package. The normal hist command works fine but when I tried to use "align" or "histtype" keyward I get this kind of error: [Macintosh-2:~/optional/examples/pylab_examples] nino% ./histogram_demo_extended.py Traceback (most recent call last): File "./histogram_demo_extended.py", line 15, in n, bins, patches = P.hist(x, 50, normed=1, histtype='stepfilled') File "/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pyplot.py", line 1633, in hist ret = gca().hist(*args, **kwargs) File "/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axes.py", line 5064, in hist p.update(kwargs) File "/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/artist.py", line 394, in update raise AttributeError('Unknown property %s'%k) AttributeError: Unknown property histtype Can someone give me any advice? Thanks a lot in advance. nino -- Antonino Cucchiara PhD candidate Department of Astronomy&Astrophysics Penn State University website: www.astro.psu.edu/~cucchiara/ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] plotting numbers on axes in scientific notation
Hi, How can I plot numbers on the x and y axes in scientific notation? I have very large values on the y axis which I'd like to show as 1e9 and not 1 followed by 9 zeros. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] interger to binary
Hi, Thanks a lot to all of you for your help. This looks very promising. I will test it on Monday. Regards, Marjolaine. >>> Michael Droettboom <[EMAIL PROTECTED]> 09/05/08 7:54 PM >>> You could do something like: def bitget(value, bit_number): return (value & (1 << bit_number)) != 0 which will return True or False for the given bit number, and this function works on numpy arrays. (Bits are numbered base-0 -- I don't know if that matches matlab). Hope that helps, Mike Marjolaine Rouault wrote: > Hi, > > I was wondering if python has the equivalent of the matlab bitget.m function. > > I have a large 2 dimensional variable of type uint32 which I must convert to > binaries and then find if bit 23 of the binary for each point is 0 or 1. The > matlab bitget function is ideal for that but I can't find much in python. The > only thing I found was binary_repr which converts to a sting and can only be > used for 1 point at a time. > > Any suggestions? > > Thanks, Marjolaine. > > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] plot star instead of pentagram
dmitrey wrote: > Eric Firing wrote: >> dmitrey wrote: >>> hi all, >>> matplotlib says it's similar to MATLAB's plot tool, however, using >>> plot(..., 'p') plots pentagram instead of star. It makes my (Python >>> scikits.openopt) graphic output of numerical convergence look uglier >>> than MATLAB version. >>> >>> So is plotting a star intended to be ever implemented? >> Dmitrey, >> >> It was easy, so I added a 5-point star to the set of available markers >> in svn. Use plot(..., '*'). 'p' was already taken, and '*' seems >> more mnemonic--I would never think of 'p' as indicating a star. >> >> Eric > Thank you, currently I'm using scatter (it will take a time while all > users will have the matplotlib version with '*' available). > > There is unclear parameter in scatter docstring, could you explain what > does it mean: > > *s*: >size in points^2. It is a scalar or an array of the same >length as *x* and *y*. > > so what does it mean "size in points^2"? It means the area of the circle circumscribing the marker, with that area measured in units of points squared. The strange choice of s as a measure of area instead of radius or diameter is for compatibility with Matlab. Eric > > Regards, D. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users