[matplotlib-devel] Problem adding a new test

2009-10-09 Thread Michael Droettboom
I went to create a new image comparison test related to the hatching bug reported this morning. I added my test to the bottom of test_simplification.py, and ran all the tests as follows: python -c "import matplotlib; matplotlib.test()" Unfortunately, it doesn't seem to be running the new te

Re: [matplotlib-devel] Problem adding a new test

2009-10-09 Thread Jouni K . Seppänen
Michael Droettboom writes: > Unfortunately, it doesn't seem to be running the new test at all. If I > put "assert False" at the top of the test, and even that doesn't fail. > If I remove the "image_comparison" decorator, however, the test will > fail. Maybe this is because the baseline imag

Re: [matplotlib-devel] Problem adding a new test

2009-10-09 Thread Jouni K . Seppänen
Jouni K. Seppänen writes: > Oh, right. My fault: when I implemented the pdf comparison, I made it > run the test for only those formats for which a baseline image exists, I committed a change to make it run both png and pdf tests all the time. When we add new formats (comparing postscript files

Re: [matplotlib-devel] Problem adding a new test

2009-10-09 Thread Andrew Straw
Jouni K. Seppänen wrote: > Jouni K. Seppänen writes: > > >> Oh, right. My fault: when I implemented the pdf comparison, I made it >> run the test for only those formats for which a baseline image exists, >> > > I committed a change to make it run both png and pdf tests all the time. >

Re: [matplotlib-devel] Problem adding a new test

2009-10-09 Thread Michael Droettboom
Andrew Straw wrote: > Jouni K. Seppänen wrote: > >> Jouni K. Seppänen writes: >> >> When we add new formats (comparing postscript files could easily be done >> using the same ghostscript command as used for pdf files, and some svg >> renderer could also be added) >> > > "inkscape inpu

Re: [matplotlib-devel] Problem adding a new test

2009-10-09 Thread Andrew Straw
Michael Droettboom wrote: >> "inkscape input.svg --export-png=output.png" works very well as an svg >> renderer. >> > I'd also like to run SVG through xmllint against the SVG schema as > another sanity check. I may get to this if I can find the time. That'd be great. I just installed inkscap

Re: [matplotlib-devel] Problem adding a new test

2009-10-09 Thread Michael Droettboom
Andrew Straw wrote: >>> As far as the test data -- I agree this is an issue. One point in favor >>> of the status quo is that it's really nice to have the test data >>> included with the source code so there are no configuration hassles. I'm >>> not sure how well the buildbot infrastructure would c

Re: [matplotlib-devel] proposed change to colors.py

2009-10-09 Thread Phillip M. Feldman
Eric Firing wrote: > Phillip M. Feldman wrote: >> Hello Eric- >> >> I'd like to understand the reason why you object to >> piecewise-constant colormaps. I have found these to be useful for >> some types of plots. > > It is a crude and indirect way of achieving a result that can be > achieved

Re: [matplotlib-devel] proposed change to colors.py

2009-10-09 Thread Phillip M. Feldman
Eric and Reinier- It seems to me that continuous (piecewise-linear) colormaps could work in much the same fashion. One would specify n boundary colors and n thresholds (for continuous colormaps, I believe that the number of thresholds and colors must be the same), and for any value between two

Re: [matplotlib-devel] proposed change to colors.py

2009-10-09 Thread Phillip M. Feldman
I'd like to see a single function that combines ListedColormap and BoundaryNorm. This function could compare the lengths of the color list and threshold list to determine what type of colormap is desired. (If the lengths are the same, then the calling program wants a continuous colormap; if t

[matplotlib-devel] towards a poor man's texture map in mplot3d

2009-10-09 Thread Andrew Straw
Hi, I'm trying to get something like texture mapping to work. (I don't need anything fancy transforms between texel location and image location, though. I'm happy to specify just a 2D grid of pixel colors that appear onto a rectangle positioned in 3D space.) Given that, I made a demo based on pco

Re: [matplotlib-devel] [PATCH] experimental numscons support in matplotlib

2009-10-09 Thread Andrew Straw
David Cournapeau wrote: > Hi, > > I don't know if that's of any interest for matplotlib developers, > but I added scripts to build matplotlib with numscons: > > http://github.com/cournape/matplotlib/tree/scons_build > OK, I managed to clone your repo -- I cloned mine, then added yours as a r

Re: [matplotlib-devel] proposed change to colors.py

2009-10-09 Thread Eric Firing
Phillip M. Feldman wrote: > > When I look at the online documentaiton for from_list, here's what I > see: "Make a linear segmented colormap with /name/ from a sequence of > /colors/ which evenly transitions from colors[0] at val=1 to colors[-1] > at val=1. N is the number of rgb quantization l

Re: [matplotlib-devel] proposed change to colors.py

2009-10-09 Thread Eric Firing
Phillip M. Feldman wrote: > Eric and Reinier- > > It seems to me that continuous (piecewise-linear) colormaps could work > in much the same fashion. One would specify n boundary colors and n > thresholds (for continuous colormaps, I believe that the number of > thresholds and colors must be th

Re: [matplotlib-devel] proposed change to colors.py

2009-10-09 Thread Phillip M. Feldman
I'm not sure whether I'm correctly understanding you. Let's consider a hypothetical engineering performance-versus-requirements scatter plot or contour plot of a performance metric that takes positive values. I'd like to map values to colors so that anything below 50 gets solid red, values from