Hi all,
I'm going crazy with ticklabels positions, I just want to update yticklabels
but nothing changes :
>tlist=gca().get_yticklabels()
>tlist[1].get_position()
Out [571]:(0.0, 1.0)
>tlist[1].set_position((0.0, 2.0))
>draw()
>tlist[1].get_position()
Out [574]:(0.0, 1.
Hi,
How do I scale an image of a plot so that it fits a landscape A4 page?
How do you move the position of the x and y labels on the axis? How do you
increase the font size of the numbers on each axis?
Regards,
Jonathan Makem
School of Mechanical and Aerospace Engineering
Ashby Buildin
william ratcliff wrote:
> I have a question about building from source on windows:
> I have installed freetype2 and libpng, for zlib, I have a collection
> of dlls,
> But, where do I place these so that matplotlib can find them (for the
> include files, libraries, etc. Are there any that I have
I tried the new setup.py script and found:
C:\matplotlib\trunk\matplotlib>c:\python25\python.exe setup.py build
BUILDING MATPLOTLIB
matplotlib: 0.90.1 (r3634)
python: 2.5.1 (r251:54863, Apr 18
Ok--that did fix the expandtabs bug! I can now see where there is a failure
in the build:
Found executable C:\Python24\Enthought\MingW\bin\g++.exe
win32_static\lib/libfreetype.a(ftgzip.o):ftgzip.c:(.text+0x160): undefined
refer
ence to `inflateInit2_'
win32_static\lib/libfreetype.a(ftgzip.o):ftgz
Is it possible that the freetype library in win32_static is out of date?
Cheers,
William
On 8/1/07, william ratcliff <[EMAIL PROTECTED]> wrote:
>
> Ok--that did fix the expandtabs bug! I can now see where there is a
> failure in the build:
>
> Found executable C:\Python24\Enthought\MingW\bin\g++
That's my bad from my changes to setup.py yesterday.
Please update from SVN and try again.
Cheers,
Mike
william ratcliff wrote:
> I tried the new setup.py script and found:
>
> C:\matplotlib\trunk\matplotlib>c:\python25\python.exe setup.py build
>
It looks like I screwed up the order of libraries between freetype2 and
zlib. (It was updated to use pkg-config to determine the freetype
dependencies where possible, but that inadvertently broke Windows.)
Please 'svn up' and try again. Sorry for the inconvience.
Cheers,
Mike
william ratclif
william ratcliff wrote:
> A bit strange:
>
> gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Iwin32_static\include
> -I. -Ic:\python25\include -Ic:\python25\PC -c src/ft2font.cpp -o
> build\temp.win32-2.5\Release\src\ft2font.o
> g++ -mno-cygwin -shared build\temp.win32- 2.5\Release\src\ft2font.o
A bit strange:
gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Iwin32_static\include -I.
-Ic:\python25\include -Ic:\python25\PC -c src/ft2font.cpp -o
build\temp.win32-2.5\Release\src\ft2font.o
g++ -mno-cygwin -shared
build\temp.win32-2.5\Release\src\ft2font.obuild\temp.win32-
2.5\Release\src\mpluti
If I revert back to 3645, it builds and I can install it--but then I run
into
the original error I was having where I couldn't run the demos:
C:\matplotlib\trunk\matplotlib\examples>c:\python25\python.exe
wxcursor_demo.py
Traceback (most recent call last):
File "wxcursor_demo.py", line 6, in
Thanks! I think that:
"found, but unknown version" would be a bit better. So, it means that it
found libpng and freetype. It says that it didn't vind wx-python--but is
that only relevant for versions of wxpython below 2.8 I am running
C:\Python25\Lib\site-packages\wx-2.8-msw-unicode, and there
william ratcliff wrote:
>
> Thanks! I think that:
> "found, but unknown version" would be a bit better.
I'll fix that.
> So, it means that it found libpng and freetype. It says that it
> didn't vind wx-python--but is that only relevant for versions of
> wxpython below 2.8
Yes, the message sho
On 8/1/07, william ratcliff <[EMAIL PROTECTED]> wrote:
> from matplotlib.mathtext import math_parse_s_ft2font
> File
> "c:\python25\Lib\site-packages\matplotlib\mathtext.py",
> line 1182, in dule>
> class Vlist(List):
> File
> "c:\python25\Lib\site-packages\matplotlib\mathtext.py",
> l
william ratcliff wrote:
> If I revert back to 3645, it builds and I can install it--but then I
> run into
> the original error I was having where I couldn't run the demos:
>
> File "c:\python25\Lib\site-packages\matplotlib\mathtext.py", line
> 1189, in Vli
> st
> def vpack(self, h=0., m='addi
Do you get any output (e.g. a traceback) or it just goes poof? (You may
need to run it from the command line if you aren't already).
Cheers,
Mike
william ratcliff wrote:
> Now, it no longer gives rise to the previous error, but python crashes
> when I run the embedding_in_wx4.py example.
>
>
On 8/1/07, Michael Droettboom <[EMAIL PROTECTED]> wrote:
> >> "c:\python25\Lib\site-packages\matplotlib\mathtext.py",
> >> line 1189, in Vli
> >> st
> >> def vpack(self, h=0., m='additional', l=float('inf')):
> >> ValueError: invalid literal for float(): inf
> I'm not opposed to importing mat
3608 also runs into problems of linking with the freetype libraries. Some
much older versions (say in the 3500s) compile, but still crash
python2.5.1with errors like:
C:\matplotlib\trunk\matplotlib\examples>c:\python25\python.exe
embedding_in_wx4.
py
embedding_in_wx4.py:24: DeprecationWarning: Th
I'm going to summarize, just to make sure I have everything straight.
1) HEAD doesn't build (you get lots of "undefined reference to
`_imp__FT_Done_FreeType'")
2) revision 3645 (yesterday before my setup.py changes), builds, but you
got the float('inf') error (which is now fixed)
3) much earlier
Now, it no longer gives rise to the previous error, but python crashes when
I run the embedding_in_wx4.py example.
William
On 8/1/07, John Hunter <[EMAIL PROTECTED]> wrote:
>
> On 8/1/07, Michael Droettboom <[EMAIL PROTECTED]> wrote:
>
> > >> "c:\python25\Lib\site-packages\matplotlib\mathtext.py"
John Hunter wrote:
> On 8/1/07, william ratcliff <[EMAIL PROTECTED]> wrote:
>
>> from matplotlib.mathtext import math_parse_s_ft2font
>> File
>> "c:\python25\Lib\site-packages\matplotlib\mathtext.py",
>> line 1182, in > dule>
>> class Vlist(List):
>> File
>> "c:\python25\Lib\site-pac
I run from the command line. Essentially, it just goes poof. There is no
output--it generates an error report (as usual in windows)--but nothing pops
out that I can understand...
Cheers,
William
On 8/1/07, Michael Droettboom <[EMAIL PROTECTED]> wrote:
>
> Do you get any output (e.g. a traceback
Let me try this.
On 8/1/07, Michael Droettboom <[EMAIL PROTECTED]> wrote:
>
> I'm going to summarize, just to make sure I have everything straight.
>
> 1) HEAD doesn't build (you get lots of "undefined reference to
> `_imp__FT_Done_FreeType'")
> 2) revision 3645 (yesterday before my setup.py chang
Ok--I reverted to head and it fixed the undefined references error and
everything seems to build normally. But, if I try to run the
embedding_in_wx4.py example, it crashes python 2.5.1
If I install from the .msi then things do work in python 2.5.1, so it must
be something with the build.
I also
I also looked at the log_bar.py example and found that it's also at the
pylab.show() command that it dies
On 8/1/07, william ratcliff <[EMAIL PROTECTED]> wrote:
>
> Ok--I reverted to head and it fixed the undefined references error and
> everything seems to build normally. But, if I try to run t
william ratcliff wrote:
> Ok--I reverted to head and it fixed the undefined references error and
> everything seems to build normally.
Well, that's partially good news...
> But, if I try to run the embedding_in_wx4.py example, it crashes
> python 2.5.1
>
> If I install from the .msi then things d
Yes. It crashes at the savefig line.
On 8/1/07, Michael Droettboom <[EMAIL PROTECTED]> wrote:
>
> william ratcliff wrote:
> > Ok--I reverted to head and it fixed the undefined references error and
> > everything seems to build normally.
> Well, that's partially good news...
> > But, if I try to r
It's probably something in C++ backend code for Agg. Maybe someone else
on this list knows the last time it built and worked on Windows and can
track down a change that may have broken it.
It will probably take some work with a debugger to figure out where it
is crashing. I'd be completely gu
No, thank you for trying so hard.
I just tried running setup.py with VERBOSE=True on a clean installation.
when it crashes I get:
LazyValue::init_type
does this mean anything to anyone?
William
On 8/1/07, Michael Droettboom <[EMAIL PROTECTED]> wrote:
>
> It's probably something in C++ backend c
Dear all,
I'm an astronomy major college student in Beijing who recently switched to
Python for most of his homework in numeric analysis and data visualization
(and really loving Python). I run Python 2.5 with NumPy, SciPy
and matplotlib on a Fedora 7 Linux system. The matplotlib on my computer wa
[EMAIL PROTECTED] wrote:
> I'm an astronomy major college student in Beijing who recently
> switched to Python for most of his homework in numeric analysis and
> data visualization (and really loving Python). I run Python 2.5
> with NumPy, SciPy and matplotlib on a Fedora 7 Linux system. The
>
This also occurs when I run
import matplotlib
matplotlib.use("Agg")
from pylab import *,
then it crashes with LazyValue::init_type
On 8/1/07, william ratcliff <[EMAIL PROTECTED]> wrote:
>
> No, thank you for trying so hard.
>
> I just tried running setup.py with VERBOSE=True on a clean installati
Jonathan Makem wrote:
>How do I scale an image of a plot so that it fits a landscape A4
> page?
What back-end are you using?
> How do you increase the font size of the numbers on each axis?
This page may be helpful for some of these questions:
http://www.scipy.org/Cookbook/Matplotlib/Adjus
Dear all: The first problem was fixed by upgrading to a recent version of
ipython. As for the second (IPP stuff) warning ... still pending but doesn't
doing harm currently.
Thank you all.
Cong.
On 8/2/07, Christopher Barker <[EMAIL PROTECTED]> wrote:
>
> [EMAIL PROTECTED] wrote:
> > /usr/lib/py
[EMAIL PROTECTED] wrote:
Dear all: The first problem was fixed by upgrading to a recent version
of ipython. As for the second (IPP stuff) warning ... still pending but
doesn't doing harm currently.
A question to the wxPython mailing list may be in order for that one. AS
a little test, trying
william ratcliff wrote:
> This also occurs when I run
> import matplotlib
> matplotlib.use("Agg")
> from pylab import *,
> then it crashes with LazyValue::init_type
That's in the _transforms module. You might try with
matplotlib.use("Template") and see if it still crashes--not that I would
know
36 matches
Mail list logo