SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
(3)
Jun
Jul
Aug
(12)
Sep
(12)
Oct
(56)
Nov
(65)
Dec
(37)
2004 Jan
(59)
Feb
(78)
Mar
(153)
Apr
(205)
May
(184)
Jun
(123)
Jul
(171)
Aug
(156)
Sep
(190)
Oct
(120)
Nov
(154)
Dec
(223)
2005 Jan
(184)
Feb
(267)
Mar
(214)
Apr
(286)
May
(320)
Jun
(299)
Jul
(348)
Aug
(283)
Sep
(355)
Oct
(293)
Nov
(232)
Dec
(203)
2006 Jan
(352)
Feb
(358)
Mar
(403)
Apr
(313)
May
(165)
Jun
(281)
Jul
(316)
Aug
(228)
Sep
(279)
Oct
(243)
Nov
(315)
Dec
(345)
2007 Jan
(260)
Feb
(323)
Mar
(340)
Apr
(319)
May
(290)
Jun
(296)
Jul
(221)
Aug
(292)
Sep
(242)
Oct
(248)
Nov
(242)
Dec
(332)
2008 Jan
(312)
Feb
(359)
Mar
(454)
Apr
(287)
May
(340)
Jun
(450)
Jul
(403)
Aug
(324)
Sep
(349)
Oct
(385)
Nov
(363)
Dec
(437)
2009 Jan
(500)
Feb
(301)
Mar
(409)
Apr
(486)
May
(545)
Jun
(391)
Jul
(518)
Aug
(497)
Sep
(492)
Oct
(429)
Nov
(357)
Dec
(310)
2010 Jan
(371)
Feb
(657)
Mar
(519)
Apr
(432)
May
(312)
Jun
(416)
Jul
(477)
Aug
(386)
Sep
(419)
Oct
(435)
Nov
(320)
Dec
(202)
2011 Jan
(321)
Feb
(413)
Mar
(299)
Apr
(215)
May
(284)
Jun
(203)
Jul
(207)
Aug
(314)
Sep
(321)
Oct
(259)
Nov
(347)
Dec
(209)
2012 Jan
(322)
Feb
(414)
Mar
(377)
Apr
(179)
May
(173)
Jun
(234)
Jul
(295)
Aug
(239)
Sep
(276)
Oct
(355)
Nov
(144)
Dec
(108)
2013 Jan
(170)
Feb
(89)
Mar
(204)
Apr
(133)
May
(142)
Jun
(89)
Jul
(160)
Aug
(180)
Sep
(69)
Oct
(136)
Nov
(83)
Dec
(32)
2014 Jan
(71)
Feb
(90)
Mar
(161)
Apr
(117)
May
(78)
Jun
(94)
Jul
(60)
Aug
(83)
Sep
(102)
Oct
(132)
Nov
(154)
Dec
(96)
2015 Jan
(45)
Feb
(138)
Mar
(176)
Apr
(132)
May
(119)
Jun
(124)
Jul
(77)
Aug
(31)
Sep
(34)
Oct
(22)
Nov
(23)
Dec
(9)
2016 Jan
(26)
Feb
(17)
Mar
(10)
Apr
(8)
May
(4)
Jun
(8)
Jul
(6)
Aug
(5)
Sep
(9)
Oct
(4)
Nov
Dec
2017 Jan
(5)
Feb
(7)
Mar
(1)
Apr
(5)
May
Jun
(3)
Jul
(6)
Aug
(1)
Sep
Oct
(2)
Nov
(1)
Dec
2018 Jan
Feb
Mar
Apr
(1)
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025 Jan
(1)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S


1
(3)
2
(21)
3
(16)
4
(4)
5
(7)
6
(1)
7
(2)
8
(12)
9
(23)
10
(6)
11
(2)
12
(1)
13
(1)
14
(4)
15
(14)
16
(7)
17
(15)
18
(12)
19
(5)
20
21
(1)
22
(7)
23
(7)
24
(6)
25
(5)
26
(9)
27
(6)
28
(4)
29
(4)
30
(27)



Showing 7 results of 7

From: Gerald J. M. M. <Ger...@jp...> - 2005年11月22日 23:04:33
Hello,
I'm trying to plot some grid data using basemap and imshow however
haven't figured out how to specify the color for nan values.
For example, in my data, valid values range from 0.0-10.0. I've
assigned -9999.0 and 1e30 to the missing values and when I imshow
(setting vmin=0.0, vmax=10.0), the missing values show up in the
low and high end of the spectrum, respectively. Is there a way
to do this?
Thanks,
Gerald
From: Charlie M. <cw...@gm...> - 2005年11月22日 19:32:49
Can anybody think of a good way to disable a widget (specifically
SpanSelector) during plot interaction from the toolbar? It seems
wrong when you are panning and the SpanSelector is triggering over and
over. Is there a trivial way to detect the state of the toolbar?
Thanks,
 Charlie
From: Randewijk P-J <pjr...@su...> - 2005年11月22日 14:32:02
If I say:
my_array =3D -my_other_array
I get the correct result.
However, if I say:
my_array =3D +my_other_array
Weired things happen...
It worked fine using numarray-1.3.3...
Part of my code looks as follows:
...
#Input current as a function of the output current
ia=3D0
ib=3D-iA
ic=3D+iA
iip_cbb=3Dsqrt(2.0/3)*(ia+ib*exp(-2j*pi/3)+ic*exp(+2j*pi/3))
...
The error code I get is:
>>>
Traceback (most recent call last):
File "C:\My Documents\My PhD\Python\helle\helle.py",
line 229, in ?
iip_cbb=3Dsqrt(2.0/3)*(ia+ib*exp(-2j*pi/3)+ic*exp(+2j*pi/3))
TypeError: unsupported operand type(s) for *: 'dict'
and 'complex'
>>>
I then "debuged" the results:
>>> ia
0
>>> ib
array([ -2.30940108e+02, -2.30061311e+02,
-2.27431609e+02,
-2.23071014e+02, -2.17012715e+02,
-2.09302818e+02,
-2.00000000e+02, -1.89175061e+02,
-1.76910386e+02,
...
2.23071014e+02, 2.27431609e+02,
2.30061311e+02,
2.30940108e+02])
It looks fine.
But the supprise was:
>>> ic
{'WE': WE, 'draw_if_interactive': <function
draw_if_interactive at 0x01914EF0>, 'show': <function
show at 0x01914F30>, 'text': <function text at
0x019C16B0>, 'hist': <function hist at 0x019C1130>,
'get_plot_commands': <function get_plot_commands at
0x019BD230>, 'entropy': <function entropy at
0x0178EEF0>, 'rot90': <function rot90 at 0x01763570>,
'rot': <function rot at 0x019C64B0>, 'find': <function
find at 0x01792030>, 'ptp': <function ptp at
0x017636B0>, 'contourf': <function contourf at
0x019BEE70>, 'Int32': Int32, 'inverse': <function
inverse at 0x01763E70>, 'randn': <function randn at
0x017633F0>, 'savefig': <function savefig at
0x019BE530>, 'title': <function title at 0x019BE930>,
'popd': <function popd at 0x017755B0>, 'putmask':
<function putmask at 0x00EB06F0>, 'PolarAxes': <class
matplotlib.axes.PolarAxes at 0x0190E120>, 'swapaxes':
<function swapaxes at 0x00EB1BF0>, 'blackman':
<function blackman at 0x01763A30>, 'center_matrix':
<function center_matrix at 0x017923B0>, 'norm':
<function norm at 0x01792A30>, 'vABr': array([
3.00000000e+02, 2.91878510e+02, 2.81491031e+02,
2.68872055e+02, 2.54073166e+02,
2.37162701e+02,
...
with lots and lots of garbage in between, ending with
...
l', 'ytick.labelsize': 'small', 'ps.papersize': 'a4',
'image.origin': 'upper'}, 'compress': <function
compress at 0x00EB1DB0>, 'UInt8': UInt8, 'amap':
<function amap at 0x01792870>, 'multiply': <UFunc:
'multiply'>, 'amax': <function max at 0x01763630>,
'delaxes': <function delaxes at 0x019BE270>,
'logical_not': <UFunc: 'logical_not'>, 'phib':
-2.0943951023931953, 'asum': <built-in method reduce of
_BinaryUFunc object at 0x01032288>, 'FixedLocator':
<class matplotlib.ticker.FixedLocator at 0x0187FD80>,
'detrend': <function detrend at 0x0178EB70>, 'Float':
Float64, 'base_repr': <function base_repr at
0x01792AF0>, 'hsv': <function hsv at 0x019C18B0>,
'orth': <function orth at 0x01792230>, 'hamming':
<function hamming at 0x01763AF0>, 'axvspan': <function
axvspan at 0x019BEDB0>, 'FuncFormatter': <class
matplotlib.ticker.FuncFormatter at 0x0187FBD0>, 'dot':
<built-in function dot>}
>>>
...
ic=3D(+iA)
...
Gives the same result...
Most of the garbage looks like matplotlib stuff...
I know the solution is to say:
...
ic=3DiA
...
without the "+", but this is a bug somewhere...
Kind regards,
Peter-Jan
From: Martin K. <mku...@es...> - 2005年11月22日 09:32:20
OK,
matplotlib-0.85 gives the identical error.
Installing the newest SWIG was also a failure
for whatever reason.
It's a pitty that matplotlib does no longer work.
Perhaps some of the next releases...
Cheers,
Martin
From: <oli...@ma...> - 2005年11月22日 09:03:39
Hi there,
I experienced some strange errors when I distributed our application to=
some colleagues in Denmark.
The application uses:
Python 2.4
wxPython 2.5.5.1
numeric 23.7
matplotlib 0.83.1
The GUI was designed with Boa Constructor 0.4.4. The exe-file was compi=
led
with py2exe 0.6.3
A student who works for me has made an .exe-file of the application tha=
t
worked fine on our PC's in Norway (I tested it on around 10 PC's, both
Windows XP and 2000). Last week we had a meeting with some colleagues f=
rom
Denmark who brought their laptops and installed the application.
Installation went fine for all of them, but the application would not r=
un
on 3 out of 9 laptops (both Windows XP and 2000).
I understand that the error has something to do with matplotlib and wit=
h
Unicode displaying the letter '=E6', but I can't find out what the reas=
on is
for this. Strange thing is, we use the same letter here in Norway. My g=
uess
i that it has someting to do with language settings on these 3 PC's, bu=
t I
am not sure about this.
Anyone an idea what went wrong here? Thanks a lot in advance!
Oliver
Here is the error report and the setup.py for py2exe
Error report:
Traceback (most recent call last):
 File "PanelCheck.py", line 4, in ?
 File "PanelCheck_GUI.pyc", line 9, in ?
 File "Line_Plot.pyc", line 3, in ?
 File "Plot_Setup.pyc", line 9, in ?
 File "matplotlib\backends\backend_wxagg.pyc", line 18, in ?
 File "matplotlib\backends\backend_agg.pyc", line 82, in ?
 File "matplotlib\figure.pyc", line 3, in ?
 File "matplotlib\axes.pyc", line 14, in ?
 File "matplotlib\axis.pyc", line 25, in ?
 File "matplotlib\font_manager.pyc", line 993, in ?
 File "matplotlib\font_manager.pyc", line 837, in __init__
 File "matplotlib\font_manager.pyc", line 830, in rebuild
 File "matplotlib\font_manager.pyc", line 456, in createFontDict
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe6' in
position 15: ordinal not in range(128)
Traceback (most recent call last):
 File "PanelCheck.py", line 4, in ?
 File "PanelCheck_GUI.pyc", line 9, in ?
 File "Line_Plot.pyc", line 3, in ?
 File "Plot_Setup.pyc", line 9, in ?
 File "matplotlib\backends\backend_wxagg.pyc", line 18, in ?
 File "matplotlib\backends\backend_agg.pyc", line 82, in ?
 File "matplotlib\figure.pyc", line 3, in ?
 File "matplotlib\axes.pyc", line 14, in ?
 File "matplotlib\axis.pyc", line 25, in ?
 File "matplotlib\font_manager.pyc", line 993, in ?
 File "matplotlib\font_manager.pyc", line 837, in __init__
 File "matplotlib\font_manager.pyc", line 830, in rebuild
 File "matplotlib\font_manager.pyc", line 456, in createFontDict
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe6' in
position 15: ordinal not in range(128)
setup.py for py2exe:
# setup.py
from distutils.core import setup
import py2exe
import glob
import sys
class Target:
 def __init__(self, **kw):
 self.__dict__.update(kw)
 # for the versioninfo resources
 self.version =3D "1.22"
 self.company_name =3D "Matforsk "
 self.copyright =3D "no copyright"
 self.name =3D "PanelCheck"
manifest_template =3D '''
<?xml version=3D"1.0" encoding=3D"UTF-8" standalone=3D"yes"?>
<assembly xmlns=3D"urn:schemas-microsoft-com:asm.v1" manifestVersion=3D=
"1.0">
<assemblyIdentity
 version=3D"5.0.0.0"
 processorArchitecture=3D"x86"
 name=3D"%(prog)s"
 type=3D"win32"
/>
<description>%(prog)s Program</description>
<dependency>
 <dependentAssembly>
 <assemblyIdentity
 type=3D"win32"
 name=3D"Microsoft.Windows.Common-Controls"
 version=3D"6.0.0.0"
 processorArchitecture=3D"X86"
 publicKeyToken=3D"6595b64144ccf1df"
 language=3D"*"
 />
 </dependentAssembly>
</dependency>
</assembly>
'''
RT_MANIFEST =3D 24
PanelCheck_files =3D [
"About.py",
"Correlation_Plot.py",
"FileOpen_Summary.py",
"Line_Plot.py",
"LoadData.py",
"PanelCheck.py",
"PanelCheck_GUI.py",
"pca.py",
"Plot_Setup.py",
"fig.ico",
"about.png",
"logo.png",
"help.chm",
"Tucker1_Plot.py",
"Eggshell_Plot.py",
"pmse_Plot.py",
"SplashScreen.py",
"pstat.py",
"stats.py"
]
data =3D glob.glob(r'C:\Program Files\Python24\share\matplotlib\*')
data.append(r'C:\Program Files\Python24\share\matplotlib\matplotlibrc')=
PanelCheck =3D Target(
 script =3D "PanelCheck.py",
 other_resources =3D [(RT_MANIFEST, 1, manifest_template %
dict(prog=3D"PanelCheck"))],
 icon_resources =3D [(1, "fig.ico")],
 #data_files =3D [("matplotlibdata", data)],
 dest_base =3D "PanelCheck")
setup( data_files =3D [("matplotlibdata", data), ("",["fig.ico", "help=
.chm",
"about.png", "logo.png"]),
 ("code", PanelCheck_files)],
 options =3D {"py2exe": { "packages": ["encodings", "pytz", "numar=
ray",
"matplotlib.numerix.random_array"],
 "bundle_files": 3,
 "ascii": 1}
 },
 zipfile =3D None,
 name=3D'PanelCheck',
 version=3D'1.22',
 description=3D'Data Analysis Tool',
 author=3D'Henning Risvik and Oliver Tomic',
 url=3D'http://www.matforsk.no/PanelCheck',
 windows =3D [PanelCheck],
 )
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Oliver Tomic,
Dr. Scient, Research Scientist
MATFORSK - Norwegian Food Research Institute
Osloveien 1
1430 =C5s
Norway
Tel.: 0047 6497 0252
Fax: 0047 6497 0333
Mob.: 0047 9574 6167
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
http://www.matforsk.no
http://www.matforsk.no/panelcheck=
From: Paul B. <peb...@gm...> - 2005年11月22日 03:48:35
On 11/21/05, Alexander Mont <ale...@co...> wrote:
>
> Mr. Kienzle,
> I just updated my matplotlib from the CVS repository. However when I do
> "import pylab", it igves me different errors depending on what directory =
I
> am in. If I do it in the matplotlib directory I get the error "cannot imp=
ort
> name rcParams, verbose" while in any other directory I just get the error
> "cannot import name verbose". Do you know what the problem is? Also, in t=
he
> matplotlib directory the error comes from the file numerix/__init__.py,
> while in the other directories the error comes from the file cm.py.
> Finally, is there an equivalent of "make clean" for distutils? Meaning,
> if I want to get rid of all the object files and recreate them to see if
> that works, how do I do that? Or is the only way to do that to remove the
> whole matplotlib directory and re-download from CVS?
>
Try deleting the "build" directory and then rebuilding matplotlib. If that
doesn't work then delete the matplotlib directory in python/site-packages.
Hopefully I'll be able to get this working soon.
> By the way, when I do get it working do you want me to submit the patch
> for axes.py, or did you already do that?
> -Alex Mont
>
--
Paul Barrett, PhD Johns Hopkins University
Assoc. Research Scientist Dept of Physics and Astronomy
Phone: 410-516-5190 Baltimore, MD 21218
From: Alexander M. <ale...@co...> - 2005年11月22日 01:53:36
Mr. Kienzle,
 I just updated my matplotlib from the CVS repository. However when I =
do "import pylab", it igves me different errors depending on what =
directory I am in. If I do it in the matplotlib directory I get the =
error "cannot import name rcParams, verbose" while in any other =
directory I just get the error "cannot import name verbose". Do you know =
what the problem is? Also, in the matplotlib directory the error comes =
from the file numerix/__init__.py, while in the other directories the =
error comes from the file cm.py.
Finally, is there an equivalent of "make clean" for distutils? Meaning, =
if I want to get rid of all the object files and recreate them to see if =
that works, how do I do that? Or is the only way to do that to remove =
the whole matplotlib directory and re-download from CVS?
Hopefully I'll be able to get this working soon.
By the way, when I do get it working do you want me to submit the patch =
for axes.py, or did you already do that?
-Alex Mont

Showing 7 results of 7

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /