Hi Guy,
I am also interested in the answer to this. The cplot function in the
mpmath module does exactly this using matplotlib, but very
inefficiently, as it computes the colour of each pixel in the image in
hls colour-space and generates the corresponding rgb value directly. I
suspect this i
Slow on my OSX machine as well. I also get this strange warning which I
have never seen before (I usually only use MPL on my windows machine).
Warning (from warnings module):
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pytz/__init__.py",
line 29
from
Hi,
I have been trying to use the Affine2D transformation with pcolor and contour,
with no success. The following script and comments illustrates my problems:
matplotlib.use('Agg')
import matplotlib.pyplot as mpl
from matplotlib.transforms import Affine2D
import numpy as np
image = np.random.ra
Andrew Kelly wrote:
> import pytz only took 0.0 seconds.
>
Sounds like it was already imported, so you were not really timing that
import.
On linux (ubuntu 9.10, Lenovo T60 laptop) importing pytz takes longer
than importing numpy:
efir...@manini:~$ time python -c "import pytz"
real0m0.
import pytz only took 0.0 seconds.
I actually just ran that pstats module and there is one line that stuck out
at me:
ncalls tottime percall cumtime percall filename:lineno(function)
10.0000.0000.0000.000
C:\Python26\lib\os.py:35(_get_exports_list)
5603.
It looks like most of the time is being taken up by pytz (timezone
library), which opens ~500 files. How does the total time of "import
pytz" compare?
Mike
Andrew Kelly wrote:
> I see. I was wondering why it spit out a binary file.
>
> test.out is attached...
>
> -Andy
>
> On Fri, Apr 2, 2010
Can you provide the actual saved profiler data? The output of the
command itself doesn't provide enough information to diagnose the
problem, since it doesn't have full file paths etc.
When you do (thanks Gökhan for the less verbose version):
python.exe -c "import cProfile; cProfile.run('impo
Hi,
Is there a way to generate colormaps for complex-valued functions using
matplotlib? The type of plots I'm looking for are like the plots in:
http://commons.wikimedia.org/wiki/User:Jan_Homann/Mathematics
Thanks in advance,
Guy
http://www.guyrutenberg.com
Bruce Ford wrote:
> Below is the example script (sorry!). I've tried all three methods of
> establishing a colormap to no avail. The most promising looked like
> option 2, but that gave me the "AttributeError: 'module' object has no
> attribute 'register_cmap'" error.
>
> I'm getting this error
I just tried running epstopdf, and this does work correctly, so maybe now the
only issue is that Preview.app on mac always uses pstopdf, even for eps files?
(which then is not a matplotlib issue) I also checked that giving the file the
extension '.ps' produces a ps file, and that does open corre
At least on my Linux box with gs 7.07, I have to use epstopdf (not
pstopdf) to convert an eps file to a pdf. ps2pdf does work for both .ps
and .eps files however.
It looks like the 0.99.1.1 file is not in fact an .eps file, but a .ps
file, (it certainly hasn't had the ps2eps function run on it
I just had a quick look, but while extra "restore" could be a problem,
the erroneous one may not be the one at line 1073, but the one at line
1066.
I believe that the "restore" at 1073 is written by "pstoeps" function
in backend_ps.py, and this function did write a matching "save" at
line 11.
Reg
Below is the example script (sorry!). I've tried all three methods of
establishing a colormap to no avail. The most promising looked like
option 2, but that gave me the "AttributeError: 'module' object has no
attribute 'register_cmap'" error.
I'm getting this error with:
Python 2.4 (user require
It seems that removing 'restore' on line 1073 of the test_tex_r8216.eps file
fixes the problem, although I don't understand postscript well enough to
understand why that is.
Thomas
On Apr 2, 2010, at 9:30 AM, Michael Droettboom wrote:
> Can you provide us with the EPS file? What version of La
On Fri, Apr 2, 2010 at 8:28 AM, Michael Droettboom wrote:
> My gut says it's probably the GUI framework import that is dominating
> the time. Which backend are you using? Does importing it take a large
> amount of time as well?
>
> Can you provide a profiler output file we can examine to narrow
Thomas Robitaille wrote:
>
> It looks like the zlib website removes previous version of its library
> that were previously available for download, so the part in make.osx where
> http://www.zlib.net/zlib-1.2.3.tar.gz is fetched now fails (since the
> current version is 1.2.4). The error in the m
Can you provide us with the EPS file? What version of LaTeX is this?
Mike
Thomas Robitaille wrote:
> Hello,
>
> I upgraded to the latest svn version of matplotlib today, and found that eps
> files produced with the system latex now seem to be invalid. For example, if
> I run the following scri
My gut says it's probably the GUI framework import that is dominating
the time. Which backend are you using? Does importing it take a large
amount of time as well?
Can you provide a profiler output file we can examine to narrow it
down? The following from a command prompt should be sufficie
Can you set "verbose.level" to "debug-annoying" in your matplotlibrc
file, and then send the output to this list. That may help us track
down where the font lookup is failing. Also, what platform and version
of matplotlib are you running?
Mike
Alex S wrote:
> Hi, sorry I wasn't too clear...
On 4/2/10 6:32 AM, Will Hewson wrote:
> This is great Jeff, thanks for the help - I'll give it a try over the weekend
> (it's bank holiday here in the UK!) and get back to you, if I'm still having
> trouble I'll stick up the plotting data too... thanks again.
>
> Will
>
Will: I forgot to ment
This is great Jeff, thanks for the help - I'll give it a try over the weekend
(it's bank holiday here in the UK!) and get back to you, if I'm still having
trouble I'll stick up the plotting data too... thanks again.
Will
Jeff Whitaker wrote:
>
> On 4/2/10 4:27 AM, Will Hewson wrote:
>> Hi for
On 4/2/10 4:27 AM, Will Hewson wrote:
Hi forum/ mailing list, When I plot in the orthographic projection I'm
getting the large artefact shown below extending away from the north
east of the globe. I'm not finding the same problem when plotting in a
full globe projection so I'm presuming the pro
On 4/2/10 4:27 AM, Will Hewson wrote:
Hi forum/ mailing list, When I plot in the orthographic projection I'm
getting the large artefact shown below extending away from the north
east of the globe. I'm not finding the same problem when plotting in a
full globe projection so I'm presuming the pro
Hi forum/ mailing list,
When I plot in the orthographic projection I'm getting the large artefact
shown below extending away from the north east of the globe.
I'm not finding the same problem when plotting in a full globe projection so
I'm presuming the problem is with the way I'm projecting eve
Hi forum/ mailing list,
When I plot in the orthographic projection I'm getting the large artefact
shown below extending away from the north east of the globe.
I'm not finding the same problem when plotting in a full globe projection so
I'm presuming the problem is with the way I'm projecting eve
rachel-mikel_arcejae...@hmc.edu wrote:
> Hello,
>
> I'm trying to create a heat map from two lists of corresponding X and Y
> coordinates.
>
> I've tried both numpy.histogram2d() and pyplot.hexbin().
>
> The histogram I get back doesn't correspond to the points I gave it. It seems
> as if it's so
26 matches
Mail list logo