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





Showing 15 results of 15

From: Benjamin R. <ben...@ou...> - 2011年01月03日 22:30:41
On Mon, Jan 3, 2011 at 11:36 AM, Drew Stokes <dre...@gm...> wrote:
>
> Hi,
> I'm very new to Matplotlib and python but I ma getting excellent results in
> what I am trying to achieve. That said I have come up against an issue I
> can't seem to find a resolution to and was wondering if someone here may be
> able to help out.
>
> I have a script that generates a number of plots. The first plot comes out
> fine but there seems to be a little hang over in regards to format or data
> into the following plots. I have alternated the script by putting each plot
> first and the same applies the first plot is fine the rest are ok but there
> are odd points plotted. I wonder if there is a method of flushing or
> clearing formats etc that I could use. Sorry if I'm getting terminology
> wrong this is all still rather new to me.
>
> Drew
>
Drew,
Do you have a very simple script that reproduces the issue you are
experiencing? From the script, we might be able to spot what is wrong.
Ben Root
From: Paul I. <piv...@gm...> - 2011年01月03日 20:53:36
Gf B, on 2011年01月03日 15:23, wrote:
> 
> Can such a "grid of grids" be done with matplotlib? If so, could someone
> show me how?
Take a look at GridSpec - in particular:
http://matplotlib.sourceforge.net/users/gridspec.html#gridspec-using-subplotspec
You'll be able to group the inner grids visually by adjusting the
spacing. As far as getting the spines to only outline the outer
grid, and not the inner grid - I think you'll have to do it
manually by hiding the appropriate spines for the inner subplots.
Have a look here for how to do that:
http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html
best
-- 
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 
From: Gf B <gbs...@gm...> - 2011年01月03日 20:23:59
I'm trying to do something in matplotlib that I do routinely in Mathematica,
a "grid of grids" of plots.
I made a hi-res JPEG of what this looks like in Mathematica:
http://is.gd/k2cXb (you may need to zoom in, but it's definitely legible;
don't focus too much on the Mathematica code; what matters are the figures).
This is just an example for illustration. In reality, I'm interested in
plotting experimental data.
In that example, I have a function called squiggle that takes 4 positive
integers as arguments and produces a squiggly plot. Then I create a "grid
of grids" of such plots, parametrized by row and column numbers. For
example, the lower-left cell of the outer grid corresponds to a=4 and b=1.
The inner grid within that cell consists of all the plots squiggle[4, 1, c,
d], where c and d each range over {1, 2, 3}.
Notice in particular that the outer grid is constructed with different specs
from those used in the inner grid (in this example, the outer grid has
gridlines separating the cells, whereas the inner grids don't). This is
what differentiates this problem from the one of simply building one giant
grid with all the figures. In particular, it is of paramount importance
that the inner grids be grouped visually.
When I try to replicate this with matplotlib I get stuck at the inner
level. IOW, I can make the inner grids, but I don't know how to aggregate
them into the outer grid. For example, this code produces the inner grid
corresponding to a=4, b=1:
#
-----------------------------------------------------------------------------
import matplotlib.pyplot as plt
from numpy import arange, sin, cos, pi
from itertools import product
def squiggle_xy(a, b, c, d, i=arange(0.0, 2*pi, 0.005)):
 return sin(i*a)*cos(i*b), sin(i*c)*cos(i*d)
plt.figure(figsize=(8, 8))
a, b = 4, 1
for i, (c, d) in enumerate(product(range(1, 4), repeat=2)):
 ax = plt.subplot(3, 3, i + 1)
 plt.plot(*squiggle_xy(a, b, c, d))
 ax.set_xticks([])
 ax.set_yticks([])
plt.show()
#
-----------------------------------------------------------------------------
Can such a "grid of grids" be done with matplotlib? If so, could someone
show me how?
Thanks!
G.
From: Xavier G. <xav...@gm...> - 2011年01月03日 19:01:27
On 01/03/2011 05:29 PM, Ryan May wrote:
> On Mon, Jan 3, 2011 at 9:28 AM, Darren Dale<dsd...@gm...> wrote:
>> On Mon, Jan 3, 2011 at 9:45 AM, Ryan May<rm...@gm...> wrote:
>>> On Sun, Jan 2, 2011 at 12:24 PM, Xavier Gnata<xav...@gm...> wrote:
>>>> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/formlayout.py",
>>>> line 59, in<module>
>>>> from PyQt4.QtCore import (Qt, SIGNAL, SLOT, QSize, QString,
>>>> ImportError: cannot import name QString
>>>>
>>>> Looks like this backend hasn't been ported yet.
>>> I remember seeing this on Gentoo and, unfortunately, never tracked it
>>> down. However, it seems to me this is a problem with your PyQt4
>>> install and Python 3, as QString should be found.
>> It's not a problem with the PyQt4 installation. PyQt on python-3 uses
>> PyQt's new API, which uses python strings and does not provide
>> QString, QChar, and friends.
>> http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#selecting-incompatible-apis
> I stand corrected. I don't know what's worse, being so blatently
> wrong, or having wasted a bunch of time in the past trying to "fix" a
> "broken" install.
>
> Time to don ye olde paper bag...
>
> Ryan
>
ok. It means that the qt4 backend need to be ported to python3.
Should I try the tk backend ?
What's the plan? First port matplotlib core? Focus on one backend?
What do you want us to test? How should we report python3 related bugs?
Xavier
From: Drew S. <dre...@gm...> - 2011年01月03日 17:37:00
Hi,
I'm very new to Matplotlib and python but I ma getting excellent results in
what I am trying to achieve. That said I have come up against an issue I
can't seem to find a resolution to and was wondering if someone here may be
able to help out.
I have a script that generates a number of plots. The first plot comes out
fine but there seems to be a little hang over in regards to format or data
into the following plots. I have alternated the script by putting each plot
first and the same applies the first plot is fine the rest are ok but there
are odd points plotted. I wonder if there is a method of flushing or
clearing formats etc that I could use. Sorry if I'm getting terminology
wrong this is all still rather new to me.
Drew
-- 
View this message in context: http://old.nabble.com/clearing-previous-format-changes-tp30579911p30579911.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
On 01/02/2011 05:40 PM, Tom K. wrote:
>
[...]
> FOURIER DEMO - PROBLEM AND FIX IN "lines.py"
> Next I tried my wx-based gui http://wiki.wxpython.org/MatplotlibFourierDemo.
> It raised assertions in lines.py, particularly the part where it tries to
> access
> path, affine =
> self._transformed_path.get_transformed_path_and_affine()
> (line 286)
> since self._transformed_path is None.
> When I fixed that by inserting
> if self._transformed_path is None:
> self._transform_path()
> then it ran into problems with
> ind += self.ind_offset
> since ind_offset didn't exist.
> I fixed that by adding
> if hasattr(self, 'ind_offset'):
>
> Is modifying lines.py the only way to fix this, or should I do something
> else in the fourier demo?
I suspect this is a problem in 1.0 but not in svn or the new 1.0.1rc. I 
can't reproduce it using very recent svn.
Eric
>
> Best regards, Happy New Year to all, etc,
> - Tom K.
>
From: Alan G I. <ala...@gm...> - 2011年01月03日 17:07:22
On 1/3/2011 11:41 AM, Keld Lundgaard wrote:
> I have found that the pdf/eps backend make my plots in a too low resolution (meaning do not uses enough points in the vector description).
"path.simplify" must be set to True in your matplotlibrc?
Alan Isaac
From: Keld L. <kel...@gm...> - 2011年01月03日 16:41:19
Dear mailing list,
I have found that the pdf/eps backend make my plots in a too low resolution
(meaning do not uses enough points in the vector description).
Is there any way to change this? (simply making the DPI higher does not
change the case)
Right now I have to save to png and then convert to pdf, which is not
elegant!
I appreciate any help
Keld
From: Ryan M. <rm...@gm...> - 2011年01月03日 16:29:59
On Mon, Jan 3, 2011 at 9:28 AM, Darren Dale <dsd...@gm...> wrote:
> On Mon, Jan 3, 2011 at 9:45 AM, Ryan May <rm...@gm...> wrote:
>> On Sun, Jan 2, 2011 at 12:24 PM, Xavier Gnata <xav...@gm...> wrote:
>>> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/formlayout.py",
>>> line 59, in <module>
>>>   from PyQt4.QtCore import (Qt, SIGNAL, SLOT, QSize, QString,
>>> ImportError: cannot import name QString
>>>
>>> Looks like this backend hasn't been ported yet.
>>
>> I remember seeing this on Gentoo and, unfortunately, never tracked it
>> down. However, it seems to me this is a problem with your PyQt4
>> install and Python 3, as QString should be found.
>
> It's not a problem with the PyQt4 installation. PyQt on python-3 uses
> PyQt's new API, which uses python strings and does not provide
> QString, QChar, and friends.
> http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#selecting-incompatible-apis
I stand corrected. I don't know what's worse, being so blatently
wrong, or having wasted a bunch of time in the past trying to "fix" a
"broken" install.
Time to don ye olde paper bag...
Ryan
-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
From: Darren D. <dsd...@gm...> - 2011年01月03日 15:28:19
On Mon, Jan 3, 2011 at 9:45 AM, Ryan May <rm...@gm...> wrote:
> On Sun, Jan 2, 2011 at 12:24 PM, Xavier Gnata <xav...@gm...> wrote:
>> which backend should we use?
>> It does not work with pyqt4
>>
>> Traceback (most recent call last):
>>  File "<stdin>", line 1, in <module>
>>  File "/usr/local/lib/python3.1/dist-packages/pylab.py", line 1, in
>> <module>
>>   from matplotlib.pylab import *
>>  File "/usr/local/lib/python3.1/dist-packages/matplotlib/pylab.py",
>> line 259, in <module>
>>   from matplotlib.pyplot import *
>>  File "/usr/local/lib/python3.1/dist-packages/matplotlib/pyplot.py",
>> line 95, in <module>
>>   new_figure_manager, draw_if_interactive, show = pylab_setup()
>>  File
>> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/__init__.py", line
>> 25, in pylab_setup
>>   globals(),locals(),[backend_name])
>>  File
>> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/backend_qt4agg.py",
>> line 12, in <module>
>>   from .backend_qt4 import QtCore, QtGui, FigureManagerQT,
>> FigureCanvasQT,\
>>  File
>> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/backend_qt4.py",
>> line 16, in <module>
>>   import matplotlib.backends.qt4_editor.figureoptions as figureoptions
>>  File
>> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/figureoptions.py",
>> line 11, in <module>
>>   import matplotlib.backends.qt4_editor.formlayout as formlayout
>>  File
>> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/formlayout.py",
>> line 59, in <module>
>>   from PyQt4.QtCore import (Qt, SIGNAL, SLOT, QSize, QString,
>> ImportError: cannot import name QString
>>
>> Looks like this backend hasn't been ported yet.
>
> I remember seeing this on Gentoo and, unfortunately, never tracked it
> down. However, it seems to me this is a problem with your PyQt4
> install and Python 3, as QString should be found.
It's not a problem with the PyQt4 installation. PyQt on python-3 uses
PyQt's new API, which uses python strings and does not provide
QString, QChar, and friends.
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#selecting-incompatible-apis
Darren
From: Ryan M. <rm...@gm...> - 2011年01月03日 14:45:48
On Sun, Jan 2, 2011 at 12:24 PM, Xavier Gnata <xav...@gm...> wrote:
> which backend should we use?
> It does not work with pyqt4
>
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "/usr/local/lib/python3.1/dist-packages/pylab.py", line 1, in
> <module>
>   from matplotlib.pylab import *
>  File "/usr/local/lib/python3.1/dist-packages/matplotlib/pylab.py",
> line 259, in <module>
>   from matplotlib.pyplot import *
>  File "/usr/local/lib/python3.1/dist-packages/matplotlib/pyplot.py",
> line 95, in <module>
>   new_figure_manager, draw_if_interactive, show = pylab_setup()
>  File
> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/__init__.py", line
> 25, in pylab_setup
>   globals(),locals(),[backend_name])
>  File
> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/backend_qt4agg.py",
> line 12, in <module>
>   from .backend_qt4 import QtCore, QtGui, FigureManagerQT,
> FigureCanvasQT,\
>  File
> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/backend_qt4.py",
> line 16, in <module>
>   import matplotlib.backends.qt4_editor.figureoptions as figureoptions
>  File
> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/figureoptions.py",
> line 11, in <module>
>   import matplotlib.backends.qt4_editor.formlayout as formlayout
>  File
> "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/formlayout.py",
> line 59, in <module>
>   from PyQt4.QtCore import (Qt, SIGNAL, SLOT, QSize, QString,
> ImportError: cannot import name QString
>
> Looks like this backend hasn't been ported yet.
I remember seeing this on Gentoo and, unfortunately, never tracked it
down. However, it seems to me this is a problem with your PyQt4
install and Python 3, as QString should be found.
Ryan
-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
From: Jeff W. <js...@fa...> - 2011年01月03日 05:20:41
On 1/2/11 9:17 PM, Linuxer Wang wrote:
>
> Hi, Jeff
>
> Sorry for the confusion. Yes, I mean to draw the black/white border 
> (called fancy box in m_map). Drawing the maps is really easy to use, 
> thanks for your great Api. Is there plan to support the fancy border 
> feature in near future?
No, but patches are welcome.
-Jeff
>
> Thank you for replying.
>
>
> On 01/02/2011 06:09 PM, Jeff Whitaker wrote:
>> On 1/2/11 1:01 PM, Linuxer Wang wrote:
>>> This may be a question for Jeffrey Whitaker but welcome anyone's help.
>>>
>>> I used to use the m_map tool for matlab 
>>> (http://www.eos.ubc.ca/~rich/map.html 
>>> <http://www.eos.ubc.ca/%7Erich/map.html>). Does anybody know how to 
>>> draw the same maps in matplotlib (BaseMap)? Specifically, how to 
>>> draw axes in such figures: 
>>> http://www.eos.ubc.ca/~rich/private/extblueocean.gif 
>>> <http://www.eos.ubc.ca/%7Erich/private/extblueocean.gif> or 
>>> http://www.eos.ubc.ca/~rich/private/exmiller.gif 
>>> <http://www.eos.ubc.ca/%7Erich/private/exmiller.gif> ?
>>>
>>> Thanks a lot.
>>
>> Can you be more specific about what you need help with? Is it 
>> drawing the map itself, or drawing the lines on the map? 
>> examples/nytolondon.py shows how to draw great circles, which is 
>> similar to the extblueocean.gif example.
>>
>>
>> If you are asking how to draw that black and white border around the 
>> map, that is not supported. However, it is easy to draw labelled 
>> meridians and parallels (with the drawparallels and drawmeridians 
>> class methods). Docs are at 
>> http://matplotlib.sourceforge.net/basemap/doc/html/api/index.html, 
>> and there are lots of examples in the 'examples' directory of the 
>> source distribution.
>>
>> HTH,
>>
>> -Jeff
>>
>>
>> ------------------------------------------------------------------------------
>> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
>> to consolidate database storage, standardize their database environment, and,
>> should the need arise, upgrade to a full multi-node Oracle RAC database
>> without downtime or disruption
>> http://p.sf.net/sfu/oracle-sfdevnl
>>
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li... <mailto:Mat...@li...>
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Linuxer W. <lin...@gm...> - 2011年01月03日 04:17:16
Hi, Jeff
Sorry for the confusion. Yes, I mean to draw the black/white border 
(called fancy box in m_map). Drawing the maps is really easy to use, 
thanks for your great Api. Is there plan to support the fancy border 
feature in near future?
Thank you for replying.
On 01/02/2011 06:09 PM, Jeff Whitaker wrote:
> On 1/2/11 1:01 PM, Linuxer Wang wrote:
>> This may be a question for Jeffrey Whitaker but welcome anyone's help.
>>
>> I used to use the m_map tool for matlab 
>> (http://www.eos.ubc.ca/~rich/map.html 
>> <http://www.eos.ubc.ca/%7Erich/map.html>). Does anybody know how to 
>> draw the same maps in matplotlib (BaseMap)? Specifically, how to draw 
>> axes in such figures: 
>> http://www.eos.ubc.ca/~rich/private/extblueocean.gif 
>> <http://www.eos.ubc.ca/%7Erich/private/extblueocean.gif> or 
>> http://www.eos.ubc.ca/~rich/private/exmiller.gif 
>> <http://www.eos.ubc.ca/%7Erich/private/exmiller.gif> ?
>>
>> Thanks a lot.
>
> Can you be more specific about what you need help with? Is it drawing 
> the map itself, or drawing the lines on the map? 
> examples/nytolondon.py shows how to draw great circles, which is 
> similar to the extblueocean.gif example.
>
>
> If you are asking how to draw that black and white border around the 
> map, that is not supported. However, it is easy to draw labelled 
> meridians and parallels (with the drawparallels and drawmeridians 
> class methods). Docs are at 
> http://matplotlib.sourceforge.net/basemap/doc/html/api/index.html, and 
> there are lots of examples in the 'examples' directory of the source 
> distribution.
>
> HTH,
>
> -Jeff
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
ayg256 wrote:
> 
> First of all, thanks to the matplotlib developers for all the great job. 
> I
> have just successfully installed matplotlib from source (r8827) in my
> macbook for python 2.7. However, I found a couple of bumps in the road
> that
> I'd like to share:
> 
> ...
> 
> Cheers,
> 
> AY
> 
Dear AY,
Thanks so much for posting your followup. I just went through building
matplotlib 1.0.0 from source on my new iMac and your directions were
invaluable. I did need to make some minor modifications to match the
peculiarities of my setup - for example I am installing it with python 2.6. 
PYC FILE ISSUES
After install and the manual copy to /Library/Python/2.6/site-packages
(which is where numpy and scipy get built on this machine), the pyc files
are pointing to /usr/local/lib still, which is something that shows up in
ipython when browsing functions, and in backtraces... apparently this is a
bug in python that got fixed in 2.7. To work around, I just remade the pyc
files. I recompiled them all with compileall.compile_dir. The copying and
pyc compilation had to be done with sudo commands since I didn't have
permissions.
FOURIER DEMO - PROBLEM AND FIX IN "lines.py"
Next I tried my wx-based gui http://wiki.wxpython.org/MatplotlibFourierDemo.
It raised assertions in lines.py, particularly the part where it tries to
access
 path, affine =
self._transformed_path.get_transformed_path_and_affine()
(line 286) 
since self._transformed_path is None.
When I fixed that by inserting
 if self._transformed_path is None:
 self._transform_path()
then it ran into problems with
 ind += self.ind_offset
since ind_offset didn't exist.
I fixed that by adding 
 if hasattr(self, 'ind_offset'): 
Is modifying lines.py the only way to fix this, or should I do something
else in the fourier demo?
Best regards, Happy New Year to all, etc, 
 - Tom K.
-- 
View this message in context: http://old.nabble.com/caveats-found-installing-matplotlib-from-svn-source-on-python-2.7-in-mac-os-x-Leopard-tp30478244p30575604.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Jeff W. <js...@fa...> - 2011年01月03日 02:23:33
On 1/2/11 1:01 PM, Linuxer Wang wrote:
> This may be a question for Jeffrey Whitaker but welcome anyone's help.
>
> I used to use the m_map tool for matlab 
> (http://www.eos.ubc.ca/~rich/map.html 
> <http://www.eos.ubc.ca/%7Erich/map.html>). Does anybody know how to 
> draw the same maps in matplotlib (BaseMap)? Specifically, how to draw 
> axes in such figures: 
> http://www.eos.ubc.ca/~rich/private/extblueocean.gif 
> <http://www.eos.ubc.ca/%7Erich/private/extblueocean.gif> or 
> http://www.eos.ubc.ca/~rich/private/exmiller.gif 
> <http://www.eos.ubc.ca/%7Erich/private/exmiller.gif> ?
>
> Thanks a lot.
Can you be more specific about what you need help with? Is it drawing 
the map itself, or drawing the lines on the map? examples/nytolondon.py 
shows how to draw great circles, which is similar to the 
extblueocean.gif example.
If you are asking how to draw that black and white border around the 
map, that is not supported. However, it is easy to draw labelled 
meridians and parallels (with the drawparallels and drawmeridians class 
methods). Docs are at 
http://matplotlib.sourceforge.net/basemap/doc/html/api/index.html, and 
there are lots of examples in the 'examples' directory of the source 
distribution.
HTH,
-Jeff
1 message has been excluded from this view by a project administrator.

Showing 15 results of 15

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