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
(10)
2
(11)
3
(4)
4
(2)
5
(10)
6
(20)
7
(18)
8
(32)
9
(15)
10
(2)
11
(5)
12
(7)
13
(13)
14
(9)
15
(17)
16
(10)
17
(4)
18
(7)
19
(15)
20
(16)
21
(10)
22
(19)
23
(13)
24
(4)
25
(5)
26
(8)
27
(10)
28
(17)
29
(7)
30
(18)
31
(2)

Showing results of 31

1 2 > >> (Page 1 of 2)
From: Christopher B. <c-...@as...> - 2008年05月08日 22:47:56
Hi Jouni,
JKS> Try setting the pdf.fonttype parameter in your matplotlibrc file to
JKS> 42 and see if the resulting file passes validation. Matplotlib
This produces a good-looking pdf. Unfortunately, It'll be a few weeks 
before I can test it with the online figure check program, since the 
that manuscript is already submitted and I can no longer update the 
figures (for now). Once I can try again, I'll let you know.
-- 
Chris
From: Ted D. <ted...@jp...> - 2008年05月08日 21:20:25
The toolbar is just a widget so you can do that the same way you show any
other widget in Qt. Something along the lines of:
 
- build a widget
- add a layout
- add the figure widget to the layout
- add the toolbar to the layout
- connect them together (I forget exactly how but backend_qt.py
has all the code that does this)
 
From: mat...@li...
[mailto:mat...@li...] On Behalf Of Behnam
Kamrani
Sent: Thursday, May 08, 2008 11:19 AM
To: mat...@li...
Subject: [Matplotlib-users] Toolbar in QT
 
Hi, 
First I want to thanks for this amazing Matplotlib. It's fantastic!
My newbie question is how I can show the (zoom, pan, etc) toolbar in
embedding_in_qt.py example?
I have noticed that in animation_blit_qt.py the toolbar is available, but it
seems to be done in a different way. 
Appreciate your help! 
Thank you,
/Ben
From: S. N. <sor...@gm...> - 2008年05月08日 20:38:32
On Thu, May 8, 2008 at 3:52 PM, Michael Droettboom <md...@st...> wrote:
> You can pass an "interpolation" parameter to imshow, or set a default in
> "image.interpolation" in your matplotlibrc. From the imshow docstring:
>
> * interpolation is one of:
>
> 'nearest', 'bilinear', 'bicubic', 'spline16', 'spline36',
> 'hanning', 'hamming', 'hermite', 'kaiser', 'quadric',
> 'catrom', 'gaussian', 'bessel', 'mitchell', 'sinc',
> 'lanczos', 'blackman'
>
> if interpolation is None, default to rc
> image.interpolation. See also th the filternorm and
> filterrad parameters
>
> 'nearest' is the one you want if you want to see sharp square pixels.
>
Thanks mike, thats exactly what I needed :)
>
> Søren Nielsen wrote:
>
>> Also, if I want to use matplotlib.patches on a canvas where I can actually
>> see individual pixels, is it possible to only draw on the available pixels
>> showing, and not just make a nice high resolution line that is plotted on
>> top of my image?
>>
> I'm not sure I understand the question. You mean to draw a line using
> large pixels, rather than as a vector? I don't think there's an easy way on
> that one -- but maybe someone else here can think of a creative way to do
> it.
Yes you understod it correctly, I guess I could figure out what pixels are
involved in a line or a circle for instance, and then do a scatter plot on
those pixels to form the shape.. but it sounds really computationally
heavy.. and I need something that works fast, (the user should be able to
mask a circle in an image using the pixels available in the image) Also the
circle should be shown as it is created (like choosing a center and moving
the mouse enlarges the circle).
Maybe someone tried this? masking stuff in an image seems like a fairly
common thing :)
Thanks for the help!
Soren
>
> Cheers,
> Mike
>
>>
>> Thanks,
>> Soren
>>
>>
>> ------------------------------------------------------------------------
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't
>> miss this year's exciting event. There's still time to save 100ドル. Use
>> priority code J8TL2D2.
>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>>
>
> --
> Michael Droettboom
> Science Software Branch
> Operations and Engineering Division
> Space Telescope Science Institute
> Operated by AURA for NASA
>
>
From: Jouni K. S. <jk...@ik...> - 2008年05月08日 19:55:16
Christopher Brown <c-...@as...> writes:
> I have read a little bit online about the difference between types 1
> and 3, but I can't find a description of which font is which type. So
> what font should I use?
Try setting the pdf.fonttype parameter in your matplotlibrc file to 42
and see if the resulting file passes validation. Matplotlib currently
only uses TrueType fonts, which can be embedded in either Type 3 or Type
42 format. I seem to recall there was some problem with the Type 42
format so Type 3 was made the default; Michael Droettboom probably
remembers it better.
If you really need to use Type 1 fonts as opposed to TrueType, there
actually is some limited support for them in the pdf backend, currently
used only by the dviread approach to using LaTeX. You could try setting
text.usetex to True - if it works out for you, you should see Type 1 TeX
fonts in the output. If not, it will probably take a little hacking to
smuggle a Type 1 font (a pfa or pfb file) past the front end, but the
pdf backend should then embed it.
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: Jouni K. S. <jk...@ik...> - 2008年05月08日 19:32:35
Christopher Brown <c-...@as...> writes:
> I have read a little bit online about the difference between types 1
> and 3, but I can't find a description of which font is which type. So
> what font should I use?
Try setting the pdf.fonttype parameter in your matplotlibrc file to 42
and see if the resulting file passes validation. Matplotlib currently
only uses TrueType fonts, which can be embedded in either Type 3 or Type
42 format. I seem to recall there was some problem with the Type 42
format so Type 3 was made the default; Michael Droettboom probably
remembers it better.
If you really need to use Type 1 fonts as opposed to TrueType, there
actually is some limited support for them in the pdf backend, currently
used only by the dviread approach to using LaTeX. You could try setting
text.usetex to True - if it works out for you, you should see Type 1 TeX
fonts in the output. If not, it will probably take a little hacking to
smuggle a Type 1 font (a pfa or pfb file) past the front end, but the
pdf backend should then embed it.
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: Behnam K. <bka...@gm...> - 2008年05月08日 18:19:44
Hi,
First I want to thanks for this amazing Matplotlib. It's fantastic!
My newbie question is how I can show the (zoom, pan, etc) toolbar in
embedding_in_qt.py example?
I have noticed that in animation_blit_qt.py the toolbar is available, but it
seems to be done in a different way.
Appreciate your help!
Thank you,
/Ben
From: Christopher B. <c-...@as...> - 2008年05月08日 15:55:09
Hi List,
I recently subjected some figures to an online 'quality analysis' done 
by a journal I am submitting a paper to. The analysis stated that my 
figures (created with mpl's pdf backend, and using whatever default 
fonts are used) used type 3 fonts, and that I should use type 1 whenever 
possible. I figured Arial would be a safer bet, but that also drew 
complaints. I have read a little bit online about the difference between 
types 1 and 3, but I can't find a description of which font is which 
type. So what font should I use?
-- 
Chris
From: Michael D. <md...@st...> - 2008年05月08日 15:20:13
You can use \AA for angstrom (to conform to the (La)TeX standard).
Cheers,
Mike
Maxim Fedorovsky wrote:
> Thanks a lot for the help) I have noticed that \angstrom is not 
> anymore supported in 0.91.
>
>
> With best regards,
> Maxim Fedorovsky.
>> Forgot to mention -- you could also apply this patch to your local 
>> copy of mathtext.py
>>
>> http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/branches/v0_91_maint/lib/matplotlib/mathtext.py?r1=4816&r2=4854 
>>
>>
>> Michael Droettboom wrote:
>>> It's a bug in 0.91.2. This has been fixed on the maintenance branch 
>>> (if you're comfortable using SVN), or we do plan to release a bugfix 
>>> 0.91.3 release soon.
>>>
>>> Cheers,
>>> Mike
>>>
>>> Maxim Fedorovsky wrote:
>>> 
>>>> Dear all,
>>>>
>>>> The following TeX expression did not produce any error message 
>>>> with matplotlib versions 0.87.3 - 0.90.2 :
>>>>
>>>> r'$Wavenumber,\ [\ cm^{-1}\ ]$'
>>>>
>>>> The following error is produced with version 0.91.2 :
>>>>
>>>> <class 'matplotlib.pyparsing.ParseFatalException'>: Expected 
>>>> end of math '$'
>>>> $Wavenumber,\ [\ cm^{-1}\ ]$ (at char 0), (line:1, col:1)
>>>>
>>>> The problem comes about because of the square brackets. Could 
>>>> everyone please explain me how to handle this situation (without 
>>>> placing the brackets outside of '$$') ?
>>>>
>>>>
>>>> Thanks in advance,
>>>> Dr. Maxim Fedorovsky.
>>>>
>>>> ------------------------------------------------------------------------- 
>>>>
>>>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
>>>> Don't miss this year's exciting event. There's still time to save 
>>>> 100ドル. Use priority code J8TL2D2. 
>>>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone 
>>>>
>>>> _______________________________________________
>>>> Matplotlib-users mailing list
>>>> Mat...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>> 
>>>
>>> 
>>
>
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: dertom <tw...@ar...> - 2008年05月08日 15:10:21
Hallo,
I'm quite new to matplotlib and have a problem, I was searching a solution
for the whole day :(
The thing is, I want to show different Figures at different states of my
main application.
So it is not possible for me, to perform the standard procedure, that may
looks like:
<code>
figure(1)
plot(bla)
figure(2)
plot(bla2)
show()
</code>
I have a method, in a class, that should be responsible for drawing a Figure
and its content; looks like that:
<code>
def drawFigure(self, el):
 figure(self.__figure)
 title(self.__headline)
 
 plot( el.getXValues(), el.getYValues(),str(el.getColor())+
str(el.getLineStyle())+str(el.getMarkerStyle()) )
 show()
</code>
This method exists in several instances of that class, that are created at
different times
Let I run it this way, the 1st Figure window appears. When this method is
called a 2nd time, not 'Figure 2' appears, a window named 'Tk' appears.
It is safe that the figure(f) method gets a uniquie number at every time the
method is called.
I also tried to let all this run in separate threads, using python Threads, 
but there was no success.
Please, can anybody tell me, if there is a solution, to call the show()
method more than one time,while my main script is running? 
The reason why I want to have it this way is, that between different states,
some time is elapsing. In this time the user shall have the possibility to
watch the figures, and zoom and pan and so on. When the next state is
reached, the next Figure window shall appear, while the others are kept on
the screen.
Thanks, very much.
Regards,
Thomas
-- 
View this message in context: http://www.nabble.com/How-to-handle-different-Figures%2C-created-from-different-instances-tp17127297p17127297.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Michael D. <md...@st...> - 2008年05月08日 14:43:42
Great. You may still want to let the scisoft guys know about this so 
others won't hit up against it.
Cheers,
Mike
Antonino Cucchiara wrote:
> Thanks,
> I just had to replace the /usr/lib/libiconv.2.dylib with the one I 
> have in /sw/lib/ directory .
> Now the GTK, GTKAgg backend work.
>
> Nino
>
>
> Michael Droettboom wrote:
>> You could try rebuilding matplotlib yourself. There are some OS-X 
>> directions here:
>>
>> http://www.astro.washington.edu/owen/BuildingMatplotlibForMac.html
>>
>> This may mean, however, that it won't play nice with other parts of 
>> scisoft. But this really is a matter of how and where scisoft was 
>> built (which I don't know) and where you're running it.
>>
>> Cheers,
>> Mike
>>
>> Antonino Cucchiara wrote:
>>> Is there anything I can do to update it by myself in the meanwhile?
>>> Thanks,
>>> Nino
>>>
>>> Michael Droettboom wrote:
>>>> It looks like matplotlib was built for a different version of iconv 
>>>> than what you have on your machine. This may be a scisoft 
>>>> packaging problem, you may want to bring this question to their 
>>>> attention. Perhaps the version of OSX that scisoft was built 
>>>> on/for is different than what you're running it on.
>>>>
>>>> ImportError: 
>>>> dlopen(/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so, 
>>>> 2): Library not loaded: /usr/lib/libiconv.2.dylib
>>>> Referenced from: 
>>>> /scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so 
>>>>
>>>> Reason: Incompatible library version: _backend_gdk.so requires 
>>>> version 7.0.0 or later, but libiconv.2.dylib provides version 5.0.0
>>>>
>>>> Cheers,
>>>> Mike
>>>>
>>>> Antonino Cucchiara wrote:
>>>> 
>>>>> Hi Mike,
>>>>> I re-install the astronomy scisoft package and now the 
>>>>> segmentation fault is not anymore present when I import 
>>>>> matplotlib.mathtext.
>>>>> But when I import pylab I have the following error.
>>>>> I think it's something related with my backend choise. I tried to 
>>>>> change all the GUI possibilities in my matplotlibrc file but the 
>>>>> error is still present.
>>>>> I attached the gdb python output (I don't know if it helps) and 
>>>>> the output of my "import pylab" command
>>>>>
>>>>>
>>>>>
>>>>> Michael Droettboom wrote:
>>>>> 
>>>>>> We need some more information.
>>>>>>
>>>>>> Can you set "verbose.level" to "debug-annoying" in your 
>>>>>> ~/.matplotlib/matplotlibrc file?
>>>>>>
>>>>>> Also, if you have the development tools (XCode) installed on your 
>>>>>> mac, can you run python in gdb?
>>>>>>
>>>>>> 
>>>>>>> gdb python
>>>>>>> 
>>>>>> GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
>>>>>> Copyright 2004 Free Software Foundation, Inc.
>>>>>> GDB is free software, covered by the GNU General Public License, 
>>>>>> and you are
>>>>>> welcome to change it and/or distribute copies of it under certain 
>>>>>> conditions.
>>>>>> Type "show copying" to see the conditions.
>>>>>> There is absolutely no warranty for GDB. Type "show warranty" 
>>>>>> for details.
>>>>>> This GDB was configured as "i386-redhat-linux-gnu"...Using host 
>>>>>> libthread_db library "/lib/tls/libthread_db.so.1".
>>>>>>
>>>>>> (gdb) run -c "import pylab"
>>>>>>
>>>>>> ... and send us the output...
>>>>>>
>>>>>> Cheers,
>>>>>> Mike
>>>>>>
>>>>>>
>>>>>> Antonino Cucchiara wrote:
>>>>>> 
>>>>>>> Hello,
>>>>>>> I am experiencing a problem recently on my Mac OsX.
>>>>>>> When I try to import mathplotlib.mathtext or pylab I received a 
>>>>>>> segmentation fault error.
>>>>>>>
>>>>>>> It wasn't like that before, and I recently update my matplotlib 
>>>>>>> and scipy via fink.
>>>>>>> It worked fine few weeks ago.
>>>>>>>
>>>>>>> I hope someone can help me.
>>>>>>> Thanks,
>>>>>>> Nino
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------- 
>>>>>>>
>>>>>>> This SF.net email is sponsored by the 2008 JavaOne(SM) 
>>>>>>> Conference Don't miss this year's exciting event. There's still 
>>>>>>> time to save 100ドル. Use priority code J8TL2D2. 
>>>>>>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone 
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Matplotlib-users mailing list
>>>>>>> Mat...@li...
>>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>>> 
>>>>> 
>>>>
>>>> 
>>>
>>>
>>
>
>
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Maxim F. <Max...@un...> - 2008年05月08日 14:42:22
Thanks a lot for the help) I have noticed that \angstrom is not anymore 
supported in 0.91.
With best regards,
Maxim Fedorovsky.
> Forgot to mention -- you could also apply this patch to your local 
> copy of mathtext.py
>
> http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/branches/v0_91_maint/lib/matplotlib/mathtext.py?r1=4816&r2=4854 
>
>
> Michael Droettboom wrote:
>> It's a bug in 0.91.2. This has been fixed on the maintenance branch 
>> (if you're comfortable using SVN), or we do plan to release a bugfix 
>> 0.91.3 release soon.
>>
>> Cheers,
>> Mike
>>
>> Maxim Fedorovsky wrote:
>> 
>>> Dear all,
>>>
>>> The following TeX expression did not produce any error message 
>>> with matplotlib versions 0.87.3 - 0.90.2 :
>>>
>>> r'$Wavenumber,\ [\ cm^{-1}\ ]$'
>>>
>>> The following error is produced with version 0.91.2 :
>>>
>>> <class 'matplotlib.pyparsing.ParseFatalException'>: Expected end 
>>> of math '$'
>>> $Wavenumber,\ [\ cm^{-1}\ ]$ (at char 0), (line:1, col:1)
>>>
>>> The problem comes about because of the square brackets. Could 
>>> everyone please explain me how to handle this situation (without 
>>> placing the brackets outside of '$$') ?
>>>
>>>
>>> Thanks in advance,
>>> Dr. Maxim Fedorovsky.
>>>
>>> ------------------------------------------------------------------------- 
>>>
>>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
>>> Don't miss this year's exciting event. There's still time to save 
>>> 100ドル. Use priority code J8TL2D2. 
>>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone 
>>>
>>> _______________________________________________
>>> Matplotlib-users mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>> 
>>
>> 
>
From: Antonino C. <cuc...@as...> - 2008年05月08日 14:17:07
Thanks,
I just had to replace the /usr/lib/libiconv.2.dylib with the one I have 
in /sw/lib/ directory .
Now the GTK, GTKAgg backend work.
Nino
Michael Droettboom wrote:
> You could try rebuilding matplotlib yourself. There are some OS-X 
> directions here:
>
> http://www.astro.washington.edu/owen/BuildingMatplotlibForMac.html
>
> This may mean, however, that it won't play nice with other parts of 
> scisoft. But this really is a matter of how and where scisoft was 
> built (which I don't know) and where you're running it.
>
> Cheers,
> Mike
>
> Antonino Cucchiara wrote:
>> Is there anything I can do to update it by myself in the meanwhile?
>> Thanks,
>> Nino
>>
>> Michael Droettboom wrote:
>>> It looks like matplotlib was built for a different version of iconv 
>>> than what you have on your machine. This may be a scisoft packaging 
>>> problem, you may want to bring this question to their attention. 
>>> Perhaps the version of OSX that scisoft was built on/for is 
>>> different than what you're running it on.
>>>
>>> ImportError: 
>>> dlopen(/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so, 
>>> 2): Library not loaded: /usr/lib/libiconv.2.dylib
>>> Referenced from: 
>>> /scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so 
>>>
>>> Reason: Incompatible library version: _backend_gdk.so requires 
>>> version 7.0.0 or later, but libiconv.2.dylib provides version 5.0.0
>>>
>>> Cheers,
>>> Mike
>>>
>>> Antonino Cucchiara wrote:
>>> 
>>>> Hi Mike,
>>>> I re-install the astronomy scisoft package and now the segmentation 
>>>> fault is not anymore present when I import matplotlib.mathtext.
>>>> But when I import pylab I have the following error.
>>>> I think it's something related with my backend choise. I tried to 
>>>> change all the GUI possibilities in my matplotlibrc file but the 
>>>> error is still present.
>>>> I attached the gdb python output (I don't know if it helps) and the 
>>>> output of my "import pylab" command
>>>>
>>>>
>>>>
>>>> Michael Droettboom wrote:
>>>> 
>>>>> We need some more information.
>>>>>
>>>>> Can you set "verbose.level" to "debug-annoying" in your 
>>>>> ~/.matplotlib/matplotlibrc file?
>>>>>
>>>>> Also, if you have the development tools (XCode) installed on your 
>>>>> mac, can you run python in gdb?
>>>>>
>>>>> 
>>>>>> gdb python
>>>>>> 
>>>>> GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
>>>>> Copyright 2004 Free Software Foundation, Inc.
>>>>> GDB is free software, covered by the GNU General Public License, 
>>>>> and you are
>>>>> welcome to change it and/or distribute copies of it under certain 
>>>>> conditions.
>>>>> Type "show copying" to see the conditions.
>>>>> There is absolutely no warranty for GDB. Type "show warranty" for 
>>>>> details.
>>>>> This GDB was configured as "i386-redhat-linux-gnu"...Using host 
>>>>> libthread_db library "/lib/tls/libthread_db.so.1".
>>>>>
>>>>> (gdb) run -c "import pylab"
>>>>>
>>>>> ... and send us the output...
>>>>>
>>>>> Cheers,
>>>>> Mike
>>>>>
>>>>>
>>>>> Antonino Cucchiara wrote:
>>>>> 
>>>>>> Hello,
>>>>>> I am experiencing a problem recently on my Mac OsX.
>>>>>> When I try to import mathplotlib.mathtext or pylab I received a 
>>>>>> segmentation fault error.
>>>>>>
>>>>>> It wasn't like that before, and I recently update my matplotlib 
>>>>>> and scipy via fink.
>>>>>> It worked fine few weeks ago.
>>>>>>
>>>>>> I hope someone can help me.
>>>>>> Thanks,
>>>>>> Nino
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------- 
>>>>>>
>>>>>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
>>>>>> Don't miss this year's exciting event. There's still time to save 
>>>>>> 100ドル. Use priority code J8TL2D2. 
>>>>>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone 
>>>>>>
>>>>>> _______________________________________________
>>>>>> Matplotlib-users mailing list
>>>>>> Mat...@li...
>>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>>> 
>>>> 
>>>
>>> 
>>
>>
>
-- 
Antonino Cucchiara
PhD candidate
Department of Astronomy&Astrophysics
Penn State University
website: www.astro.psu.edu/~cucchiara/
From: Michael D. <md...@st...> - 2008年05月08日 13:55:00
You could try rebuilding matplotlib yourself. There are some OS-X 
directions here:
http://www.astro.washington.edu/owen/BuildingMatplotlibForMac.html
This may mean, however, that it won't play nice with other parts of 
scisoft. But this really is a matter of how and where scisoft was built 
(which I don't know) and where you're running it.
Cheers,
Mike
Antonino Cucchiara wrote:
> Is there anything I can do to update it by myself in the meanwhile?
> Thanks,
> Nino
>
> Michael Droettboom wrote:
>> It looks like matplotlib was built for a different version of iconv 
>> than what you have on your machine. This may be a scisoft packaging 
>> problem, you may want to bring this question to their attention. 
>> Perhaps the version of OSX that scisoft was built on/for is different 
>> than what you're running it on.
>>
>> ImportError: 
>> dlopen(/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so, 
>> 2): Library not loaded: /usr/lib/libiconv.2.dylib
>> Referenced from: 
>> /scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so 
>>
>> Reason: Incompatible library version: _backend_gdk.so requires 
>> version 7.0.0 or later, but libiconv.2.dylib provides version 5.0.0
>>
>> Cheers,
>> Mike
>>
>> Antonino Cucchiara wrote:
>> 
>>> Hi Mike,
>>> I re-install the astronomy scisoft package and now the segmentation 
>>> fault is not anymore present when I import matplotlib.mathtext.
>>> But when I import pylab I have the following error.
>>> I think it's something related with my backend choise. I tried to 
>>> change all the GUI possibilities in my matplotlibrc file but the 
>>> error is still present.
>>> I attached the gdb python output (I don't know if it helps) and the 
>>> output of my "import pylab" command
>>>
>>>
>>>
>>> Michael Droettboom wrote:
>>> 
>>>> We need some more information.
>>>>
>>>> Can you set "verbose.level" to "debug-annoying" in your 
>>>> ~/.matplotlib/matplotlibrc file?
>>>>
>>>> Also, if you have the development tools (XCode) installed on your 
>>>> mac, can you run python in gdb?
>>>>
>>>> 
>>>>> gdb python
>>>>> 
>>>> GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
>>>> Copyright 2004 Free Software Foundation, Inc.
>>>> GDB is free software, covered by the GNU General Public License, 
>>>> and you are
>>>> welcome to change it and/or distribute copies of it under certain 
>>>> conditions.
>>>> Type "show copying" to see the conditions.
>>>> There is absolutely no warranty for GDB. Type "show warranty" for 
>>>> details.
>>>> This GDB was configured as "i386-redhat-linux-gnu"...Using host 
>>>> libthread_db library "/lib/tls/libthread_db.so.1".
>>>>
>>>> (gdb) run -c "import pylab"
>>>>
>>>> ... and send us the output...
>>>>
>>>> Cheers,
>>>> Mike
>>>>
>>>>
>>>> Antonino Cucchiara wrote:
>>>> 
>>>>> Hello,
>>>>> I am experiencing a problem recently on my Mac OsX.
>>>>> When I try to import mathplotlib.mathtext or pylab I received a 
>>>>> segmentation fault error.
>>>>>
>>>>> It wasn't like that before, and I recently update my matplotlib 
>>>>> and scipy via fink.
>>>>> It worked fine few weeks ago.
>>>>>
>>>>> I hope someone can help me.
>>>>> Thanks,
>>>>> Nino
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------- 
>>>>>
>>>>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
>>>>> Don't miss this year's exciting event. There's still time to save 
>>>>> 100ドル. Use priority code J8TL2D2. 
>>>>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone 
>>>>>
>>>>> _______________________________________________
>>>>> Matplotlib-users mailing list
>>>>> Mat...@li...
>>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>>> 
>>> 
>>
>> 
>
>
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Michael D. <md...@st...> - 2008年05月08日 13:53:27
You can pass an "interpolation" parameter to imshow, or set a default in 
"image.interpolation" in your matplotlibrc. From the imshow docstring:
 * interpolation is one of:
 'nearest', 'bilinear', 'bicubic', 'spline16', 'spline36',
 'hanning', 'hamming', 'hermite', 'kaiser', 'quadric',
 'catrom', 'gaussian', 'bessel', 'mitchell', 'sinc',
 'lanczos', 'blackman'
 if interpolation is None, default to rc
 image.interpolation. See also th the filternorm and
 filterrad parameters
'nearest' is the one you want if you want to see sharp square pixels.
Søren Nielsen wrote:
> Also, if I want to use matplotlib.patches on a canvas where I can 
> actually see individual pixels, is it possible to only draw on the 
> available pixels showing, and not just make a nice high resolution 
> line that is plotted on top of my image?
I'm not sure I understand the question. You mean to draw a line using 
large pixels, rather than as a vector? I don't think there's an easy 
way on that one -- but maybe someone else here can think of a creative 
way to do it.
Cheers,
Mike
>
> Thanks,
> Soren
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save 100ドル. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Antonino C. <cuc...@as...> - 2008年05月08日 13:49:44
Is there anything I can do to update it by myself in the meanwhile?
Thanks,
Nino
Michael Droettboom wrote:
> It looks like matplotlib was built for a different version of iconv than 
> what you have on your machine. This may be a scisoft packaging problem, 
> you may want to bring this question to their attention. Perhaps the 
> version of OSX that scisoft was built on/for is different than what 
> you're running it on.
>
> ImportError: 
> dlopen(/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so, 
> 2): Library not loaded: /usr/lib/libiconv.2.dylib
> Referenced from: 
> /scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so
> Reason: Incompatible library version: _backend_gdk.so requires version 
> 7.0.0 or later, but libiconv.2.dylib provides version 5.0.0
>
> Cheers,
> Mike
>
> Antonino Cucchiara wrote:
> 
>> Hi Mike,
>> I re-install the astronomy scisoft package and now the segmentation 
>> fault is not anymore present when I import matplotlib.mathtext.
>> But when I import pylab I have the following error.
>> I think it's something related with my backend choise. I tried to 
>> change all the GUI possibilities in my matplotlibrc file but the error 
>> is still present.
>> I attached the gdb python output (I don't know if it helps) and the 
>> output of my "import pylab" command
>>
>>
>>
>> Michael Droettboom wrote:
>> 
>>> We need some more information.
>>>
>>> Can you set "verbose.level" to "debug-annoying" in your 
>>> ~/.matplotlib/matplotlibrc file?
>>>
>>> Also, if you have the development tools (XCode) installed on your 
>>> mac, can you run python in gdb?
>>>
>>> 
>>>> gdb python
>>>> 
>>> GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
>>> Copyright 2004 Free Software Foundation, Inc.
>>> GDB is free software, covered by the GNU General Public License, and 
>>> you are
>>> welcome to change it and/or distribute copies of it under certain 
>>> conditions.
>>> Type "show copying" to see the conditions.
>>> There is absolutely no warranty for GDB. Type "show warranty" for 
>>> details.
>>> This GDB was configured as "i386-redhat-linux-gnu"...Using host 
>>> libthread_db library "/lib/tls/libthread_db.so.1".
>>>
>>> (gdb) run -c "import pylab"
>>>
>>> ... and send us the output...
>>>
>>> Cheers,
>>> Mike
>>>
>>>
>>> Antonino Cucchiara wrote:
>>> 
>>>> Hello,
>>>> I am experiencing a problem recently on my Mac OsX.
>>>> When I try to import mathplotlib.mathtext or pylab I received a 
>>>> segmentation fault error.
>>>>
>>>> It wasn't like that before, and I recently update my matplotlib and 
>>>> scipy via fink.
>>>> It worked fine few weeks ago.
>>>>
>>>> I hope someone can help me.
>>>> Thanks,
>>>> Nino
>>>>
>>>>
>>>> ------------------------------------------------------------------------- 
>>>>
>>>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
>>>> Don't miss this year's exciting event. There's still time to save 
>>>> 100ドル. Use priority code J8TL2D2. 
>>>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone 
>>>>
>>>> _______________________________________________
>>>> Matplotlib-users mailing list
>>>> Mat...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>> 
>>>> 
>> 
>
> 
-- 
Antonino Cucchiara
PhD candidate
Department of Astronomy&Astrophysics
Penn State University
website: www.astro.psu.edu/~cucchiara/
From: Michael D. <md...@st...> - 2008年05月08日 13:43:09
It looks like matplotlib was built for a different version of iconv than 
what you have on your machine. This may be a scisoft packaging problem, 
you may want to bring this question to their attention. Perhaps the 
version of OSX that scisoft was built on/for is different than what 
you're running it on.
ImportError: 
dlopen(/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so, 
2): Library not loaded: /usr/lib/libiconv.2.dylib
 Referenced from: 
/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so
 Reason: Incompatible library version: _backend_gdk.so requires version 
7.0.0 or later, but libiconv.2.dylib provides version 5.0.0
Cheers,
Mike
Antonino Cucchiara wrote:
> Hi Mike,
> I re-install the astronomy scisoft package and now the segmentation 
> fault is not anymore present when I import matplotlib.mathtext.
> But when I import pylab I have the following error.
> I think it's something related with my backend choise. I tried to 
> change all the GUI possibilities in my matplotlibrc file but the error 
> is still present.
> I attached the gdb python output (I don't know if it helps) and the 
> output of my "import pylab" command
>
>
>
> Michael Droettboom wrote:
>> We need some more information.
>>
>> Can you set "verbose.level" to "debug-annoying" in your 
>> ~/.matplotlib/matplotlibrc file?
>>
>> Also, if you have the development tools (XCode) installed on your 
>> mac, can you run python in gdb?
>>
>> > gdb python
>> GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
>> Copyright 2004 Free Software Foundation, Inc.
>> GDB is free software, covered by the GNU General Public License, and 
>> you are
>> welcome to change it and/or distribute copies of it under certain 
>> conditions.
>> Type "show copying" to see the conditions.
>> There is absolutely no warranty for GDB. Type "show warranty" for 
>> details.
>> This GDB was configured as "i386-redhat-linux-gnu"...Using host 
>> libthread_db library "/lib/tls/libthread_db.so.1".
>>
>> (gdb) run -c "import pylab"
>>
>> ... and send us the output...
>>
>> Cheers,
>> Mike
>>
>>
>> Antonino Cucchiara wrote:
>>> Hello,
>>> I am experiencing a problem recently on my Mac OsX.
>>> When I try to import mathplotlib.mathtext or pylab I received a 
>>> segmentation fault error.
>>>
>>> It wasn't like that before, and I recently update my matplotlib and 
>>> scipy via fink.
>>> It worked fine few weeks ago.
>>>
>>> I hope someone can help me.
>>> Thanks,
>>> Nino
>>>
>>>
>>> ------------------------------------------------------------------------- 
>>>
>>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
>>> Don't miss this year's exciting event. There's still time to save 
>>> 100ドル. Use priority code J8TL2D2. 
>>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone 
>>>
>>> _______________________________________________
>>> Matplotlib-users mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>> 
>>
>
>
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: S. N. <sor...@gm...> - 2008年05月08日 13:38:09
Hi,
I have a displayed an image with imshow() under wxPython, and it looks great
with the WxAgg figure canvas.. but sometimes I want to actually see pixels
when I zoom.. and not just a nice smoothed image. Is it possible to disable
the smoothing? The way it is now, I will never see square pixels no matter
how close i zoom in..
Also, if I want to use matplotlib.patches on a canvas where I can actually
see individual pixels, is it possible to only draw on the available pixels
showing, and not just make a nice high resolution line that is plotted on
top of my image?
Thanks,
Soren
From: Antonino C. <cuc...@as...> - 2008年05月08日 13:38:06
Attachments: gdb.out pylaboutput
Hi Mike,
I re-install the astronomy scisoft package and now the segmentation 
fault is not anymore present when I import matplotlib.mathtext.
But when I import pylab I have the following error.
I think it's something related with my backend choise. I tried to change 
all the GUI possibilities in my matplotlibrc file but the error is still 
present.
I attached the gdb python output (I don't know if it helps) and the 
output of my "import pylab" command
Michael Droettboom wrote:
> We need some more information.
>
> Can you set "verbose.level" to "debug-annoying" in your 
> ~/.matplotlib/matplotlibrc file?
>
> Also, if you have the development tools (XCode) installed on your mac, 
> can you run python in gdb?
>
> > gdb python
> GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and 
> you are
> welcome to change it and/or distribute copies of it under certain 
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for 
> details.
> This GDB was configured as "i386-redhat-linux-gnu"...Using host 
> libthread_db library "/lib/tls/libthread_db.so.1".
>
> (gdb) run -c "import pylab"
>
> ... and send us the output...
>
> Cheers,
> Mike
>
>
> Antonino Cucchiara wrote:
>> Hello,
>> I am experiencing a problem recently on my Mac OsX.
>> When I try to import mathplotlib.mathtext or pylab I received a 
>> segmentation fault error.
>>
>> It wasn't like that before, and I recently update my matplotlib and 
>> scipy via fink.
>> It worked fine few weeks ago.
>>
>> I hope someone can help me.
>> Thanks,
>> Nino
>>
>>
>> ------------------------------------------------------------------------- 
>>
>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
>> Don't miss this year's exciting event. There's still time to save 
>> 100ドル. Use priority code J8TL2D2. 
>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone 
>>
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>> 
>
-- 
Antonino Cucchiara
PhD candidate
Department of Astronomy&Astrophysics
Penn State University
website: www.astro.psu.edu/~cucchiara/
From: Michael D. <md...@st...> - 2008年05月08日 13:02:46
Forgot to mention -- you could also apply this patch to your local copy 
of mathtext.py
http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/branches/v0_91_maint/lib/matplotlib/mathtext.py?r1=4816&r2=4854
Michael Droettboom wrote:
> It's a bug in 0.91.2. This has been fixed on the maintenance branch (if 
> you're comfortable using SVN), or we do plan to release a bugfix 0.91.3 
> release soon.
>
> Cheers,
> Mike
>
> Maxim Fedorovsky wrote:
> 
>> Dear all,
>>
>> The following TeX expression did not produce any error message with 
>> matplotlib versions 0.87.3 - 0.90.2 :
>>
>> r'$Wavenumber,\ [\ cm^{-1}\ ]$'
>>
>> The following error is produced with version 0.91.2 :
>>
>> <class 'matplotlib.pyparsing.ParseFatalException'>: Expected end of 
>> math '$'
>> $Wavenumber,\ [\ cm^{-1}\ ]$ (at char 0), (line:1, col:1)
>>
>> The problem comes about because of the square brackets. Could 
>> everyone please explain me how to handle this situation (without placing 
>> the brackets outside of '$$') ?
>>
>>
>> Thanks in advance,
>> Dr. Maxim Fedorovsky.
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
>> Don't miss this year's exciting event. There's still time to save 100ドル. 
>> Use priority code J8TL2D2. 
>> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>> 
>> 
>
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Michael D. <md...@st...> - 2008年05月08日 12:59:46
It's a bug in 0.91.2. This has been fixed on the maintenance branch (if 
you're comfortable using SVN), or we do plan to release a bugfix 0.91.3 
release soon.
Cheers,
Mike
Maxim Fedorovsky wrote:
> Dear all,
>
> The following TeX expression did not produce any error message with 
> matplotlib versions 0.87.3 - 0.90.2 :
>
> r'$Wavenumber,\ [\ cm^{-1}\ ]$'
>
> The following error is produced with version 0.91.2 :
>
> <class 'matplotlib.pyparsing.ParseFatalException'>: Expected end of 
> math '$'
> $Wavenumber,\ [\ cm^{-1}\ ]$ (at char 0), (line:1, col:1)
>
> The problem comes about because of the square brackets. Could 
> everyone please explain me how to handle this situation (without placing 
> the brackets outside of '$$') ?
>
>
> Thanks in advance,
> Dr. Maxim Fedorovsky.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save 100ドル. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Michael D. <md...@st...> - 2008年05月08日 12:40:18
We need some more information.
Can you set "verbose.level" to "debug-annoying" in your 
~/.matplotlib/matplotlibrc file?
Also, if you have the development tools (XCode) installed on your mac, 
can you run python in gdb?
 > gdb python
GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host 
libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) run -c "import pylab"
... and send us the output...
Cheers,
Mike
Antonino Cucchiara wrote:
> Hello,
> I am experiencing a problem recently on my Mac OsX.
> When I try to import mathplotlib.mathtext or pylab I received a 
> segmentation fault error.
>
> It wasn't like that before, and I recently update my matplotlib and 
> scipy via fink.
> It worked fine few weeks ago.
>
> I hope someone can help me.
> Thanks,
> Nino
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save 100ドル. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Matthias M. <Mat...@gm...> - 2008年05月08日 12:39:27
Hi Soren,
I'm not sure I understood well, but maybe you mixed something up and the 
following works:
On Thursday 08 May 2008 14:09:56 Søren Nielsen wrote:
> I've been messing around with it alot now.. but I still can't get a
> colorbar on my image plot..
>
> I think i got close with this:
>
> img is an image in a numpy.ndarray
>
> a = self.fig.gca() # Get the current axes
> a.imshow( img, cmap = cm.gray )
image_from_imshow = a.imshow( img, cmap = cm.gray )
> self.fig.colorbar(img)
 self.fig.colorbar(image_from_imshow)
> But that gives me the error "numpy.ndarray doesn't have attribute
> autoscale"..
>
> It does show a colorbar, but it's plain white and goes from 0.0 to 1.0
That's probably the default-behaviour instead of showing no colorbar.
regards
Matthias
From: S. N. <sor...@gm...> - 2008年05月08日 12:09:59
Hi,
I've been messing around with it alot now.. but I still can't get a colorbar
on my image plot..
I think i got close with this:
img is an image in a numpy.ndarray
a = self.fig.gca() # Get the current axes
a.imshow( img, cmap = cm.gray )
self.fig.colorbar(img)
But that gives me the error "numpy.ndarray doesn't have attribute
autoscale"..
It does show a colorbar, but it's plain white and goes from 0.0 to 1.0
btw, im using wxPython.
Does anyone here know how it's done properly?
Thanks!
Soren
From: Darren D. <dar...@co...> - 2008年05月08日 10:50:30
On Thursday 08 May 2008 5:13:20 am Yves Revaz wrote:
> Dear List,
>
> How is it possible to write legend text with LateX fonts ?
> Even with
> rc('text', usetex=True)
> the legend created with the command "legend" do not appear with LateX
> fonts.
>
> I try something like :
>
> pt.legend(('$\rm{total baryons}$'))
>
> but the \rm is badly interpreted :-( .
Does this work better?
pt.legend((r'$\rm{total baryons}$'))
From: Yves R. <yve...@ep...> - 2008年05月08日 10:17:01
Dear List,
How is it possible to write legend text with LateX fonts ?
Even with
rc('text', usetex=True)
the legend created with the command "legend" do not appear with LateX fonts.
I try something like :
pt.legend(('$\rm{total baryons}$'))
but the \rm is badly interpreted :-( .
Thanks for your help.
yves
-- 
 (o o)
--------------------------------------------oOO--(_)--OOo-------
 Yves Revaz
 Laboratory of Astrophysics EPFL
 Observatoire de Sauverny Tel : ++ 41 22 379 24 28
 51. Ch. des Maillettes Fax : ++ 41 22 379 22 05
 1290 Sauverny e-mail : Yve...@ep...
 SWITZERLAND Web : http://www.lunix.ch/revaz/
----------------------------------------------------------------
1 message has been excluded from this view by a project administrator.

Showing results of 31

1 2 > >> (Page 1 of 2)
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 によって変換されたページ (->オリジナル) /