?
Werner
--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
/
Werner
--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
.
http://pillow.readthedocs.org/porting-pil-to-pillow.html
Werner
--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications
/
wxPython_Phoenix
Werner
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first
. Is there anything wrong using sys???:
import sys
if sys.version 3.0:
key = unichr(event_key)
else:
key = chr(event_key)
Thanks,
Using 'six' for just the above case is definitely overkill, but it has
many more goodies in it to make py2/py3 single source code easier.
Werner
tips on what I may do wrong or what else I need to
do to have things show correctly.
Werner
P.S.
This is with MPL 1.3.1, with numpy 1.6.1 on Py2.7 32bit on Win7
--
CenturyLink Cloud: The Leader in Enterprise Cloud
Hi Antonio,
(forgot to copy list - for archive)
On 02/10/2013 17:05, António de Sousa wrote:
Hi Werner,
thank you for your reply.
Yes, the path is C:\Python26\lib\
Can it be that the error message is coming from a different location?
Meaning that there may be duplicate files (e.g. python
in tandem...
agg.bufferNEW_rgba or something along those lines and then GUI
frameworks could move when they want/can, or would that create to big of
an overhead on MPL side.
Werner
--
Get 100% visibility into Java/.NET code
Hi Michael,
On 26/04/2013 14:40, Michael Droettboom wrote:
On 04/26/2013 02:57 AM, Werner F. Bruhin wrote:
Hi,
Anyone can provide some info on what agg.buffer_rgba returns and maybe
even some suggestion on how to resolve this issue in the wxagg backend.
It returns a Python buffer object
Hi,
Anyone can provide some info on what agg.buffer_rgba returns and maybe
even some suggestion on how to resolve this issue in the wxagg backend.
Thanks
Werner
P.S.
The archive on Sourceforge for this list stops in June 2012, noticed
this as I wanted to check if there are answers I didn't
'buffer'
agg
matplotlib.backends.backend_agg.RendererAgg instance at 0x04BA0670
If I don't use memoryview (which would probably be preferred) I get
the following exception.
Can someone help us figure this one out.
Thanks
Werner
TypeError: Bitmap.FromBufferRGBA(): argument 3 has unexpected type
:
self.bitmap = wx.Bitmap(w, h)
else:
self.bitmap = wx.EmptyBitmap(w, h)
But now I am stuck on the following exception and I haven't found a
solution to this yet - any pointers would be very welcome.
Werner
AttributeError: 'BaseApp' object has no attribute 'ProcessIdle'
File c:\dev
) and the
setup.py script I used to generated the py2exe'd version.
The py2exe'd version works without problem on my Intel Core i5 but
crashes on an AMD Athlon 2400+ equiped PC.
Anyone has some tips, ideas on how to track this down?
Best regards
Werner
On 11/03/2013 20:02, Werner F. Bruhin wrote:
Hi
across some similar crash with py2exe and mpl when one
creates a Figure?
Any tips on how to further narrow this down or even better on what is
needed to fix it are very welcome.
Best regards
Werner
--
Symantec Endpoint
On 18/02/2010 22:41, Werner F. Bruhin wrote:
Using numpy with /arch nosse solved the issue.
Probably OT here, but does anyone know if numpy will in the future be
able to dynamically switch on/off the SSEx support?
I am running again into crashes with matplotlib/numpy on Windows XP
running
the cause of this error be?
Werner
--
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud
Finally figured it out after pulling some hear.
Using axes.annotate instead of axes.text worked for me, i.e.
something like this:
axes.annotate(hstr, xy=(xCorr, yCorr), xytext=(0, 5), textcoords='offset
points')
instead of what I did originally.
Werner
On 08/11/2010 16:21, Werner F. Bruhin
push me in the right direction.
Werner
--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book Blueprint to a
Billion shares his insights and actions
On 19/05/2010 20:45, David wrote:
Werner F. Bruhinwerner.bru...@... writes:
On 19/05/2010 19:55, David Grudoski wrote:
I'm trying to build an executable using
PY2EXE; running Python 2.5.2 and wxPython 2.8.10.1 and MatplotLib 0.99.0
I tried using the setup.py from
the chance to read it, anybody know how to stop the window from
closing so quickly
You have probably set wx.App(redirect=True), change to False and
then you should see the exception in your IDE.
Werner
:
http://www.py2exe.org/index.cgi/MatPlotLib
Werner
--
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib
Looking at set_ticks_position doc it says that default will reset
ticks to be on both sides and labels on left, and set_label_position
only allows for left or right.
Is there any way to have ticks and ticks labels on both left and right?
Werner
as you are using matplotlib 0.99.
Werner
'''
Created on 25/01/2010
@author: kha
'''
from distutils.core import setup
import py2exe
import shutil
# We need to import the glob module to search for all files.
import glob
# Remove the build and dist folder, old stuff in there is bitting me once
On 15/03/2010 14:37, Kim Hansen wrote:
Hi Werner
2010/3/15 Werner F. Bruhin werner.bru...@free.fr
mailto:werner.bru...@free.fr
Hi Kim,
Changing the line 560 in mathtext.py from:
font = FT2Font(basename)
to:
font = FT2Font(str(basename))
Fixed
at (note that the client is
non technical and I have no access to his machine).
Werner
--
Download Intelreg; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine
On 18/02/2010 15:12, Werner F. Bruhin wrote:
Hi Everyone,
On 08/10/2009 06:54, ross.wil...@ga.gov.au wrote:
Hi Listers,
I recently installed matplotlib 0.99.1 hoping to use mplot3d. However, when
doing 'from mpl_toolkits.mplot3d import Axes3D' python itself crashes.
Reinstalling
Using numpy with /arch nosse solved the issue.
Probably OT here, but does anyone know if numpy will in the future be
able to dynamically switch on/off the SSEx support?
Werner
On 18/02/2010 17:31, Werner F. Bruhin wrote:
On 18/02/2010 15:12, Werner F. Bruhin wrote:
Hi Everyone,
On 08
Installed Py 2.6.3 and I don't see the issue there, but not all
libraries I use are on 2.6 yet.
So, I thought lets install Python(x, y) and give this a try, but I can't
find a Python 2.5.x version of it - is this still available?
Werner
P.S.
Will totally de-install 2.5 again and try once more
with
Python I see the error again.
What could cause this? Maybe one of the msvcp71.dll is incompatible
with stuff already loaded by Python?
Will keep experimenting and see if I can get Boa to work with mpl
Werner
--
Come
Werner F. Bruhin wrote:
Installed Py 2.6.3 and I don't see the issue there, but not all
libraries I use are on 2.6 yet.
So, I thought lets install Python(x, y) and give this a try, but I can't
find a Python 2.5.x version of it - is this still available?
Werner
P.S.
Will totally de
, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit
(Intel)]
# wxPython 2.8.10.1 (unicode), Boa Constructor 0.6.1
matplotlib.__version__
'0.99.1'
Werner
P.S.
Installed Python for all users - will try installing for me only
create my own?
Werner
PS
If it is of any help, I get this (also I have mpl.verbose.level = u'silent':
C:\Python25\lib\site-packages\matplotlib\axes.py:3996: UserWarning: No
labeled objects found. Use label='...' kwarg on individual plots.
warnings.warn(No labeled objects found.
And here
John,
John Hunter wrote:
On Fri, Sep 18, 2009 at 4:39 AM, Werner F. Bruhin werner.bru...@free.fr
wrote:
I have multiple canvas and sometimes one or more might have nothing to
draw (no data).
Currently I just call.
canvas.draw()
canvas.Refresh()
for each of the canvas
does not use, but the exception is the same as I get in my code when I
call draw.
Hope this helps
Werner
On Sep 18, 2009, at 7:43 AM, Werner F. Bruhin
werner.bru...@free.fr wrote:
John,
John Hunter wrote:
On Fri, Sep 18, 2009 at 4:39 AM, Werner F. Bruhin
werner.bru...@free.fr wrote:
I
Hi Jae-Joon,
Jae-Joon Lee wrote:
My guess is that the error happens when the matplotlib tries to format
the date ticklabels when the xlim is not correctly set, i.e., [0, 1]
in the example. But, I'm not sure what is the best approach here.
Werner, if there is nothing to draw (i,e, xlim
Eric,
Eric Firing wrote:
Werner,
Instead, it looks to me like the best solution is the one you
provided at the very bottom of
http://www.py2exe.org/index.cgi/MatPlotLib.
I am happy with what ever change is done as long as it also works for
py2exe'd application.
I have applied this fix
item 2858638 added and the above wiki
page also contains a work around/correction suggestion.
Werner
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design
Jouni K. Seppänen wrote:
Werner F. Bruhin werner.bru...@free.fr writes:
I think this has been fixed on the trunk for good, by changing all
docstring modifications to use decorators (defined in docstring.py) that
check for nonexistent docstrings. The changes are perhaps too big to
apply
as a patch I would search all modules
correct them.
Werner
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what
Werner F. Bruhin wrote:
I have run into a bit of problem using 0.99 and py2exe.
I am getting errors TypeError: unsupported operand type(s) for +=:
'NoneType' and 'str' in mlab.pyo after py2exe'd my application.
This is caused by this type of code, as one normally uses the optimize
option
Chris,
Christopher Barker wrote:
Werner F. Bruhin wrote:
The other problem I have is that the xtick_labels are cut off at the
bottom when the frame is resized below a certain size. How can I
prevent this?
I don't think MPL yet has a system for making things fit, so you need
to change
off at the
bottom when the frame is resized below a certain size. How can I
prevent this?
Thanks for any tips on these problems.
Werner
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial
Jouni K. Seppänen wrote:
Werner F. Bruhin werner.bru...@free.fr writes:
I trying to create a Pareto diagram and would like that the percentage
marker is center aligned on the bars,
Perhaps the easiest solution is to use bar(...,align='center').
Thanks, that does the trick
) - which again are shown if I resize.
Appreciate any hint on how to solve this.
Werner
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration
Werner F. Bruhin wrote:
I previously used version '0.90.1' and could do something along these lines.
figure.add_axes
... etc
canvas.Refresh()
User makes a new selection and in the code I do:
figure.clear()
figure.add_axes
... etc
canvas.Refresh()
With 0.99 and wxAgg on Windows Vista
Werner F. Bruhin wrote:
I would like to have the percentage values shown in white instead of in
black within a pie chart.
The following code is doing what I want, but it does not feel right.
myPie = axes.pie(values, labels=labels, autopct=u'%1.0f%%',
shadow=False, colors=colors
which ones are a
percentage and then color them - but I guess that would be one way of
doing it but it looks a bit odd to me.
Thanks for any tips
Werner
--
Let Crystal Reports handle the reporting - Free Crystal
Eric,
Eric Firing wrote:
Werner F. Bruhin wrote:
Werner F. Bruhin wrote:
...
Ideally I would like to have these labels printed at an angle.
Put my glasses on and found the rotation property in the
documentation, only issue left is centering the labels below the bars.
Are you using
from 0.8/2 where
0.8 is the default width of the bar).
axes.set_xticks([x+0.4 for x in indx])
That does the trick. Thanks.
Although I wonder why align='center' does not work for me.
Will review the other samples and read the doc some more.
Werner
how to provide the lables to the "bar" call or how else
to make sure that "Rot" is centered under the first bar, "Wei" under
the second bar and so on.
Ideally I would like to have these labels printed at an angle.
Appreciate any hints
Werner
P.S.
mpl version:
Werner F. Bruhin wrote:
...
Ideally I would like to have these labels printed at an angle.
Put my glasses on and found the rotation property in the documentation,
only issue left is centering the labels below the bars.
Werner
Hi Chris,
Christopher Barker wrote:
Werner F. Bruhin wrote:
I am trying to put together a wxPython frame using py.aui to show
multiple matplotlib.figures/canvas.
I'd recommend you take a look at wxMPL -- it's a nice way to embed MPL
in wx.
I'll have a look
I am just starting to test 0.99 (having remained on 0.90.1 for some time
now).
I can't find the examples - can anyone point out were they are.
Used the following to install:
matplotlib-0.99.0.win32-py2.5-setup.exe
Werner
estate is too small then there should be scrollbars
per figure/canvas.
Hopefully some samples code (in the example files which existed in
0.90.x) can put me in the right direction, otherwise I will try to put
together a stand alone sample (without access to my database) to show my
problem.
Werner
this distribution
with specific versions of python, wx etc.
I am under the impression that as of mpl 0.9x there is NO specific
version dependency for wxPython. I believe there was some optimization
code which forced a dependency on wxPython 2.6 Unicode for the wxAgg
backend.
Werner
matplotlib
example which has a hack to deal with this. I haven't found a better
way to deal with this new folder structure, but for me this works.
Werner
Jeff
# arguments for the setup() call
app = dict(
script = App.py,
other_resources = [(RT_MANIFEST, 1, manifest_template %
dict(prog
to what you want to
do? If you let me know I try to create/adapt the setup.py for it.
Werner
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go
Oops, forgot to copy the list.
Hi Emmanuel,
Emmanuel wrote:
Hi,
I got the setup.py given by Werner in an old thread (message from
april 4th 2007). I putted code thereafter.
This is probably out of date for 0.90.
I attach the one I updated at some point, also I am not sure that how I
deal
are: OS: WinXP, Python 2.5, matplotlib 0.90.1,
wxPython 2.8.0.1, ipython 0.8.2
I have just about the same, WinXP / Vista, Python 2.5.1, matplotlib
0.90.1 wxPython 2.8.4.0 (but have used older versions too).
Werner
Hi John,
Werner F. Bruhin wrote:
John,
John Hunter wrote:
On 6/4/07, Werner F. Bruhin [EMAIL PROTECTED] wrote:
John Hunter wrote:
matplotlib 0.90.1 is out and available for download from the
sourceforge site.
Just installed it. Works very nicely with the exception of some font
issue
John,
John Hunter wrote:
On 6/14/07, Werner F. Bruhin [EMAIL PROTECTED] wrote:
I am getting this:
Could not match Bitstream Vera Serif, New Century Schoolbook,
Century
Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L,
Times
New Roman, Times, Palatino, Charter, serif
Hi Andrew,
Andrew Straw wrote:
...
Dear Werner,
I am reluctant to eliminate the sub-folder structure because I think
it would add the possibility of unnecessary bugs to just the py2exe
built version. Would it be possible for you to re-factor this to
include the directory layout? When you
Hi Andrew,
Werner F. Bruhin wrote:
Hi Andrew,
Andrew Straw wrote:
Dear Werner,
This seems to be an unintended side-effect of reorganizing the mpl
data file location that I did prior to this release. (I.e. it's not
your code that broke, I think it's mpl.) Unfortunately, since I
John,
John Hunter wrote:
On 6/4/07, Werner F. Bruhin [EMAIL PROTECTED] wrote:
John Hunter wrote:
matplotlib 0.90.1 is out and available for download from the
sourceforge site.
Just installed it. Works very nicely with the exception of some font
issue.
I am getting this:
Could not match
= matplotlib.get_py2exe_datafiles()
File C:\Python25\Lib\site-packages\matplotlib\__init__.py, line 369,
in get_py2exe_datafiles
mplfiles.remove(os.sep.join([get_data_path(), 'Matplotlib.nib']))
ValueError: list.remove(x): x not in list
Werner
.
What do I need to do to get read of this?
I don't just want to change the verbose option.
Any hints very appreciated.
Werner
P.S. John, sorry for the first mail sent to you instead of the list.
The 0.90 release is the last release in which we will continue to use
the numerix layer internally
.
Regards
Werner
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar
NOT USE.pyd (or something similar).
The 0.87 version was compiled against wxPython 2.6 to take accelarate some
functions, by renaming the above file you basically deactive this accelaration
code.
I believe the next version of matplotlib will get rid of this dependency.
Werner
Hi Paul,
Paul Ray wrote:
On May 10, 2007, at 10:34 AM, Werner F. Bruhin wrote:
What backend are you using?
If you use wxPython then as of 0.87.? something you need to either
use wxPython 2.6 Unicode or rename the following file:
I'm not 100% sure. We certainly didn't intentionally use
Paul,
Paul Ray wrote:
On May 10, 2007, at 11:05 AM, Werner F. Bruhin wrote:
Should you have a small matplotlib script which shows the problem
I'll give it a try on my setup (XP or Vista with Python 2.5 and numpy.
No need for a script. import pylab produces the error.
No problem here
this for a Vista legend problem I had (they
were to big).
from matplotlib.font_manager import FontProperties
self.figure.legend((statsLinesP + statsLinesC), (statsTextsP +
statsTextsC),
loc=self.legendPos, prop=FontProperties(size='smaller'))
Werner
to bundle a
matplotlib app?
I don't know, but I think the setup.py I posted to this list for
embedding_in_wx4.py is pretty accurate and at least for me it does
build a matplotlib app.
Werner
-
Take Surveys. Earn Cash
support that, but you might want to check on the py2exe list
(e.g. on the gmane mirror of it at
http://dir.gmane.org/gmane.comp.python.py2exe
Werner
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's
Johann,
Jouni K. Seppänen wrote:
Werner F. Bruhin [EMAIL PROTECTED] writes:
Actually, I have other problems : I cannot save in many formats. The
bmp is deemed usueless by gimp,
I didn't even know you can save in bmp format. Does png format work
better?
.png works
/_wxagg.pyd
to
matplotlib/backends/_wxagg not used.pyd
Werner
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT business
Hi Giorgio,
Giorgio Luciano wrote:
Hello Werner,
and thank for the reply I've tried to recompile everything. The file
you sent in the mailing list give me the problem of wxmsw26uh_vc.dll
(and also dll missing while compiling)
For the wxmsw26uh_vc.dll you need to rename the .pyd file
the file simple_plot.py.
Werner
# -*- coding: iso-8859-1 -*-#
from distutils.core import setup
import os
from os.path import join
import shutil
import glob
import py2exe
from py2exe.build_exe import py2exe
import sys
import matplotlib
mpdir, mpfiles = matplotlib.get_py2exe_datafiles()
# cleanup dist
Hi Giorgio,
Giorgio Luciano wrote:
Hello Werner,
here is the file I try to compile.
It gave an error of missing DLL when i try to launch :(
no Idea why, since with you example everything works
(I'm using maplotlib 0.87.7)
I assume the DLL not found is wxmsw26uh_vc.dll at least I believe
the sample I enclosed the other day? Did that
work? If not what error are you getting.
Are you using numpy or ?
Provide a small sample (with no dependencies if possible) which does not
work for you with the corresponding setup.py.
Werner
include UTC and you use the timezone stuff in matplot
then a user NOT using UTC, i.e. another timezone will have a problem, it
is therefore better to just include all of pytz.
Werner
-
Take Surveys. Earn Cash. Influence
/_wxagg.pyd
to
matplotlib/backends/_wxagg not used.pyd
Hope this helps
Werner
# -*- coding: iso-8859-1 -*-#
from distutils.core import setup
import os
from os.path import join
import shutil
import glob
import py2exe
from py2exe.build_exe import py2exe
import sys
import matplotlib
mpdir, mpfiles
?
Try this one:
x = sin(arange(0,100,0.1)) ## your function
## plot the sorted value of your function against
## a linear vektor from 0 to 1 with the same length
plot(sort(x), arange(len(x))/float(len(x)))
Regrads
Werner
and wxPython?
Werner
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT business topics through brief surveys-and earn cash
http
can do a Windows build against a wxPython 2.8 version (and
Python 2.5) I could do some testing.
Is there a list of what the problems are?
Werner
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's
.
Tests were done with:
# Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)]
# wxPython 2.8.1.1, Boa Constructor 0.5.2
That is the ANSI build of wxPython. As soon as there is a matplotlib
build with 2.8 I will do more testing, can then use either ANSI or Unicode.
Werner
an updated examples.zip
When a build for wxPython 2.8 is available I will do some more testing,
especially with regards to py2exe packaging.
Werner
dynamic_demo_wx.py
Description: application/python
dynamic_image_wxagg2.py
Description: application/python
dynamic_image_wxagg.py
Description
Hi Charlie,
Great to see a new release, will put some time aside to test it with
wxPython early next week.
I can't see a reference to the wxPython backend, will it still require
the Unicode build or can one use the Ansi build and which versions of
wxPython are supported?
Werner
)
- numpy (just tried it building against 87.3 but get errors related to
numpy, one probably has to force more inclusions)
Hope this helps
Werner
setup.py
Description: application/python
wxcursor_demo.py
Description: application/python
.
Werner
P.S.
I am still on matplotlib version '0.82' (plan to upgrade to newer
version but need to upgrade to Unicode wxPython first), with Python 2.4
and wxPython 2.6.x
-
Take Surveys. Earn Cash. Influence the Future
having decent success with pure python approaches for
qt3 and qt4. We are sticking with the unicode wxpython build for the
remainder of 0.87.x to avoid more confusion. Ideally 0.88 will have
the pure python blitting implementations.
That is good news.
Best regards
Werner
builds?
Is it not possible to have a wxPython nutral build?
Best regards
Werner
On 11/4/06, Etrade Griffiths [EMAIL PROTECTED] wrote:
Hi
running Win XP, Python 2.4 with matlibplot and wxpython installed from
these executables both down-loaded from sourceforge
matplotlib-0.87.7.win32
Attached is an updated version which does close.
I move the timer code and added and EVT_CLOSE which stops the timer and
now it closes correctly.
Werner
dynamic_image_wxagg.py
Description: application/python
-
Take
I tried multiple times to download the above and/or to just view it with
Adobe 7 but it looks like the file is corrupted.
Can anyone confirm this or is the problem on my side?
Werner
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre
Just tried again using GetRight download manager and did manage to
download it. Just FYI, GetRight reported multiple disconnects due to
busy server, but as it allows to resume this was not a problem.
Werner
Werner F. Bruhin wrote:
I tried multiple times to download the above and/or to just
thread.
Werner
- Charlie
On 7/6/06, Werner F. Bruhin [EMAIL PROTECTED] wrote:
Werner F. Bruhin wrote:
Trying to py2exe the application I get an error no such file
wxmsw26uh_vc.dll.
I am on:
# Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]
# wxPython 2.6.3.2, Boa
95 matches
Mail list logo