SourceForge logo
SourceForge logo
Menu

matplotlib-devel — matplotlib developers

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(1)
Nov
(33)
Dec
(20)
2004 Jan
(7)
Feb
(44)
Mar
(51)
Apr
(43)
May
(43)
Jun
(36)
Jul
(61)
Aug
(44)
Sep
(25)
Oct
(82)
Nov
(97)
Dec
(47)
2005 Jan
(77)
Feb
(143)
Mar
(42)
Apr
(31)
May
(93)
Jun
(93)
Jul
(35)
Aug
(78)
Sep
(56)
Oct
(44)
Nov
(72)
Dec
(75)
2006 Jan
(116)
Feb
(99)
Mar
(181)
Apr
(171)
May
(112)
Jun
(86)
Jul
(91)
Aug
(111)
Sep
(77)
Oct
(72)
Nov
(57)
Dec
(51)
2007 Jan
(64)
Feb
(116)
Mar
(70)
Apr
(74)
May
(53)
Jun
(40)
Jul
(519)
Aug
(151)
Sep
(132)
Oct
(74)
Nov
(282)
Dec
(190)
2008 Jan
(141)
Feb
(67)
Mar
(69)
Apr
(96)
May
(227)
Jun
(404)
Jul
(399)
Aug
(96)
Sep
(120)
Oct
(205)
Nov
(126)
Dec
(261)
2009 Jan
(136)
Feb
(136)
Mar
(119)
Apr
(124)
May
(155)
Jun
(98)
Jul
(136)
Aug
(292)
Sep
(174)
Oct
(126)
Nov
(126)
Dec
(79)
2010 Jan
(109)
Feb
(83)
Mar
(139)
Apr
(91)
May
(79)
Jun
(164)
Jul
(184)
Aug
(146)
Sep
(163)
Oct
(128)
Nov
(70)
Dec
(73)
2011 Jan
(235)
Feb
(165)
Mar
(147)
Apr
(86)
May
(74)
Jun
(118)
Jul
(65)
Aug
(75)
Sep
(162)
Oct
(94)
Nov
(48)
Dec
(44)
2012 Jan
(49)
Feb
(40)
Mar
(88)
Apr
(35)
May
(52)
Jun
(69)
Jul
(90)
Aug
(123)
Sep
(112)
Oct
(120)
Nov
(105)
Dec
(116)
2013 Jan
(76)
Feb
(26)
Mar
(78)
Apr
(43)
May
(61)
Jun
(53)
Jul
(147)
Aug
(85)
Sep
(83)
Oct
(122)
Nov
(18)
Dec
(27)
2014 Jan
(58)
Feb
(25)
Mar
(49)
Apr
(17)
May
(29)
Jun
(39)
Jul
(53)
Aug
(52)
Sep
(35)
Oct
(47)
Nov
(110)
Dec
(27)
2015 Jan
(50)
Feb
(93)
Mar
(96)
Apr
(30)
May
(55)
Jun
(83)
Jul
(44)
Aug
(8)
Sep
(5)
Oct
Nov
(1)
Dec
(1)
2016 Jan
Feb
Mar
(1)
Apr
May
Jun
(2)
Jul
Aug
(3)
Sep
(1)
Oct
(3)
Nov
Dec
2017 Jan
Feb
(5)
Mar
Apr
May
Jun
Jul
(3)
Aug
Sep
(7)
Oct
Nov
Dec
2018 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S
1
2
3
(3)
4
(10)
5
(1)
6
(2)
7
(3)
8
(4)
9
10
(7)
11
(4)
12
(1)
13
(4)
14
15
16
17
(1)
18
(1)
19
(4)
20
(7)
21
(1)
22
(1)
23
(5)
24
(7)
25
(8)
26
(17)
27
(5)
28
29
(3)
30
(10)
31
(7)




Showing 8 results of 8

From: Fernando P. <Fer...@co...> - 2006年01月25日 19:08:11
Ted Drain wrote:
> Maybe one of you guys could refresh my memory. What is the calling 
> sequence we're going for?
My original message was this:
============================================================================
In [1]: gcf().set_figsize_inches((8,8),forward=True)
---------------------------------------------------------------------------
exceptions.TypeError Traceback (most recent
call last)
/home/fperez/code/python/pylab/arrows/<ipython console>
/usr/lib/python2.3/site-packages/matplotlib/figure.py in
set_figsize_inches(self, *args, **kwargs)
 266 canvasw = w*dpival
 267 canvash = h*dpival
--> 268 self.canvas.resize(int(canvasw), int(canvash))
 269
 270 def get_size_inches(self):
TypeError: resize() takes exactly 2 arguments (3 given)
A quick look at the backends code shows this:
 def resize(self, event):
 width, height = event.width, event.height
 self.toolbar.configure(width=width) # , height=height)
So quite obviously, this doesn't work: it's expecting an event object, and a
pair of numbers is being passed.
I'm not sure what the proper fix should be here, I don't really know the code
flow well enough.
I should also note that the gcf().set_figsize_inches((8,8),forward=True) seems
to produce a different on-screen result per backend (in some it doesn't do
anything, in Qt it stretches the figure only horizontally, ...) That code
seems to be pretty much broken.
I noticed that figure(figsize=(8,8)) seems to work fine, but I'm not sure how
to programmatically resize an existing figure, given the above problems.
============================================================================
Beyond this, I'll leave it to the backend experts as to what the right choices 
should be. I just noted that shipping a feature _known_ to break on all but 
one backend doesn't sound like the best approach :)
Cheers,
f
From: Robert K. <rob...@gm...> - 2006年01月25日 18:06:48
Charlie Moad wrote:
> I left the check for this env variable there for this reason. Just in
> case someone wants to put the data somewhere else on the system. It
> doesn't support a list of directories now, but wouldn't you presume
> the user who sets it knows where the data is? Privileges should not
> be an issue at all now since the data is embedded in the module.
Sure, but he may be putting data in multiple places (fonts in one directory,
colormaps in another, basemap data in a third, etc.). Or only providing a few
new pieces of data, not the complete suite of data.
And once we use a path-based approach, it would be easy to keep fonts and other
data in separate directories inside the package. You simply append both
directories to the end of MATPLOTLIBDATAPATH. AFAICT, that's the only objection
against moving the data into the lib/matplotlib/mpl-data/ in the source
distribution.
> I still think the best approach is going to be to specify the mpldata
> as package_data, like it is, instead of data_files. Then all the
> logic in the setup file goes away. I tried this, but distutils would
> not respect "../fonts" type directories. We would actually have to
> move the data files into the mpl module.
Yes, I agree with you. Believe me, I'm not arguing against installing data in
the package itself.
> Matplotlib is a python plugin, not an application. I can't think of
> any other python modules that dump their data files around the system
> during installation. 
Oh, there are plenty, but they all suck for doing so. Unless if they are
following a particular standard, like Gnome or KDE applications.
-- 
Robert Kern
rob...@gm...
"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
 -- Richard Harter
From: Charlie M. <cw...@gm...> - 2006年01月25日 17:35:15
On 1/25/06, Robert Kern <rob...@gm...> wrote:
> Charlie Moad wrote:
> > Short explanation:
> > Use --prefix instead
> >
> > Long explanation:
> > Without explicitly moving around files in cvs and declaring the
> > mpl data as package_data, it is pretty hard to be 100% compliant. The
> > code you put below is basically how distutils now determines where to
> > stick data_files, and that is why I used it as a guide too faking it.
> > --home is unix specific I think, and I don't know that it gives you
> > any power over --prefix. --install-data is useless now since the data
> > is embedded into the matplotlib module itself.
>
> There is another problem with the current approach. The current setup.py =
assumes
> that if you have an egg-capable setuptools that you are building an egg a=
nd so
> sets the data path for that. However, that's not always the case. For exa=
mple,
> the --single-version-externally-managed option should install matplotlib =
and
> company as regular Python packages into site-packages (or wherever) with =
a
> .egg-info/ directory alongside. This is how Debian (and presumably other
> distros) is going to install eggified packages. However, the choice for t=
he data
> path ends up being incorrect.
I have ran into this as well, and it is just coming from the game of
trying to make the setup file work with distutils and setuptools.
> I think a general rule might be to say that the innards of distutils are =
usually
> a bad example for *using* distutils. It makes a lot of assumptions inside=
, and
> the current mechanism in mpl's setup.py is fairly fragile. distutils is a=
 piece
> of junk, and really, really violates the "There should be one-- and prefe=
rably
> only one --obvious way to do it," principle everywhere it possibly can, i=
t seems.
>
> The most robust approach seems to be this:
>
> http://wiki.python.org/moin/DistutilsInstallDataScattered
>
> > I think I wrote a little a while back justifying the move, but
> > I'll restate. If you look at older versions of the
> > matplotlib._get_data_path() method, it was becoming a huge collection
> > of special cases. Those cases are still in cvs, but commented out.
> > It had the approach of try everything until I find the data. Now you
> > could acutally write this method in one line, "return
> > os.sep.join([os.path.dirname(__file__), 'mpl-data'])". However it
> > does a little more by still checking the MATPLOTLIBDATA env variable
> > first and verifying that the embedded mpl-data folder actually exists.
>
> Have we ever considered moving to a path-based solution? For example, one=
 would
> set MATPLOTLIBDATAPATH to be a list of directories. When something inside
> matplotlib needs data, it will go through the list of directories looking=
 for
> the file, and finally checking os.path.join([os.path.dirname(__file__),
> 'mpl-data']) if the file is not on the path. This would enable users with=
out
> privileges to manipulate site-packages or /usr/local/share to make replac=
ements
> or additions.
I left the check for this env variable there for this reason. Just in
case someone wants to put the data somewhere else on the system. It
doesn't support a list of directories now, but wouldn't you presume
the user who sets it knows where the data is? Privileges should not
be an issue at all now since the data is embedded in the module.
I still think the best approach is going to be to specify the mpldata
as package_data, like it is, instead of data_files. Then all the
logic in the setup file goes away. I tried this, but distutils would
not respect "../fonts" type directories. We would actually have to
move the data files into the mpl module.
Matplotlib is a python plugin, not an application. I can't think of
any other python modules that dump their data files around the system
during installation. I have seen many projects though with
glade/png/etc. files embedded into the module as package_data and they
avoid all these issues mentioned above.
From: Robert K. <rob...@gm...> - 2006年01月25日 17:08:12
Charlie Moad wrote:
> Short explanation:
> Use --prefix instead
> 
> Long explanation:
> Without explicitly moving around files in cvs and declaring the
> mpl data as package_data, it is pretty hard to be 100% compliant. The
> code you put below is basically how distutils now determines where to
> stick data_files, and that is why I used it as a guide too faking it. 
> --home is unix specific I think, and I don't know that it gives you
> any power over --prefix. --install-data is useless now since the data
> is embedded into the matplotlib module itself.
There is another problem with the current approach. The current setup.py assumes
that if you have an egg-capable setuptools that you are building an egg and so
sets the data path for that. However, that's not always the case. For example,
the --single-version-externally-managed option should install matplotlib and
company as regular Python packages into site-packages (or wherever) with a
.egg-info/ directory alongside. This is how Debian (and presumably other
distros) is going to install eggified packages. However, the choice for the data
path ends up being incorrect.
I think a general rule might be to say that the innards of distutils are usually
a bad example for *using* distutils. It makes a lot of assumptions inside, and
the current mechanism in mpl's setup.py is fairly fragile. distutils is a piece
of junk, and really, really violates the "There should be one-- and preferably
only one --obvious way to do it," principle everywhere it possibly can, it seems.
The most robust approach seems to be this:
 http://wiki.python.org/moin/DistutilsInstallDataScattered
> I think I wrote a little a while back justifying the move, but
> I'll restate. If you look at older versions of the
> matplotlib._get_data_path() method, it was becoming a huge collection
> of special cases. Those cases are still in cvs, but commented out. 
> It had the approach of try everything until I find the data. Now you
> could acutally write this method in one line, "return
> os.sep.join([os.path.dirname(__file__), 'mpl-data'])". However it
> does a little more by still checking the MATPLOTLIBDATA env variable
> first and verifying that the embedded mpl-data folder actually exists.
Have we ever considered moving to a path-based solution? For example, one would
set MATPLOTLIBDATAPATH to be a list of directories. When something inside
matplotlib needs data, it will go through the list of directories looking for
the file, and finally checking os.path.join([os.path.dirname(__file__),
'mpl-data']) if the file is not on the path. This would enable users without
privileges to manipulate site-packages or /usr/local/share to make replacements
or additions.
-- 
Robert Kern
rob...@gm...
"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
 -- Richard Harter
From: Nadia D. <den...@st...> - 2006年01月25日 17:06:48
On Jan 25, 2006, at 11:51 AM, Charlie Moad wrote:
> Short explanation:
> Use --prefix instead
Hmm, I don't want to use --prefix.
I understand the reasoning behind this change but I think it misses one
important case - installations under a user specified directory=20
(without getting the
unnecessary tree structure from '--home' and ''--prefix'),
For example, to install matplotlib under /home/users/matpltolib in the=20=
past
I would do
python setup.py install --install-lib=3D/home/user=20
--install-data=3D/home/user/matplotlib
This, I think, covers two important cases:
- easy support for multiple versions on the system
- installation in a user directory (not having write permissions in=20
site-packages)
Of course this can be done (in an ugly way) with --prefix.
I think you and I need the same kind of installation - data files=20
bundled with
matplotlib, except that I don't want to install them in site-packages=20
and this is
what's missing from the setup file now.
Am I missing something?
Nadia
> Long explanation:
> Without explicitly moving around files in cvs and declaring the
> mpl data as package_data, it is pretty hard to be 100% compliant. The
> code you put below is basically how distutils now determines where to
> stick data_files, and that is why I used it as a guide too faking it.
> --home is unix specific I think, and I don't know that it gives you
> any power over --prefix. --install-data is useless now since the data
> is embedded into the matplotlib module itself.
> I think I wrote a little a while back justifying the move, but
> I'll restate. If you look at older versions of the
> matplotlib._get_data_path() method, it was becoming a huge collection
> of special cases. Those cases are still in cvs, but commented out.
> It had the approach of try everything until I find the data. Now you
> could acutally write this method in one line, "return
> os.sep.join([os.path.dirname(__file__), 'mpl-data'])". However it
> does a little more by still checking the MATPLOTLIBDATA env variable
> first and verifying that the embedded mpl-data folder actually exists.
> Another strong reason for the move is it makes matplotlib a lot
> more embeddable. I personally have some plugins I have developed for
> applications that ship with their own python, and it is much easier to
> just drop matplotlib into on place, and not have to worry about
> installing data files outside the scope of the application. It also
> allows for multiple versions/instances of matplotlib to live on one
> machine, where as before they would be forced to use a single version
> of the dataset unless special care was taken to prevent that.
>
> - Charlie
>
> On 1/25/06, Nadezhda Dencheva <den...@st...> wrote:
>> Hello,
>>
>> I somehow missed all the action between matplotlib 0.84 and 0.86.2.
>> Trying to install v0.86.2 I find data files are not installed=20
>> correctly
>> in all cases. Specifically support for '--home=3D' and =
'--install-data'=20
>> is
>> broken. (We use --install-data for our installations.)
>>
>> I know this is a very tricky issue (in fact if someone can tell me
>> how to get this done correctly for bdist_wininst, I'll be very=20
>> gratefull)
>> but here's a suggestion which worked for me. I am copying the =
relevant
>> part from setup.py and hope someone has a better solution.
>>
>> Thanks,
>> Nadia Dencheva
>>
>>
>> if has_setuptools: # EGG's make it simple
>> datapath =3D os.path.curdir
>> datapath =3D os.sep.join([datapath, 'matplotlib', 'mpl-data']) #=20=
>> This is where mpl data
>> will be installed
>> # logic from distutils.command.install.finalize_options
>> elif os.name =3D=3D 'posix':
>> py_version_short =3D sys.version[0:3]
>> #datapath =3D INSTALL_SCHEMES['unix_prefix']['platlib']
>> #datapath =3D datapath.replace('$platbase/',=20
>> '').replace('$py_version_short',
>> py_version_short)
>> #datapath =3D os.sep.join(['mpl-data']) # This is where mpl data=20=
>> will be installed
>> args =3D sys.argv
>> for a in args:
>> if a.startswith('--home=3D'):
>> dir =3D os.path.abspath(a.split('=3D')[1])
>> datapath =3D os.path.join(dir, 'lib', 'python',=20
>> 'matplotlib', 'mpl-data')
>> elif a.startswith('--prefix=3D'):
>> dir =3D os.path.abspath(a.split('=3D')[1])
>> pythonver =3D 'python'+py_version_short
>> datapath =3D os.path.join(dir, 'lib', pythonver,=20
>> 'site-packages', 'matplotlib',
>> 'mpl-data')
>> elif a.startswith('--install-data=3D'):
>> dir =3D os.path.abspath(a.split('=3D')[1])
>> datapath =3D os.path.join(dir, 'mpl-data')
>> else:
>> pythonlib =3D=20
>> distutils.sysconfig.get_python_lib(plat_specific=3D1)
>> datapath =3D os.path.join(pythonlib, 'matplotlib',=20
>> 'mpl-data')
>> else:
>> datapath =3D =
INSTALL_SCHEMES[os.name]['platlib'].replace('$base/',=20
>> '')
>> datapath =3D os.sep.join([datapath, 'matplotlib', 'mpl-data']) #=20=
>> This is where mpl data
>> will be installed
>>
>> Charlie Moad wrote:
>>> Alright, I'll give it a shot and let you know.
>>>
>>> On 12/7/05, John Hunter <jdh...@ac...> wrote:
>>>
>>>>>>>>> "Charlie" =3D=3D Charlie Moad <cw...@gm...> writes:
>>>>
>>>> Charlie> Would it be considered cleaner to embed the mpl data=20
>>>> into
>>>> Charlie> the matplotlib module? This would make it easier to
>>>> Charlie> clean a mpl install. The data path could be expressed
>>>> Charlie> fairly easily too, as a one-liner:
>>>>
>>>> Charlie> os.sep.join([os.path.split(matplotlib.__file__)[0],
>>>> Charlie> 'matplotlib-data'])
>>>>
>>>> Yes, if you can engineer in a way that works with setup w/ and w/o =
a
>>>> --prefix arg it would be preferable, in my view.
>>>>
>>>> JDH
>>>>
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> This SF.net email is sponsored by: Splunk Inc. Do you grep through=20=
>>> log files
>>> for problems? Stop! Download the new AJAX search engine that makes
>>> searching your log files as easy as surfing the web. DOWNLOAD=20
>>> SPLUNK!
>>> http://ads.osdn.com/?ad_idv37&alloc_id=16865&op=3Dclick
>>> _______________________________________________
>>> Matplotlib-devel mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>
From: Charlie M. <cw...@gm...> - 2006年01月25日 16:51:44
Short explanation:
 Use --prefix instead
Long explanation:
 Without explicitly moving around files in cvs and declaring the
mpl data as package_data, it is pretty hard to be 100% compliant. The
code you put below is basically how distutils now determines where to
stick data_files, and that is why I used it as a guide too faking it.=20
--home is unix specific I think, and I don't know that it gives you
any power over --prefix. --install-data is useless now since the data
is embedded into the matplotlib module itself.
 I think I wrote a little a while back justifying the move, but
I'll restate. If you look at older versions of the
matplotlib._get_data_path() method, it was becoming a huge collection
of special cases. Those cases are still in cvs, but commented out.=20
It had the approach of try everything until I find the data. Now you
could acutally write this method in one line, "return
os.sep.join([os.path.dirname(__file__), 'mpl-data'])". However it
does a little more by still checking the MATPLOTLIBDATA env variable
first and verifying that the embedded mpl-data folder actually exists.
 Another strong reason for the move is it makes matplotlib a lot
more embeddable. I personally have some plugins I have developed for
applications that ship with their own python, and it is much easier to
just drop matplotlib into on place, and not have to worry about
installing data files outside the scope of the application. It also
allows for multiple versions/instances of matplotlib to live on one
machine, where as before they would be forced to use a single version
of the dataset unless special care was taken to prevent that.
- Charlie
On 1/25/06, Nadezhda Dencheva <den...@st...> wrote:
> Hello,
>
> I somehow missed all the action between matplotlib 0.84 and 0.86.2.
> Trying to install v0.86.2 I find data files are not installed correctly
> in all cases. Specifically support for '--home=3D' and '--install-data' i=
s
> broken. (We use --install-data for our installations.)
>
> I know this is a very tricky issue (in fact if someone can tell me
> how to get this done correctly for bdist_wininst, I'll be very gratefull)
> but here's a suggestion which worked for me. I am copying the relevant
> part from setup.py and hope someone has a better solution.
>
> Thanks,
> Nadia Dencheva
>
>
> if has_setuptools: # EGG's make it simple
> datapath =3D os.path.curdir
> datapath =3D os.sep.join([datapath, 'matplotlib', 'mpl-data']) # Thi=
s is where mpl data
> will be installed
> # logic from distutils.command.install.finalize_options
> elif os.name =3D=3D 'posix':
> py_version_short =3D sys.version[0:3]
> #datapath =3D INSTALL_SCHEMES['unix_prefix']['platlib']
> #datapath =3D datapath.replace('$platbase/', '').replace('$py_versio=
n_short',
> py_version_short)
> #datapath =3D os.sep.join(['mpl-data']) # This is where mpl data wil=
l be installed
> args =3D sys.argv
> for a in args:
> if a.startswith('--home=3D'):
> dir =3D os.path.abspath(a.split('=3D')[1])
> datapath =3D os.path.join(dir, 'lib', 'python', 'matplotlib'=
, 'mpl-data')
> elif a.startswith('--prefix=3D'):
> dir =3D os.path.abspath(a.split('=3D')[1])
> pythonver =3D 'python'+py_version_short
> datapath =3D os.path.join(dir, 'lib', pythonver, 'site-packa=
ges', 'matplotlib',
> 'mpl-data')
> elif a.startswith('--install-data=3D'):
> dir =3D os.path.abspath(a.split('=3D')[1])
> datapath =3D os.path.join(dir, 'mpl-data')
> else:
> pythonlib =3D distutils.sysconfig.get_python_lib(plat_specif=
ic=3D1)
> datapath =3D os.path.join(pythonlib, 'matplotlib', 'mpl-data=
')
> else:
> datapath =3D INSTALL_SCHEMES[os.name]['platlib'].replace('$base/', '=
')
> datapath =3D os.sep.join([datapath, 'matplotlib', 'mpl-data']) # Thi=
s is where mpl data
> will be installed
>
> Charlie Moad wrote:
> > Alright, I'll give it a shot and let you know.
> >
> > On 12/7/05, John Hunter <jdh...@ac...> wrote:
> >
> >>>>>>>"Charlie" =3D=3D Charlie Moad <cw...@gm...> writes:
> >>
> >> Charlie> Would it be considered cleaner to embed the mpl data into
> >> Charlie> the matplotlib module? This would make it easier to
> >> Charlie> clean a mpl install. The data path could be expressed
> >> Charlie> fairly easily too, as a one-liner:
> >>
> >> Charlie> os.sep.join([os.path.split(matplotlib.__file__)[0],
> >> Charlie> 'matplotlib-data'])
> >>
> >>Yes, if you can engineer in a way that works with setup w/ and w/o a
> >>--prefix arg it would be preferable, in my view.
> >>
> >>JDH
> >>
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log =
files
> > for problems? Stop! Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> > http://ads.osdn.com/?ad_idv37&alloc_id=16865&op=3Dclick
> > _______________________________________________
> > Matplotlib-devel mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
From: Ted D. <ted...@jp...> - 2006年01月25日 15:55:57
Maybe one of you guys could refresh my memory. What is the calling 
sequence we're going for?
Ted
At 09:58 AM 1/23/2006, Fernando Perez wrote:
>Ted Drain wrote:
>>John & Fernando,
>>I think the basic problem can be solved in a number of ways. Normally a 
>>GUI widget will have an initial size and when it is placed in a window, 
>>the window will layout around it (or to it's own size). However, once 
>>the window is drawn, changing the size of one or more widget that it 
>>contains doesn't mean you're changing the size of the window.
>>Here's some ideas for how to fix this:
>
>Thanks for the feedback, Ted. I hope one of your suggestions can be 
>implemented (2 sounds very reasonable). If not, at least I think the 
>'forward' option should then just be removed. There's no point in 
>exposing a feature known to crash all but ONE backend, I think.
>
>Regards,
>
>f
Ted Drain Jet Propulsion Laboratory ted...@jp... 
From: Nadezhda D. <den...@st...> - 2006年01月25日 15:51:38
Hello,
I somehow missed all the action between matplotlib 0.84 and 0.86.2.
Trying to install v0.86.2 I find data files are not installed correctly
in all cases. Specifically support for '--home=' and '--install-data' is
broken. (We use --install-data for our installations.)
I know this is a very tricky issue (in fact if someone can tell me
how to get this done correctly for bdist_wininst, I'll be very gratefull)
but here's a suggestion which worked for me. I am copying the relevant
part from setup.py and hope someone has a better solution.
Thanks,
Nadia Dencheva
if has_setuptools: # EGG's make it simple
 datapath = os.path.curdir
 datapath = os.sep.join([datapath, 'matplotlib', 'mpl-data']) # This is where mpl data 
will be installed
# logic from distutils.command.install.finalize_options
elif os.name == 'posix':
 py_version_short = sys.version[0:3]
 #datapath = INSTALL_SCHEMES['unix_prefix']['platlib']
 #datapath = datapath.replace('$platbase/', '').replace('$py_version_short', 
py_version_short)
 #datapath = os.sep.join(['mpl-data']) # This is where mpl data will be installed
 args = sys.argv
 for a in args:
 if a.startswith('--home='):
 dir = os.path.abspath(a.split('=')[1])
 datapath = os.path.join(dir, 'lib', 'python', 'matplotlib', 'mpl-data')
 elif a.startswith('--prefix='):
 dir = os.path.abspath(a.split('=')[1])
 pythonver = 'python'+py_version_short
 datapath = os.path.join(dir, 'lib', pythonver, 'site-packages', 'matplotlib', 
'mpl-data')
 elif a.startswith('--install-data='):
 dir = os.path.abspath(a.split('=')[1])
 datapath = os.path.join(dir, 'mpl-data')
 else:
 pythonlib = distutils.sysconfig.get_python_lib(plat_specific=1)
 datapath = os.path.join(pythonlib, 'matplotlib', 'mpl-data')
else:
 datapath = INSTALL_SCHEMES[os.name]['platlib'].replace('$base/', '')
 datapath = os.sep.join([datapath, 'matplotlib', 'mpl-data']) # This is where mpl data 
will be installed
Charlie Moad wrote:
> Alright, I'll give it a shot and let you know.
> 
> On 12/7/05, John Hunter <jdh...@ac...> wrote:
> 
>>>>>>>"Charlie" == Charlie Moad <cw...@gm...> writes:
>>
>> Charlie> Would it be considered cleaner to embed the mpl data into
>> Charlie> the matplotlib module? This would make it easier to
>> Charlie> clean a mpl install. The data path could be expressed
>> Charlie> fairly easily too, as a one-liner:
>>
>> Charlie> os.sep.join([os.path.split(matplotlib.__file__)[0],
>> Charlie> 'matplotlib-data'])
>>
>>Yes, if you can engineer in a way that works with setup w/ and w/o a
>>--prefix arg it would be preferable, in my view.
>>
>>JDH
>>
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Showing 8 results of 8

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