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




Showing 11 results of 11

From: Michael H. <mh...@us...> - 2008年09月22日 22:21:09
All: I am trying to build matplotlib 0.98.3 on a Red Hat Enterprise 5 
linux box. I have Tkinter support compiled into my 
/usr/local/bin/python installation (at least "import Tkinter" raises no 
exceptions). However, when I try to build matplotlib using 
"/usr/local/bin/python setup.py build", I get the output below. Any 
hints? Is this my fault, or a bug in setup.py?
Thanks,
Mike
============================================================================
BUILDING MATPLOTLIB
 matplotlib: 0.98.3
 python: 2.5.2 (r252:60911, Sep 15 2008, 16:18:30) [GCC
 4.1.2 20071124 (Red Hat 4.1.2-42)]
 platform: linux2
REQUIRED DEPENDENCIES
 numpy: 1.1.0
 freetype2: found, but unknown version (no pkg-config)
 * WARNING: Could not find 'freetype2' headers in any
 * of '/usr/local/include', '/usr/include', '.',
 * '/usr/local/include/freetype2',
 * '/usr/include/freetype2', './freetype2'.
OPTIONAL BACKEND DEPENDENCIES
 libpng: 1.2.10
Traceback (most recent call last):
 File "setup.py", line 125, in <module>
 if check_for_tk() or (options['build_tkagg'] is True):
 File "/home/mhearne/build/matplotlib-0.98.3/setupext.py", line 841, in 
check_for_tk
 explanation = add_tk_flags(module)
 File "/home/mhearne/build/matplotlib-0.98.3/setupext.py", line 1101, 
in add_tk_flags
 module.libraries.extend(['tk' + tk_ver, 'tcl' + tk_ver])
UnboundLocalError: local variable 'tk_ver' referenced before assignment
-- 
------------------------------------------------------
Michael Hearne
mh...@us...
(303) 273-8620
USGS National Earthquake Information Center
1711 Illinois St. Golden CO 80401
Senior Software Engineer
Synergetics, Inc.
------------------------------------------------------
From: Gael V. <gae...@no...> - 2008年09月22日 14:29:40
The SciPy conference proceedings are finally available online:
http://conference.scipy.org/proceedings/SciPy2008 .
I hope you enjoy them. I find it great to have this set of excellent
articles talking about works done with, or for, Python in science. For
me, it is a reference to remember what was said at the conference. I hope
it can also be interesting for people who were not present at the
conference.
I apologize for being so slow at publishing them. In addition to the
round trip between authors and editors taking a while, I have been
travelling back home and spent way too much time last week finishing off
administrative duties in the US.
Gaël
From: Alan G I. <ai...@am...> - 2008年09月22日 13:34:24
On 9/22/2008 7:59 AM Jeff Whitaker apparently wrote:
> we can't do much if you 
> don't provide a self-contained script, that I can run, which reproduces 
> the problem.
Ideally, a *short* self-contained script.
Or as Simon Tatham puts it, "show me":
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
Alan Isaac
From: Darren D. <dsd...@gm...> - 2008年09月22日 12:34:03
On Monday 22 September 2008 07:55:57 am John Hunter wrote:
> On Mon, Sep 22, 2008 at 5:19 AM, dmitrey <dmi...@uk...> wrote:
> > John Hunter wrote:
> >> On Sun, Sep 21, 2008 at 3:28 PM, dmitrey <dmi...@sc...>
> >> Could you be more precise about what you mean when you say it doesn't
> >> work? It works for me, in that the figure window that was created is
> >> raised, plotted into, and then destroyed. Please tell us what you
> >> expect to happen and what actually happens, as well as what backend
> >> and matplotlib version you are using/. Best is to put your code into
> >> a script and run it with --verbose-helpful and post the output here
> >> along with the other requested info.
> >
> > Thanks for the feedback, I found that the code works OK from terminal, it
> > just fails to close from Eric IDE (the figure continue to exist). Here's
> > --verbose-helpful output (while running from the IDE)
>
> [Please "reply to all" to respond on list so others can contribute to
> an participate in the discussion.]
>
> One problem is you have set your backend in your matplotlibrc ile to
> GTKAgg (this is the default) and Eric is a Qt editor. For starters,
> you will want to set the backend the qt4agg -- see
> http://matplotlib.sourceforge.net/doc/html/faq/installing_faq.html#backends
>
> Getting interactive python shells embedded in user interfaces to work
> with matplotlib is tricky because of GUI threading issues. ipython
> has tackled this for most major GUIs, and I think they have support
> for qt. Fernando and crew will be able to advise further.
Ipython does support the qt backends. I also use eric4, which works just fine 
with the qt4 backend.
Darren
From: Jeff W. <js...@fa...> - 2008年09月22日 12:15:23
De Pauw Antoine wrote:
> Jeff,
>
> I included here a figure where you'll see the border problem for imshow in
> my case
>
> http://img217.imageshack.us/img217/5240/testfigzp3.png
>
> The border wraps at -180 and 180 to form the white line
>
> PS: it is atmospheric ice and not SO2, I just omitted to change the title ^^
>
> Antoine De Pauw
> Collaborateur de recherches, Informatique - Research collaborator, IT
> Laboratoire de chimie quantique et photophysique - Quantum chemistry and
> photophysics laboratory
> Université Libre de Bruxelles - ULB
> 
Antoine: I hate to keep repeating myself - but we can't do much if you 
don't provide a self-contained script, that I can run, which reproduces 
the problem. My guess is that the line along the dateline, and the 
point at the South Pole are missing values (which griddata set to 
missing because they are outside the extent of the data) - but that's 
just a guess until I can reproduce it.
-Jeff
>
> -----Original Message-----
> From: Antoine De Pauw [mailto:and...@ul...] 
> Sent: jeudi 18 septembre 2008 17:23
> To: Jeff Whitaker; and...@ul...
> Cc: 'John Hunter'; 'Matplotlib Users'
> Subject: re:Re: [Matplotlib-users] Information request
>
> Jeff,
>
> No the example doesn't show that line
>
> If I reduce the amount of data, the border will be on every side of the plot
>
> I'll show you an orthographic plot with no maskinf tomorrow and you will see
> the problem easily, it wraps in a white line along the 0° meridian and a
> white circle in the pole
>
> I think it's the imshow layer that is not totally transparent on the map
> background.. I tried every trick I could for example to put some zero-valued
> points on each corner to make imshow interpolate correctly the sides, but
> that doesn't make any difference
>
> 
>> De Pauw Antoine wrote:
>> 
>>> Jeff,
>>>
>>> Yes they disappear, and they fluctuate with the interpolation method used
>>>
>>> For example, nearest interpolation don't show the line
>>>
>>> Also, if I reduce the grid resolution, the line is thicker, and if I use
>>> 
> a
> 
>>> masked array to get rid of undesired values, the border shows really
>>> strongly
>>>
>>> Here's an example everyone will see:
>>>
>>> http://img225.imageshack.us/img225/2671/testfigep2.png
>>>
>>> (everything except the clouds is noise)
>>>
>>> Antoine De Pauw
>>> Collaborateur de recherches, Informatique - Research collaborator, IT
>>> Laboratoire de chimie quantique et photophysique - Quantum chemistry and
>>> photophysics laboratory
>>> Université Libre de Bruxelles - ULB
>>> 
>>> 
>> Antoine: Sorry to seem dense, but I don't see anything wrong with that 
>> plot. I see a white border along the north and south pole, but I 
>> intrepret that to be missing values. However, my eyes are notoriously 
>> bad. I'd like to be to run a script that generates the artifacts 
>> myself, so I can zoom in and see the problem myself. Does the 
>> griddata_demo.py script show the same problem for you?
>>
>> -Jeff
>> 
>>> -----Original Message-----
>>> From: Jeff Whitaker [mailto:js...@fa...] 
>>> Sent: mercredi 17 septembre 2008 19:05
>>> To: John Hunter
>>> Cc: De Pauw Antoine; Matplotlib Users
>>> Subject: Re: [Matplotlib-users] Information request
>>>
>>> John Hunter wrote:
>>> 
>>> 
>>>> On Wed, Sep 17, 2008 at 11:54 AM, John Hunter <jd...@gm...> wrote:
>>>>
>>>> 
>>>> 
>>>> 
>>>>> Attached is a screenshot (zoom.png) from the gimp, zoomed in near the
>>>>> axes border. The black horizontal line is the top axes border, the
>>>>> horizontal grey line is the artifact, the vertical dashed line is a
>>>>> grid line. I don't know if this offers a clue, but if you look at a
>>>>> zoom in the upper right corner, the grey line seems to break up and
>>>>> curve down and to the right (corner.png)
>>>>> 
>>>>> 
>>>>> 
>>>> Sorry, screwed up corner.png (I attached the original and not the
>>>> screenshot). The correct screenshot is attached
>>>> 
>>>>
>>>>
>>>> 
>>>> 
>>> John: OK, now I finally see it. Antoine: Do these artifacts 
>>> disappear if you comment out the imshow call?
>>>
>>> -Jeff
>>>
>>> 
>>> 
>> -- 
>> Jeffrey S. Whitaker Phone : (303)497-6313
>> Meteorologist FAX : (303)497-6449
>> NOAA/OAR/PSD R/PSD1 Email : Jef...@no...
>> 325 Broadway Office : Skaggs Research Cntr 1D-113
>> Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
>>
>>
>>
>> 
>
>
> 
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449
325 Broadway Boulder, CO, USA 80305-3328
From: De P. A. <and...@ul...> - 2008年09月22日 12:13:29
Jeff,
The code snippet has been provided, if you run it with the csv reading code
instead of my binary file reading code you'll see it works
I have added some points at each corner of the map (-180:90 180:90 -180:-90
180:-90) with zero values and the white gap persists
If you cannot help me, that's not a problem, I just cannot give you a better
explanation...
Empty data is something normal in my files, sometimes the satellite has gaps
on its measurements and empty zones on the map are normal
The only problem is that it surrounds all the plot with a grayish border or
shadow when I plot it (a mickey-shaped data plot with white zeroed values
would give a mickey-shaped grey border), and all I want to know is if it is
normal that imshow has such a border, and if it is possible that it comes
from the library
I'll keep searching till I have a solution
Is there another plotting method than imshow which also has interpolation?
Antoine De Pauw
Collaborateur de recherches, Informatique - Research collaborator, IT
Laboratoire de chimie quantique et photophysique - Quantum chemistry and
photophysics laboratory
Université Libre de Bruxelles - ULB
-----Original Message-----
From: Jeff Whitaker [mailto:js...@fa...] 
Sent: lundi 22 septembre 2008 13:59
To: De Pauw Antoine
Cc: 'John Hunter'; 'Matplotlib Users'
Subject: Re: [Matplotlib-users] Information request
De Pauw Antoine wrote:
> Jeff,
>
> I included here a figure where you'll see the border problem for imshow in
> my case
>
> http://img217.imageshack.us/img217/5240/testfigzp3.png
>
> The border wraps at -180 and 180 to form the white line
>
> PS: it is atmospheric ice and not SO2, I just omitted to change the title
^^
>
> Antoine De Pauw
> Collaborateur de recherches, Informatique - Research collaborator, IT
> Laboratoire de chimie quantique et photophysique - Quantum chemistry and
> photophysics laboratory
> Université Libre de Bruxelles - ULB
> 
Antoine: I hate to keep repeating myself - but we can't do much if you 
don't provide a self-contained script, that I can run, which reproduces 
the problem. My guess is that the line along the dateline, and the 
point at the South Pole are missing values (which griddata set to 
missing because they are outside the extent of the data) - but that's 
just a guess until I can reproduce it.
-Jeff
>
> -----Original Message-----
> From: Antoine De Pauw [mailto:and...@ul...] 
> Sent: jeudi 18 septembre 2008 17:23
> To: Jeff Whitaker; and...@ul...
> Cc: 'John Hunter'; 'Matplotlib Users'
> Subject: re:Re: [Matplotlib-users] Information request
>
> Jeff,
>
> No the example doesn't show that line
>
> If I reduce the amount of data, the border will be on every side of the
plot
>
> I'll show you an orthographic plot with no maskinf tomorrow and you will
see
> the problem easily, it wraps in a white line along the 0° meridian and a
> white circle in the pole
>
> I think it's the imshow layer that is not totally transparent on the map
> background.. I tried every trick I could for example to put some
zero-valued
> points on each corner to make imshow interpolate correctly the sides, but
> that doesn't make any difference
>
> 
>> De Pauw Antoine wrote:
>> 
>>> Jeff,
>>>
>>> Yes they disappear, and they fluctuate with the interpolation method
used
>>>
>>> For example, nearest interpolation don't show the line
>>>
>>> Also, if I reduce the grid resolution, the line is thicker, and if I use
>>> 
> a
> 
>>> masked array to get rid of undesired values, the border shows really
>>> strongly
>>>
>>> Here's an example everyone will see:
>>>
>>> http://img225.imageshack.us/img225/2671/testfigep2.png
>>>
>>> (everything except the clouds is noise)
>>>
>>> Antoine De Pauw
>>> Collaborateur de recherches, Informatique - Research collaborator, IT
>>> Laboratoire de chimie quantique et photophysique - Quantum chemistry and
>>> photophysics laboratory
>>> Université Libre de Bruxelles - ULB
>>> 
>>> 
>> Antoine: Sorry to seem dense, but I don't see anything wrong with that 
>> plot. I see a white border along the north and south pole, but I 
>> intrepret that to be missing values. However, my eyes are notoriously 
>> bad. I'd like to be to run a script that generates the artifacts 
>> myself, so I can zoom in and see the problem myself. Does the 
>> griddata_demo.py script show the same problem for you?
>>
>> -Jeff
>> 
>>> -----Original Message-----
>>> From: Jeff Whitaker [mailto:js...@fa...] 
>>> Sent: mercredi 17 septembre 2008 19:05
>>> To: John Hunter
>>> Cc: De Pauw Antoine; Matplotlib Users
>>> Subject: Re: [Matplotlib-users] Information request
>>>
>>> John Hunter wrote:
>>> 
>>> 
>>>> On Wed, Sep 17, 2008 at 11:54 AM, John Hunter <jd...@gm...>
wrote:
>>>>
>>>> 
>>>> 
>>>> 
>>>>> Attached is a screenshot (zoom.png) from the gimp, zoomed in near the
>>>>> axes border. The black horizontal line is the top axes border, the
>>>>> horizontal grey line is the artifact, the vertical dashed line is a
>>>>> grid line. I don't know if this offers a clue, but if you look at a
>>>>> zoom in the upper right corner, the grey line seems to break up and
>>>>> curve down and to the right (corner.png)
>>>>> 
>>>>> 
>>>>> 
>>>> Sorry, screwed up corner.png (I attached the original and not the
>>>> screenshot). The correct screenshot is attached
>>>> 
>>>>
>>>>
>>>> 
>>>> 
>>> John: OK, now I finally see it. Antoine: Do these artifacts 
>>> disappear if you comment out the imshow call?
>>>
>>> -Jeff
>>>
>>> 
>>> 
>> -- 
>> Jeffrey S. Whitaker Phone : (303)497-6313
>> Meteorologist FAX : (303)497-6449
>> NOAA/OAR/PSD R/PSD1 Email : Jef...@no...
>> 325 Broadway Office : Skaggs Research Cntr 1D-113
>> Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
>>
>>
>>
>> 
>
>
> 
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449
325 Broadway Boulder, CO, USA 80305-3328
From: John H. <jd...@gm...> - 2008年09月22日 11:56:05
On Mon, Sep 22, 2008 at 5:19 AM, dmitrey <dmi...@uk...> wrote:
> John Hunter wrote:
>>
>> On Sun, Sep 21, 2008 at 3:28 PM, dmitrey <dmi...@sc...>
>> Could you be more precise about what you mean when you say it doesn't
>> work? It works for me, in that the figure window that was created is
>> raised, plotted into, and then destroyed. Please tell us what you
>> expect to happen and what actually happens, as well as what backend
>> and matplotlib version you are using/. Best is to put your code into
>> a script and run it with --verbose-helpful and post the output here
>> along with the other requested info.
>>
>
> Thanks for the feedback, I found that the code works OK from terminal, it
> just fails to close from Eric IDE (the figure continue to exist). Here's
> --verbose-helpful output (while running from the IDE)
[Please "reply to all" to respond on list so others can contribute to
an participate in the discussion.]
One problem is you have set your backend in your matplotlibrc ile to
GTKAgg (this is the default) and Eric is a Qt editor. For starters,
you will want to set the backend the qt4agg -- see
http://matplotlib.sourceforge.net/doc/html/faq/installing_faq.html#backends
Getting interactive python shells embedded in user interfaces to work
with matplotlib is tricky because of GUI threading issues. ipython
has tackled this for most major GUIs, and I think they have support
for qt. Fernando and crew will be able to advise further.
JDH
From: De P. A. <and...@ul...> - 2008年09月22日 09:05:12
Jeff,
I included here a figure where you'll see the border problem for imshow in
my case
http://img217.imageshack.us/img217/5240/testfigzp3.png
The border wraps at -180 and 180 to form the white line
PS: it is atmospheric ice and not SO2, I just omitted to change the title ^^
Antoine De Pauw
Collaborateur de recherches, Informatique - Research collaborator, IT
Laboratoire de chimie quantique et photophysique - Quantum chemistry and
photophysics laboratory
Université Libre de Bruxelles - ULB
-----Original Message-----
From: Antoine De Pauw [mailto:and...@ul...] 
Sent: jeudi 18 septembre 2008 17:23
To: Jeff Whitaker; and...@ul...
Cc: 'John Hunter'; 'Matplotlib Users'
Subject: re:Re: [Matplotlib-users] Information request
Jeff,
No the example doesn't show that line
If I reduce the amount of data, the border will be on every side of the plot
I'll show you an orthographic plot with no maskinf tomorrow and you will see
the problem easily, it wraps in a white line along the 0° meridian and a
white circle in the pole
I think it's the imshow layer that is not totally transparent on the map
background.. I tried every trick I could for example to put some zero-valued
points on each corner to make imshow interpolate correctly the sides, but
that doesn't make any difference
>De Pauw Antoine wrote:
>> Jeff,
>>
>> Yes they disappear, and they fluctuate with the interpolation method used
>>
>> For example, nearest interpolation don't show the line
>>
>> Also, if I reduce the grid resolution, the line is thicker, and if I use
a
>> masked array to get rid of undesired values, the border shows really
>> strongly
>>
>> Here's an example everyone will see:
>>
>> http://img225.imageshack.us/img225/2671/testfigep2.png
>>
>> (everything except the clouds is noise)
>>
>> Antoine De Pauw
>> Collaborateur de recherches, Informatique - Research collaborator, IT
>> Laboratoire de chimie quantique et photophysique - Quantum chemistry and
>> photophysics laboratory
>> Université Libre de Bruxelles - ULB
>> 
>
>Antoine: Sorry to seem dense, but I don't see anything wrong with that 
>plot. I see a white border along the north and south pole, but I 
>intrepret that to be missing values. However, my eyes are notoriously 
>bad. I'd like to be to run a script that generates the artifacts 
>myself, so I can zoom in and see the problem myself. Does the 
>griddata_demo.py script show the same problem for you?
>
>-Jeff
>>
>> -----Original Message-----
>> From: Jeff Whitaker [mailto:js...@fa...] 
>> Sent: mercredi 17 septembre 2008 19:05
>> To: John Hunter
>> Cc: De Pauw Antoine; Matplotlib Users
>> Subject: Re: [Matplotlib-users] Information request
>>
>> John Hunter wrote:
>> 
>>> On Wed, Sep 17, 2008 at 11:54 AM, John Hunter <jd...@gm...> wrote:
>>>
>>> 
>>> 
>>>> Attached is a screenshot (zoom.png) from the gimp, zoomed in near the
>>>> axes border. The black horizontal line is the top axes border, the
>>>> horizontal grey line is the artifact, the vertical dashed line is a
>>>> grid line. I don't know if this offers a clue, but if you look at a
>>>> zoom in the upper right corner, the grey line seems to break up and
>>>> curve down and to the right (corner.png)
>>>> 
>>>> 
>>> Sorry, screwed up corner.png (I attached the original and not the
>>> screenshot). The correct screenshot is attached
>>> 
>>>
>>>
>>> 
>>
>> John: OK, now I finally see it. Antoine: Do these artifacts 
>> disappear if you comment out the imshow call?
>>
>> -Jeff
>>
>> 
>
>
>-- 
>Jeffrey S. Whitaker Phone : (303)497-6313
>Meteorologist FAX : (303)497-6449
>NOAA/OAR/PSD R/PSD1 Email : Jef...@no...
>325 Broadway Office : Skaggs Research Cntr 1D-113
>Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
>
>
>
From: Eric F. <ef...@ha...> - 2008年09月22日 06:56:52
G Jones wrote:
> Hello,
> Is it possible to label the axes of an imshow plot with something other 
> than pixel number? I want to use imshow for speed, but also would like 
> to be able to put arbitrary X and Y axes vectors on, as in pcolor(x,y,z)
> Thanks,
> Glenn
Using the extent kwarg, you can apply any linear scale to the imshow 
axes. An alternative is to use the Axes.pcolorfast method, which uses 
the imshow code (but without interpolation) if the grid is regular, and 
slower codes, but still much faster than pcolor, if the grid is 
irregular, or not rectangular.
Eric
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: G J. <gle...@gm...> - 2008年09月22日 06:11:58
Hello,
Is it possible to label the axes of an imshow plot with something other than
pixel number? I want to use imshow for speed, but also would like to be able
to put arbitrary X and Y axes vectors on, as in pcolor(x,y,z)
Thanks,
Glenn
From: Dmitri K. <ko...@is...> - 2008年09月22日 05:09:23
Hello,
I am a beginner in matplotlib. I am trying to get pretty svg output, but it 
does not work the way I want it to :)
The bitmap image in svg file does not match the axes box. For example please 
see the code below or image_demo.py from matplotlib sources.
The bitmap overlaps axes box about 2-3 pixels (see right upper corner of the 
produced image). It looks like pdf output has the similar feature. 
I use matplotlib 0.98.3. 
Can you confirm this problem?
---------------------
#!/usr/bin/env python
from pylab import *
a=ones((256, 256))
a[100, 100]=122
a[100, 100]=44
a[0, :]=22
a[255, :]=22
a[:, 0]=22
a[:, 255]=22
figure(1)
imshow(a, interpolation='nearest')
savefig("image.svg")
Best regards,
Dmitri.

Showing 11 results of 11

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