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



Showing 4 results of 4

From: Barry S. <ba...@ba...> - 2009年09月29日 22:07:18
On 28 Sep 2009, at 17:27, William Stein wrote:
> On Mon, Sep 28, 2009 at 9:14 AM, John Hunter <jd...@gm...> 
> wrote:
>> On Mon, Sep 28, 2009 at 10:48 AM, William Stein <ws...@gm...> 
>> wrote:
>>> If you could just try running your matplotlib build on
>>> bsd.math.washington.edu and reporting about whether or not it works,
>>> that would be very helpful, since it will indicate whether the 
>>> problem
>>> is somehow in Sage or in pyCXX or Matplotlib itself or something 
>>> else.
>>
>> I was able to build into a mostly clean environment (rebuild all deps
>> zlip, freetype, png) using my OSX make file in, but I had to update
>> the MACOSX_DEPLOYMENT_TARGET to 10.6 (I've committed this to svn
>> HEAD).
>>
>>
>> PREFIX=~/devtest make -f make.osx fetch deps mpl_build mpl_install
>>
>> But even simple tests are failing with::
>>
>> jdh2358@bsd:~> LD_LIBRARY_PATH=~/devtest/lib/
>> PYTHONPATH=~/devtest/lib/python2.6/site-packages/ /usr/bin/python -c
>> 'import matplotlib; matplotlib.use("Agg"); from matplotlib.pyplot
>> import *; plot([1,2,3]); savefig("test")'
>> Traceback (most recent call last):
>> File "<string>", line 1, in <module>
>> File "/Users/jdh2358/devtest//lib/python2.6/site-packages/ 
>> matplotlib/pyplot.py",
>> line 7, in <module>
>> from matplotlib.figure import Figure, figaspect
>> File "/Users/jdh2358/devtest//lib/python2.6/site-packages/ 
>> matplotlib/figure.py",
>> line 16, in <module>
>> import artist
>> File "/Users/jdh2358/devtest//lib/python2.6/site-packages/ 
>> matplotlib/artist.py",
>> line 6, in <module>
>> from transforms import Bbox, IdentityTransform, TransformedBbox,
>> TransformedPath
>> File "/Users/jdh2358/devtest//lib/python2.6/site-packages/ 
>> matplotlib/transforms.py",
>> line 34, in <module>
>> from matplotlib._path import affine_transform
>> ImportError: /Users/jdh2358/devtest/lib/python2.6/site-packages/ 
>> matplotlib/_path.so:
>> no appropriate 64-bit architecture (see "man python" for running in
>> 32-bit mode)
This error has nothing to do the PyCXX isn't it a build problem not 
crating
a fat binary with -arch x86_64 for _path.so. Use lipo -info to see 
what is
inside _path.so.
>>
>> I'm attaching my build output in case anyone sees anything that might
>> be triggering this 32bit/64bit problem (see attached for full 
>> output).
>> I did not rebuild numpy and this may be the problem since the failure
>> is in the _path module. I'll give that a try next
>
> I think it's definitely an issue with PyCXX. I installed the latest
> version of PyCXX and tried their test example program, and got the
> dreaded "Abort trap":
>
> bash-3.2$ python
> Python 2.6.2 (r262:71600, Sep 27 2009, 13:41:53)
> [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import CXX.example
> CXX is installed.
> The support files you need are in the PYTHON/etc/CXX directory.
> The include files are in the distutils include path already.
> Just refer to them as "CXX/CXX_Objects.h", etc.
>
> range object created 0x1003140b0
> range object destroyed 0x1003140b0
>>>> CXX.example.test()
> Example Test starting
> Trying to convert a NULL to an Py::Int
> Abort trap
> bash-3.2$ pwd
> /Users/was/build/sage-4.1.2.alpha4/spkg/build/matplotlib/trunk/ 
> matplotlib/pycxx-6.1.1/Demo/Python2
>
> ----
>
> Note that installing PyCXX and their test program was not easy. I
> watched their "python setup.py install" fail repeatedly, then I would
> copy missing files where they should go, and iterate (about 6 times
I never use the setup.py - I keep trying to delete it from the kits 
but have users want
it and contribute fixes.
I do not recommend installing PyCXX into a system for a couple of 
reasons.
On one system you may well end up using more then one version of PyCXX.
For example one older version of maintenance and a newer version for 
new development.
YOu may have more then one project using PyCXX that need compiler 
options
that conflict. If you install PyCXX into the system the object code 
will be wrong
so some projects.
Your experience is convincing me to delete setup.py to avoid this in 
future.
However the tests do all work on 10.6. You will need a new make file 
to use
Apple's python 2.6.1. The PyCXX 6.1.1 kit does not have one to do this.
From: Chris <ce...@gm...> - 2009年09月29日 19:55:38
John Hunter <jdh2358@...> writes:
> 
> On Wed, Sep 23, 2009 at 8:47 AM, Lev Givon <lev@...> wrote:
> > contain a setup.cfg file:
> >
> > $ tar zft matplotlib-0.99.1.tar.gz |grep setup.cfg
> > matplotlib-0.99.1/setup.cfg
> > matplotlib-0.99.1/setup.cfg.template
> 
> It seems to depend on which mirror you get the file from. From Voxel,
> I see setup.cfg but from "German Research Network (Berlin, Germany) "
> I do not see it. We may just need time for the mirrors to update. I
> probably should have used a different file name...
John Hunter <jdh2358@...> writes:
> 
> On Wed, Sep 23, 2009 at 8:47 AM, Lev Givon <lev@...> wrote:
> > contain a setup.cfg file:
> >
> > $ tar zft matplotlib-0.99.1.tar.gz |grep setup.cfg
> > matplotlib-0.99.1/setup.cfg
> > matplotlib-0.99.1/setup.cfg.template
> 
> It seems to depend on which mirror you get the file from. From Voxel,
> I see setup.cfg but from "German Research Network (Berlin, Germany) "
> I do not see it. We may just need time for the mirrors to update. I
> probably should have used a different file name...
I also find setup.cfg in 0.99.1.1.tar.gz, and had to delete it to begin 
building:
$ wget 
http://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-
0.99.1/matplotlib-0.99.1.1.tar.gz?use_mirror=kent
...
20:44:41 (2.11 MB/s) - `matplotlib-0.99.1.1.tar.gz' saved [11905737/11905737]
$ tar xf matplotlib-0.99.1.1.tar.gz 
$ cd matplotlib-0.99.1.1
$ ls setup.cfg
setup.cfg
Chris
From: Phillip M. F. <pfe...@ve...> - 2009年09月29日 18:00:49
Hello Eric,
The functions that I've created make it possible to generate a discrete 
(piecewise-constant) or continuous (piecewise-linear) colormap and 
register it at a single shot. These functions also accept a list of 
thresholds if the user wants to specify non-default thresholds. It 
seems as though the best alternatives require multiple steps and a 
considerable amount of fiddling. Furthermore, my functions are 
thoroughly documented, while the alternatives are not. I've found that 
it often takes less time to write something myself than to figure out 
how to use an undocumented function (which may not even do what I 
need). If you agree that my functions provide a better interface, then 
I hope that you and John Hunter can get them incorporated into matplotlib.
Yours,
Phillip
Eric Firing wrote:
> Dr. Phillip M. Feldman wrote:
>> After experimenting with colormaps for a while, I was able to make both
>> discrete (piecewise-constant) and continuous (piecewise-linear) 
>> colormaps
>> work. Although colormaps can be created directly using
>> LinearSegmentedColormap from the matplotlib.colors package, this is a
>> tedious and error-prone process. So, I compiled a set of three interface
>> functions. (I wrote two of these myself, and got one from the SciPy
>> website). The two functions that I wrote permit one to define a discrete
>> (piecewise-constant) and continuous (piecewise-linear) colormap 
>> directly via
>> a sequence of colors and a set of thresholds specified as lists. Each 
>> color
>> may be specified either via an RGB tuple or via an English color name 
>> known
>> to webcolors.name_to_rgb. I'm going to submit all of this to the 
>> matplotlib
>> developers forums in the hopes of getting it incorporated into 
>> matplotlib.
>
> Something I should have mentioned earlier: for the discrete case, one 
> good option is to use a ListedColormap to make a map with only a few 
> colors, and then use a BoundaryNorm to handle the mapping from data 
> values to colors. See 
> http://matplotlib.sourceforge.net/examples/pylab_examples/image_masked.html?highlight=image_masked 
>
> for a BoundaryNorm example. Unfortunately, we don't have an example 
> of using it with a ListedColormap, but it should be straigtforward; 
> the key point is to set the BoundaryNorm ncolors kwarg to match the 
> actual number of colors in the colormap.
>
> Eric
>
From: Dr. P. M. F. <pfe...@ve...> - 2009年09月29日 15:32:45
After experimenting with colormaps for a while, I was able to make both
discrete (piecewise-constant) and continuous (piecewise-linear) colormaps
work. Although colormaps can be created directly using
LinearSegmentedColormap from the matplotlib.colors package, this is a
tedious and error-prone process. So, I compiled a set of three interface
functions. (I wrote two of these myself, and got one from the SciPy
website). The two functions that I wrote permit one to define a discrete
(piecewise-constant) and continuous (piecewise-linear) colormap directly via
a sequence of colors and a set of thresholds specified as lists. Each color
may be specified either via an RGB tuple or via an English color name known
to webcolors.name_to_rgb. I'm submitting this in the hopes that this
functionality will be incorporated into matplotlib.
There's one thing that I've not been able to resolve: When attempting to
display all defined colormaps using colormaps_test.py (attached), colormaps
that I've defined do not show up. So, it would appear that registering a
colormap makes it possible to access that colormap only if the name is known
to the program that wants to use it.
http://www.nabble.com/file/p25665294/make_cmap.py make_cmap.py 
http://www.nabble.com/file/p25665294/colormaps_test.py colormaps_test.py 
-- 
View this message in context: http://www.nabble.com/new-interface-functions-for-LinearSegmentedColormap-tp25665294p25665294.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.

Showing 4 results of 4

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