Re: [Matplotlib-users] Compiling matplotlib against 64 bit python 2.6 on OSX Snow Leopard

2010-05-27 Thread Pim Schellart
Dear Friedrich,

sorry for the confusion.
It may very well be that I misinterpreted part of the problem as I am
no expert either.
The problem came to be as follows.
At first I used the binaries for the latest stable releases of Python
2.6 + numpy + matplotlib from the respected websites.
But in order to compile a custom library I needed Python to be compiled 64 bit.
This worked for Python, numpy and scipy but not for matplotlib.
I used to be able to compile matplotlib with a simple sudo python
setup.py install but when I tried to do this after the change to 64
bit the build failed with some errors which seemed to me to be related
to freetype not being compiled 64 bit (these errors, which I
unfortunately did not save clearly indicated that the linker could not
find some symbols and when I checked the architecture of the libs it
was i386 only).
I tried to fix this by first compiling freetype 64 bit, and later
libpng as well.
The problem now was that setupext.py did not look in the right
location for my new libpng build.
After I installed pkgtool this was also solved, however now the
reported error occurred.
I also could not use the make.osx script from the latest svn checkout
because of a bug in the fetching of zlib which John fixed.
Finally removing my custom installations of freetype and libpng and
using make.osx to fetch and build them solved the problem.
Oh and somewhere in all this mess I also managed to build it but then
got a malloc error when loading so I tried the removing of i386 but
this did not solve the problem so I changed it back.
I guess the conclusion is that the current svn works, but only with
the make.osx approach.
If I had the time I would try it again on a fresh install to see where
the bug is that prevents setup.py from working with a custom compiled
freetype and libpng but for now I am happy that it finally works :)

Kind regards,

Pim Schellart

2010/5/27 Friedrich Romstedt friedrichromst...@gmail.com:
 2010/5/27 Pim Schellart p.schell...@gmail.com:
 thank you for the tip, I'll try and see if the stable release works as
 well with this adjustment.
 The problem however was not just in compiling on Snow Leopard, but
 compiling specifically against a custom compiled 64 bit only version
 of python.
 This now works with the make.osx file and the latest svn release,
 although I agree this is an ugly solution and would prefer the same
 build system on every OS.

 Pim,

 I must confess that I'm lost a bit in all this details and all this
 patches ... I hope that I'm not alone with this ... Can you maybe give
 a short summary on the list?

 First I don't understand why you compiled a 64 bit only version of
 your Python.  I.e., what am I missing, when I compile my Python 2.6
 the usual way?  (I also have a 64 bit machine.)

 Then, your first error seems to originate from:
 src/ft2font.h:13:22: error: ft2build.h: No such file or directory

 I don't know, but I guess it's due to not finding the correct include
 directory for you self-compiled freetype2?  If it is like this, I
 fixed it in setupext.py (the darwin section, not the darwin_
 section).  The search path list is empty for darwin, and I added
 /usr/local into it.  Actually I don't remember precisely what the
 error was making me fixing this ... And it's true, I simply ignored
 the # So I'm pointing to ... comment in setupext.py ...

 Then the next error you reported was clearly related to libpng API
 change, so again nothing with 32/64 bit issues.

 So, I don't understand your conclusion that at all you have problems
 due to your 64bit-only built Python?  Sorry, maybe I miss something
 obvious?  I think people have been trusting you that it's a 64bit
 issue, and gave suggestions based on that, but maybe it isn't at all?
 Just a whacky thought!  I simply cannot find an error pointing towards
 this root!  I now went throught it again finally, and I found that
 magically John mentioned his work for 64bit Python on the make.osx
 file, and then there was some remove all -arch i386 recommendation,
 but it's all a bit unclear to me ... Sorry, I'm not an expert at all,
 my intention is just to track the problem /not to the false root/
 down.

 My explanation is: You downloaded by using make.osx an older version
 of libpng (1.2) and additionally a freetype version in local
 directory, so all the -Is are working respectively.  This solved both
 your freetype problem and your libpng problem.  I need some advice
 what else was solved by make.osx?

 Of course this path is good for creating binaries with libpng and
 freetype2 hardlinked, but I don't see the clue for your case.

 Friedrich


--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Compiling matplotlib against 64 bit python 2.6 on OSX Snow Leopard

2010-05-26 Thread Pim Schellart
Hi John and George,

I did of course rtfm :)
However when I do this for the latest svn checkout I get:

matplotlib $ PREFIX=/usr/local sudo make -f make.osx fetch deps mpl_install
Password:
python2.6 -c 'import urllib;
urllib.urlretrieve(http://www.zlib.net/zlib-1.2.3.tar.gz;,
zlib-1.2.3.tar.gz)'  \
python2.6 -c 'import urllib;
urllib.urlretrieve(http://downloads.sourceforge.net/project/libpng/libpng-stable/1.2.39/libpng-1.2.39.tar.gz;,
libpng-1.2.39.tar.gz)' \
python2.6 -c 'import urllib;
urllib.urlretrieve(http://download.savannah.gnu.org/releases/freetype/freetype-2.3.11.tar.bz2;,
freetype-2.3.11.tar.bz2)'
export PKG_CONFIG_PATH=/lib/pkgconfig \
rm -rf zlib-1.2.3 \
tar xvfj zlib-1.2.3.tar.gz \
cd zlib-1.2.3 \
export MACOSX_DEPLOYMENT_TARGET=10.6 \
export CFLAGS=-arch i386 -arch x86_64 -I/include
-I/include/freetype2 -isysroot /Developer/SDKs/MacOSX10.6.sdk \
export LDFLAGS=-arch i386 -arch x86_64 -L/lib
-syslibroot,/Developer/SDKs/MacOSX10.6.sdk \
./configure --prefix=\
MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS=-arch i386 -arch x86_64
-I/include -I/include/freetype2 -isysroot
/Developer/SDKs/MacOSX10.6.sdk LDFLAGS=-arch i386 -arch x86_64
-L/lib -syslibroot,/Developer/SDKs/MacOSX10.6.sdk make -j3 install
\
unset MACOSX_DEPLOYMENT_TARGET
tar: Unrecognized archive format: Inappropriate file type or format
tar: Error exit delayed from previous errors.
make: *** [zlib] Error 1

However I would prefer to use my independently installed freetype2 and
libpng libraries, rather than installing them again.
Does anyone have an idea where the architecture error comes from, or
how to check this?
Also, why is a separate make.osx file needed?
Could the same functionality not have been integrated into the setup.py script?
This is not a rant, just a question :)

Kind regards,

Pim Schellart

2010/5/25 George Nurser gnur...@gmail.com:
 If what John suggests doesn't work, and you really only need 64 bit,
 then the nuclear option is to remove all occurrences of
  -arch i386
 from the makefile (assuming you have a framework build) at

 /Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/config/Makefile

 This should only generate x86_64.

 Obviously, save the current one, so you can go back to it.

 HTH, George.

 On 25 May 2010 16:58, John Hunter jdh2...@gmail.com wrote:
 On Tue, May 25, 2010 at 10:45 AM, Pim Schellart p.schell...@gmail.com 
 wrote:
 Hi John and George,

 I tried both and although it now seems to find the libraries it still
 fails to link something.

 matplotlib-0.99.1.1 $ sudo python setup.py install

 According to the README I pointed you too, this isn't the command you
 should be running.  Rather,

 Example usage::

  PREFIX=/Users/jdhunter/dev make -f make.osx fetch deps mpl_install

 But I advise you work from the svn trunk if you want to go this route,
 as I have made some updates for 64bit/python2.6 OSX there

   svn co 
 https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib
 matplotlib

 JDH



--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Compiling matplotlib against 64 bit python 2.6 on OSX Snow Leopard

2010-05-25 Thread Pim Schellart
 or field ‘draw_bitmap’ declared void
src/ft2font.cpp:96: error: ‘FT_Bitmap’ was not declared in this scope
src/ft2font.cpp:96: error: ‘bitmap’ was not declared in this scope
src/ft2font.cpp:97: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:98: error: ‘FT_Int’ was not declared in this scope
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include/numpy/__multiarray_api.h:1187:
warning: ‘int _import_array()’ defined but not used
cc1plus: warning: command line option -Wstrict-prototypes is valid
for C/ObjC but not for C++
In file included from src/ft2font.cpp:1:
src/ft2font.h:13:22: error: ft2build.h: No such file or directory
src/ft2font.h:14:10: error: #include expects FILENAME or FILENAME
src/ft2font.h:15:10: error: #include expects FILENAME or FILENAME
src/ft2font.h:16:10: error: #include expects FILENAME or FILENAME
src/ft2font.h:17:10: error: #include expects FILENAME or FILENAME
src/ft2font.h:18:10: error: #include expects FILENAME or FILENAME
In file included from src/ft2font.cpp:1:
src/ft2font.h:31: error: ‘FT_Bitmap’ has not been declared
src/ft2font.h:31: error: ‘FT_Int’ has not been declared
src/ft2font.h:31: error: ‘FT_Int’ has not been declared
src/ft2font.h:77: error: expected ‘,’ or ‘...’ before ‘’ token
src/ft2font.h:77: error: ISO C++ forbids declaration of ‘FT_Face’ with no type
src/ft2font.h:83: error: expected ‘,’ or ‘...’ before ‘’ token
src/ft2font.h:83: error: ISO C++ forbids declaration of ‘FT_Face’ with no type
src/ft2font.h:122: error: ‘FT_Face’ does not name a type
src/ft2font.h:123: error: ‘FT_Matrix’ does not name a type
src/ft2font.h:124: error: ‘FT_Vector’ does not name a type
src/ft2font.h:125: error: ‘FT_Error’ does not name a type
src/ft2font.h:126: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.h:126: error: template argument 1 is invalid
src/ft2font.h:126: error: template argument 2 is invalid
src/ft2font.h:127: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.h:127: error: template argument 1 is invalid
src/ft2font.h:127: error: template argument 2 is invalid
src/ft2font.h:133: error: ‘FT_BBox’ does not name a type
src/ft2font.cpp:45: error: ‘FT_Library’ does not name a type
src/ft2font.cpp:96: error: variable or field ‘draw_bitmap’ declared void
src/ft2font.cpp:96: error: ‘FT_Bitmap’ was not declared in this scope
src/ft2font.cpp:96: error: ‘bitmap’ was not declared in this scope
src/ft2font.cpp:97: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:98: error: ‘FT_Int’ was not declared in this scope
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include/numpy/__multiarray_api.h:1187:
warning: ‘int _import_array()’ defined but not used
lipo: can't figure out the architecture type of: /var/tmp//ccrnooej.out
error: command 'gcc' failed with exit status 1

It seems that freetype2 is not found which I tried to remedy by adding
the following lines to the check_freetype function in setupext.py
module.include_dirs.append('/usr/local/include')
module.include_dirs.append('/usr/local/include/freetype2')
This removes the warning about the header files but the compiling
error remains (the pkg-config warning also remains).

Any suggestions?

Kind regards,

Pim Schellart

--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Logscale on polar plot and alpha as an array

2010-05-06 Thread Pim Schellart
Dear Michael,

thank you for the tips.
The color solution works fine but the logarithmic scale has some issues.
It is displayed once but I get the following warning:

/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/axes.py:1091:
UserWarning: aspect is not supported for Axes with xscale=linear,
yscale=log
  % (xscale, yscale))

the aspect ratio is also clearly wrong and my polar plot looks like an oval.
I think this warning is not very accurate since for a polar plot the
`y' axis means r and this is supposed to be the same in all (real x,y)
directions.
Also it does not seem to remember it's state (which may be due to me
calling ax.clear() to clear the plot when drawing a new batch of
points) and reverts to lineair.
I use the Qt Agg backend and performance seems to be ok.
I would like to fix the axis and not redraw it on every plot (perhaps
using blitting) if possible.

Kind regards,

Pim Schellart

2010/5/4 Michael Droettboom md...@stsci.edu:
 Pim Schellart wrote:

 Hi Everyone,

 I am currently building an interactive display using matplotlib but I
 need the following two options.
 1. Setting the r axis of a polar plot to logaritmic scale.


 axis.set_rscale('log')

 2. Setting alpha for each point individually (preferably by giving
 alpha an array of the same length as the data containing a value
 between zero and one).
 Is this currently possible and if not which alternative approach do
 you recommend.


 You can't give alpha an array, but you can create an Nx4 RGBA array (which
 will let you control the color individually, too).  For example:

 r = np.arange(0, 3.0, 0.01)
 theta = 2*np.pi*r
 c = np.zeros((len(r), 4))
 c[:,0:3] = (1, 0, 0) # red
 c[:,3] = np.arange(0, 1.0, 1.0 / len(r))
 ax.scatter(theta, r, c=c, lw=0)

 The display needs to plot about a thousand points (using scatter at
 the moment) roughly updating every second with older points fading
 away (lower value of alpha).


 Scatter is pretty heavily optimized in the *Agg backends, but not so much in
 the others.  Make sure you are using Agg and IIRC this level of performance
 should be possible (depending on machine etc., of course).

 Mike


 --
 Michael Droettboom
 Science Software Branch
 Operations and Engineering Division
 Space Telescope Science Institute
 Operated by AURA for NASA



--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Logscale on polar plot and alpha as an array

2010-05-04 Thread Pim Schellart
Hi Everyone,

I am currently building an interactive display using matplotlib but I
need the following two options.
1. Setting the r axis of a polar plot to logaritmic scale.
2. Setting alpha for each point individually (preferably by giving
alpha an array of the same length as the data containing a value
between zero and one).
Is this currently possible and if not which alternative approach do
you recommend.
The display needs to plot about a thousand points (using scatter at
the moment) roughly updating every second with older points fading
away (lower value of alpha).

Kind regards,

Pim Schellart

--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] User interface example malloc error and possible installation bug

2009-09-02 Thread Pim Schellart
 in malloc_error_break to debug
Python(64196,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(64196,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(64196,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(64196,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(64196,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(64196,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Segmentation fault

Does anyone know what might be wrong here?

Kind regards,

Pim Schellart

P.S. I tried the same with a MacPython 2.6 installation and get
similar errors (see previous post).

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Drawing on a Tkinter canvas (malloc errors in example)

2009-09-01 Thread Pim Schellart
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
Python(17024,0xa0427720) malloc: *** error for object 0xa00726d8:
Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug

Otherwise the example works.
Can anyone tell me what's wrong?

Kind regards,

Pim Schellart

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration

[Matplotlib-users] pyplot should have a adjust_axes() function similar to adjust_subplots() (or not?)

2009-08-07 Thread Pim Schellart
Hi Everybody,

Before I file a bug report / feature request I would like your input.
I have large numbers displayed slanted for the axis tick labels.
This causes the tick labels as well as the xlabel to fall of the figure.
I know I can adjust the spacing by creating an axes instance manually
but this requires me to step out of the normal pyplot/pylab workflow.
Since subplots have a pyplot function adjust_subplots() and Subplot is
nothing more (as far as I can tell) than more specialized Axes
instance I believe there should also be a function like adjust_axes()
which behaves in a similar way.
What are your thoughts about this?

Kind regards,

Pim Schellart

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Some questions about text

2009-08-04 Thread Pim Schellart
Hi Everyone,

I have been using matplotlib for quite some time now.
However I have a few questions regarding the handling of text in title
and axis labels.
When creating an image using subplot the title and axis label text
tends to overlap.
Is there an option to prevent this.
Of course one can do this manually but this requires inspection of the
image and adjustment.
It would be very helpful if this is done automatically (even better
when it would be the default option).
Furthermore the x-, y-axis ticks are automatically displayed with some
part stripped which is displayed separately as a number to be added.
I would really like to have the following options.
1. option to force display of the full number on each tick (with the
option to display the numbers at an angle to prevent overlapping).
2. option to specify the number to be subtracted manually (to make it
a round number).
3. option to specify the precision or scientific notation of both the
ticks and the number to be added.
Is this currently possible?
And if not would you be willing to add these options?
In my humble opinion the first option should at least be part of the
pyplot commands as it is needed often by me and my colleagues.

Kind regards,

Pim Schellart

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Errorbar function should only plot datapoints by default.

2009-04-16 Thread Pim Schellart

Dear matplotlib users/developers,

I recently noticed that the errorbar funciton in the pyplot module  
changed it's default setting to fmt=-.
This is a bit strange since this function is primarily used to display  
individual data points with measurement errors, drawing a line  
connecting the datapoints is not a common procedure and normally only  
done with a fit to the data.

I think it makes much more sense if the default behaviour was fmt=+.

Kind regards,

Pim Schellart

smime.p7s
Description: S/MIME cryptographic signature
--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Display full number in ticks

2009-04-10 Thread Pim Schellart

Dear Matplotlib users/developers,

The default behaviour of matplotlib.pyplot is to display large (e.g.  
2452298.7554547498 as a small number 0.25545474980026484 +  
2.4522985e6) I would like to be able to do one of the following.


- Set the number to be subtracted manually (I know I can just subtract  
a number from the input array but then matplotib still subtracts  
another number if it thinks it is still to big to display).
- Force matplotlib to display the full number (and display the numbers  
slanted so they do not overlap). This is my preferred option. I would  
like to see this as a simple option in pyplot, perhaps as an extra  
parameter in the xticks/yticks functions (for the y axis the numbers  
don't need to be slanted).


I tried a manual formatter but I think there should be an easy way to  
set this in pyplot and I could not figure out how to display the tick  
numbers slanted.


Kind regards,

Pim Schellart

P.S. In the example number 2452298.7554547498 I also need to subtract  
244 in order for the plot to render correctly. Otherwise all y  
values end up at the same x position which is a bug in the latest  
matplotlib release because it did not happen before.

smime.p7s
Description: S/MIME cryptographic signature
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users