I managed to resolve it, by following Mike's hint thanks Mike.
It was simply to change the setup.py script to
import cx_Freeze
import sys
import matplotlib
base = None
if sys.platform == win32:
base = Win32GUI
executables = [
The 1st code snippet of image_demo2.py is as follows
#!/usr/bin/env python
from pylab import *
w, h = 512, 512
s = file('../data/ct.raw', 'rb').read()
A = fromstring(s, uint16).astype(float)
A *= 1.0/max(A)
A.shape = w, h
I replaced s = file('../data/ct.raw', 'rb').read() with s =
Hello,
I am having some issues generating pie charts, when some of the slices
become very small, their labels
will draw on top of each other, making it impossible to distinguish between
them. And I am trying to avoid using a legend.
Does anyone know if there is a way to properly position labels
In the current implementation, sharing the axis does not mean sharing its scale.
This is not a subplots-specific issue, but applies to all kind of axes sharing.
So you need to change the scale of all the axes even though they have
shared axis.
What seems to be a better approach to me is to
You need to define your own path (or you may combine a wedge and rectangles).
This may be helpful.
http://matplotlib.sourceforge.net/users/path_tutorial.html
Regards,
-JJ
On Sat, Mar 20, 2010 at 2:33 PM, Gary Jaffe gfj...@gmail.com wrote:
Hi all --
I'm new to Matplotlib, and it looks like
How was the name Axes chosen for the Axes component? :)
It did confuse me for at least two days while I was first learning
mpl. It's in my thoughts again as I'm writing some wrapper classes for
it; what were the alternatives considered, even after the fact? :)
The example assumes that the file is a dump of uin16 512x512 array.
So, no doubt that it won't work with a png file.
See
http://matplotlib.sourceforge.net/users/image_tutorial.html
-JJ
On Tue, Mar 23, 2010 at 9:41 AM, yogesh karpate yogeshkarp...@gmail.com wrote:
The 1st code snippet of
Yes, that makes it work.
Thank you JJ.
On Tue, Mar 23, 2010 at 10:58 AM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
In the current implementation, sharing the axis does not mean sharing its
scale.
This is not a subplots-specific issue, but applies to all kind of axes
sharing.
So you need to
This should be doable using the annotation. Here is a simple cook-up I
just did. it uses a naive algorithm to place the labels, but I guess
it gives you an idea how things work.
a screenshot is attached.
Regards,
-JJ
from pylab import *
# make a square figure and axes
figure(1,
David Carmean wrote:
How was the name Axes chosen for the Axes component? :)
Much of the MPL API was modeled after the Matlab API, so you may have to
ask Mathworks.
However: an axis is a single thing -- the x axis. axes is the
plural of axis, so when you have a thing with both an x and y
I am using the enthought distribution, I would hope that it was done
right but maybe not.
Then it may be an EPD bug, you might as on the EPD list.
As a possible temporary fix, when I had this problem, I was able to
copy and paste the name of a file into the OSX save box from another
Yagua Rovi wrote:
I identify the problem.
There is no basemap data directory and the app search those datas in
[MY_DIR]\dist\library.zip\mpl_toolkits\basemap\data
But I don't know how to add it at the compilation
You can add those to data_files, or you may need to copy them with a
On Tue, Mar 23, 2010 at 09:58:11AM -0700, Christopher Barker wrote:
You also might try a different back-end. I'm not sure what EPD sets as
the default but there are sometimes odd Tk issues. EPD should support
wxPython (wxAgg), and maybe the macosx back-end.
I believe EPD's default is wxAgg.
2010/3/22 Friedrich Romstedt friedrichromst...@gmail.com:
I'm not shure whether the following suggestion solves your problem,
but it would simplify your script anyway.
import matplotlib
...
setup(..., data_files = matplotlib.get_py2exe_datafiles())
And maybe don't forget to exclude
I've been trying to modify the embedding_in_tk.py example to use the
grid manager instead of pack. I can get the plot to show ok but I
can't seem to get the toolbar to show correctly. The following code
does get the toolbar on there but it does use pack for the frame and
also I always end up with
Is it possible to draw a streamlines plot as shown in the following:
http://www.pyngl.ucar.edu/Examples/Images/ngl04p.0.png
using matplotlib or basemap?
Thanks in advance!
--
Download Intel#174; Parallel Studio Eval
On 3/23/10 5:33 PM, Reckoner wrote:
Is it possible to draw a streamlines plot as shown in the following:
http://www.pyngl.ucar.edu/Examples/Images/ngl04p.0.png
using matplotlib or basemap?
Thanks in advance!
Sorry, no.
-Jeff
Well I realized my error with the extra window being caused by the
TopLevel() command. I switched this to Tk.Tk() and it works nicely.
However I still have to pack the frame instead of using grid. I can
work around this but I wonder if there isn't something else I'm
missing.
On Tue, Mar 23, 2010
18 matches
Mail list logo