[Matplotlib-users] Documentation

2009-09-11 Thread Sebastian Pająk
Hi

Where can I download current mpl documentation in HTML format? Because
there is now way to build it under win32

--
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


Re: [Matplotlib-users] best format for MS word?

2009-09-02 Thread Sebastian Pająk
I had similar problem
try hi-res png images at 300dpi w/o transparency (ms cannot handle
transp. png correctly).
ms word shows png little blury, but after printing (to PDF for
example) images are sharp as knife



2009/9/2 Shixin Zeng zeng.shi...@gmail.com:
 OK,

 I'm attaching a file that converts svg to emf, which is based on
 librsvg and cairo.

 I've spent the all night working on this, but the result is still not
 satisfying. The converted emf file is even worse than the png file
 produced from matplotlib. I'm not sure if it's because I did something
 wrong or it's because of the limitation of this method itself. I'm
 posting here in hope of some one with more knowledge would enlighten
 me. Thanks.

 To build the problem, you need to download librsvg and it's dependency
 from http://ftp.gnome.org/pub/gnome/binaries/win32/

 Best Regards

 Shixin Zeng



 On Tue, Sep 1, 2009 at 6:43 PM, Shixin Zengzeng.shi...@gmail.com wrote:
 Hi,

 Could someone tell me what's the best format that matplotlib can
 produce for insertion to MS word? I'm working on a paper using MS
 word. I used matplotlib to produce the pictures in png' format, but
 my professor doesn't satisfy with the quality of the pictures, he asks
 me to do it in emf format, but I can't get an emf output from
 matplotlib. While other vector formats that are supported by
 matplotlib are not supported by MS word. I have worked days on
 producing this pictures, I don't want to abandon them just because
 they can't be imported to MS word. I really like to produce my
 pictures by using matplotlib, but I can't really throw away MS word. I
 also tried pstoedit to try to convert to emf from the ps, but it
 doesn't work on my system due to some weired missing procedure entry
 points in imagick dll.

 I'm kinda in a hurry, any help would be greatly appreciated.

 Best Regards

 Shixin Zeng


 --
 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



--
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] After update to 0.99.0 - mpl doesn't work

2009-08-29 Thread Sebastian Pająk
Hi
When I try to import anything from mpl, Python's interpreter exits
without any error.
This happens after the 0.99.0 upgrade. This is example session:

d:\python
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit
(Intel)] on win32
Type help, copyright, credits or license for more information.
 import matplotlib.pyplot as plt

matplotlib data path D:\msys\opt\python\lib\site-packages\matplotlib\mpl-data
loaded rc file D:\msys\etc\.matplotlib\matplotlibrc
matplotlib version 0.99.0
verbose.level debug-annoying
interactive is False
units is False
platform is win32
loaded modules: ['numpy.lib._iotools', 'xml.sax.urlparse',
'distutils', 'functools', 'matplotlib.matplotlib', 'subprocess', 'gc',
'matplotlib.tempfile', 'distutils.sysconfig', 'ctypes._endian',
'encodings.encodings', 'matplotlib.colors', 'msvcrt',
'numpy.testing.sys', 'numpy.core.info', 'xml', 'numpy.fft.types',
'numpy.ma.operator', 'numpy.ma.cPickle', 'matplotlib.copy',
'numpy.random.info', 'tempfile', 'base64', 'numpy.linalg',
'matplotlib.threading', 'numpy.testing.operator', 'imp',
'numpy.testing', 'collections', 'numpy.core.umath', '_struct',
'distutils.types', 'numpy.lib.numpy', 'numpy.core.scalarmath',
'zipimport', 'string', 'matplotlib.subprocess', 'numpy.testing.os',
'matplotlib.locale', 'numpy.lib.arraysetops',
'numpy.testing.unittest', 'numpy.lib.math', 'textwrap',
'matplotlib.__future__', 'ssl', 'numpy.testing.re', 'itertools',
'numpy.version', 'numpy.lib.re', 'distutils.re',
'ctypes.os', 'numpy.core.os', 'numpy.lib.type_check',
'numpy.lib.__builtin__', 'signal', 'numpy.lib.types',
'numpy.lib._datasource', 'random', 'threading', 'token',
'numpy.fft.fftpack_lite', 'matplotlib.cbook', 'ctypes.ctypes',
'xml.sax.xmlreader', 'numpy.__builtin__', 'dis', 'distutils.version',
'cStringIO', 'numpy.ma.core', 'encodings.cp852',
'matplotlib.StringIO', 'numpy.ma.extras', 'locale',
'numpy.add_newdocs', 'numpy.lib.getlimits', 'xml.sax.saxutils',
'matplotlib.numpy', 'numpy.lib.sys',
'encodings', 'numpy.ma.itertools', 'StringIO', 'numpy.lib.io', 'abc',
'numpy.ctypes', 'numpy.testing.decorators', 'matplotlib.warnings',
'matplotlib.string', '_subprocess', 'urllib', 'matplotlib.sys', 're',
'numpy.lib._compiled_base', 'ntpath', 'numpy.random.mtrand', 'math',
'numpy.fft.helper', 'numpy.ma.warnings', 'inspect',
'numpy.ma.inspect', 'UserDict', 'numpy.lib.function_base',
'distutils.os', 'matplotlib', 'numpy.fft.numpy', 'xml.sax.codecs',
'exceptions', 'numpy.lib.info', 'numpy.core.numerictypes', 'ctypes',
'numpy.lib.warnings', 'ctypes.struct', 'codecs', 'numpy.core._sort',
'numpy.os', 'struct', '_functools', '_locale',
'matplotlib.sre_constants', 'matplotlib.os', 'thread',
'numpy.lib.ufunclike', 'numpy.core.memmap', 'traceback', 'weakref',
'numpy.core._internal', 'numpy.fft.fftpack', 'opcode',
'numpy.linalg.lapack_lite', 'distutils.sys', 'os',
'numpy.lib.itertools', '__future__', '_collections', 'xml.sax.types',
'matplotlib.traceback', '_sre', 'unittest', 'numpy.core.sys',
'numpy.random', 'numpy.linalg.numpy', '__builtin__',
'numpy.lib.twodim_base', 'matplotlib.re', 'numpy.core.cPickle',
'operator', 'numpy.core.arrayprint', 'distutils.string',
'numpy.lib.arrayterator',
'numpy.numpy', 'ctypes.sys', 'matplotlib.errno',
'numpy.lib.financial', 'numpy.core.multiarray', 'errno', '_socket',
'binascii', 'sre_constants', 'datetime', 'numpy.ma',
'xml.sax.handler', 'os.path',
'tokenize', 'numpy.lib.stride_tricks', 'numpy.core.numpy', 'numpy',
'_warnings', 'matplotlib.types', 'numpy.core.defmatrix', 'xml.sax.os',
'cPickle', 'encodings.__builtin__', 'matplotlib.xml', '_codecs',
'numpy.lib.operator', 'numpy.__config__', 'matplotlib.pyparsing',
'nturl2path', 'numpy.ma.numpy', 'copy', 'numpy.core.re', 'socket',
'numpy.core.fromnumeric', 'numpy.ctypeslib', 'keyword',
'numpy.lib.scimath', 'numpy.fft', 'numpy.lib', 'numpy.random.numpy',
'encodings.aliases', 'matplotlib.distutils', 'fnmatch', 'sre_parse',
'numpy.core.ctypes', 'distutils.distutils', 'copy_reg', 'sre_compile',
'xml.sax', '_random', 'numpy.lib.__future__', 'site',
'numpy.lib.polynomial', 'encodings.cp1250',
'numpy._import_tools', '__main__', 'numpy.fft.info',
'numpy.core.records', 'shutil', 'numpy.lib.cPickle', 'numpy.sys',
'matplotlib.weakref', 'xml.sax.urllib', 'numpy.testing.traceback',
'strop', 'numpy.testing.numpytest', 'numpy.core.numeric',
'numpy.linalg.info', 'encodings.codecs', 'ctypes._ctypes', '_abcoll',
'numpy.core', 'matplotlib.rcsetup', 'matplotlib.time', 'nt',
'xml.sax._exceptions', 'genericpath', 'stat', '_ssl',
'numpy.lib.index_tricks', 'warnings', 'numpy.lib.utils',
'numpy.core.defchararray', '_ctypes', 'numpy.lib.shape_base',
'numpy.core.types', 'sys', 'numpy.core.warnings',
'numpy.core.__builtin__', 'xml.sax.sys', 'numpy.lib.format',
'numpy.lib.os', 'numpy.testing.nosetester', 'types',
'numpy.lib.shutil', 'matplotlib.datetime',
'matplotlib.fontconfig_pattern', '_weakref',
'distutils.errors', 'urlparse', 'linecache', 'matplotlib.shutil',
'numpy.lib.cStringIO', 'time', 

[Matplotlib-users] ImportError: No module named _backend_gdk

2009-07-30 Thread Sebastian Pająk
Hello
I don't know why, but after switching from python2.5 to python2.6 I
cannot even launch matplotlib (matplotlib-0.98.5.3.win32-py2.6.exe).
This is what I get:

Traceback (most recent call last):
  File stdin, line 1, in module
  File D:\msys\opt\python\lib\site-packages\pylab.py, line 1, in module
from matplotlib.pylab import *
  File D:\msys\opt\python\lib\site-packages\matplotlib\pylab.py,
line 253, in module
from matplotlib.pyplot import *
  File D:\msys\opt\python\lib\site-packages\matplotlib\pyplot.py,
line 75, in module
new_figure_manager, draw_if_interactive, show = pylab_setup()
  File D:\msys\opt\python\lib\site-packages\matplotlib\backends\__init__.py,
line 25, in pylab_setup
globals(),locals(),[backend_name])
  File 
D:\msys\opt\python\lib\site-packages\matplotlib\backends\backend_gtkagg.py,
line 10, in module
from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK,
FigureCanvasGTK,\
  File 
D:\msys\opt\python\lib\site-packages\matplotlib\backends\backend_gtk.py,
line 25, in module
from matplotlib.backends.backend_gdk import RendererGDK, FigureCanvasGDK
  File 
D:\msys\opt\python\lib\site-packages\matplotlib\backends\backend_gdk.py,
line 29, in module
from matplotlib.backends._backend_gdk import pixbuf_get_pixels_array
ImportError: No module named _backend_gdk


I have PyGTK installed. What can be the problem?
win xp sp3

--
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] logarithmic scale of colorbar with ticks and custom labels

2009-05-07 Thread Sebastian Pająk
Hello

I have a contour plot with specified number of levels (isolines):

lev = array([2,3,5,7,10,13,17,21,26,32,42,62,80,100,120,140,180])

to have a log z axis I put:

from matplotlib import colors
contourf(x1, y1, z1, lev, norm=colors.LogNorm(lev[0],lev[len(lev)-1]))

now, to get colorbar in log scale:

from matplotlib.ticker import LogLocator, LogFormatter
l_f = LogFormatter(10, labelOnlyBase=False)
cbar = colorbar(format = l_f)

But the colorbar doesn't have all tick's labels specified in lev
variable. Ticks are placed correctly on the cbar, but only every
second tick has a text label (yes 2, 5, 10 ... etc). What should I do
to have ALL levels on colorbar labeled?

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] logarithmic scale of colorbar with ticks and custom labels

2009-05-07 Thread Sebastian Pająk
OK works. I didn't notice the ticks arg. Thanks again

Sebastian

2009/5/7 Jae-Joon Lee lee.j.j...@gmail.com:
 http://matplotlib.sourceforge.net/api/figure_api.html?highlight=colorbar#matplotlib.figure.Figure.colorbar

 cbar = colorbar(ticks=lev, format = l_f)

 -JJ


 On Wed, May 6, 2009 at 3:28 PM, Sebastian Pająk spcon...@gmail.com wrote:
 Hello

 I have a contour plot with specified number of levels (isolines):

 lev = array([2,3,5,7,10,13,17,21,26,32,42,62,80,100,120,140,180])

 to have a log z axis I put:

 from matplotlib import colors
 contourf(x1, y1, z1, lev, norm=colors.LogNorm(lev[0],lev[len(lev)-1]))

 now, to get colorbar in log scale:

 from matplotlib.ticker import LogLocator, LogFormatter
 l_f = LogFormatter(10, labelOnlyBase=False)
 cbar = colorbar(format = l_f)

 But the colorbar doesn't have all tick's labels specified in lev
 variable. Ticks are placed correctly on the cbar, but only every
 second tick has a text label (yes 2, 5, 10 ... etc). What should I do
 to have ALL levels on colorbar labeled?

 --
 The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
 production scanning environment may not be a perfect world - but thanks to
 Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
 Series Scanner you'll get full speed at 300 dpi even with all image
 processing features enabled. http://p.sf.net/sfu/kodak-com
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users



--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] logarithmic scale of colorbar with ticks and custom labels

2009-05-06 Thread Sebastian Pająk
Hello

I have a contour plot with specified number of levels (isolines):

lev = array([2,3,5,7,10,13,17,21,26,32,42,62,80,100,120,140,180])

to have a log z axis I put:

from matplotlib import colors
contourf(x1, y1, z1, lev, norm=colors.LogNorm(lev[0],lev[len(lev)-1]))

now, to get colorbar in log scale:

from matplotlib.ticker import LogLocator, LogFormatter
l_f = LogFormatter(10, labelOnlyBase=False)
cbar = colorbar(format = l_f)

But the colorbar doesn't have all tick's labels specified in lev
variable. Ticks are placed correctly on the cbar, but only every
second tick has a text label (yes 2, 5, 10 ... etc). What should I do
to have ALL levels on colorbar labeled?

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users