Re: [Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2012-03-15 Thread Friedrich Romstedt
Hi, Am 14. November 2011 15:04 schrieb Friedrich Romstedt : > 2011/11/14 Michael Droettboom : >> Thanks for all the time you've devoted to this.  It does look like possibly >> some kind of compiler bug.  The font loads and renders fine on Linux, for >> what it

Re: [Matplotlib-users] matplotlib hanging on Mac OS 10.7 with Python 2.7.2 EPD 7.2-2 (64-bit)

2012-03-04 Thread Friedrich Romstedt
Am 01.03.2012 um 17:59 schrieb Jean-Baptiste Marquette : > Dear Python gurus, > > I have written the attached script to plot data from SAMP interaction with > TOPCAT (http://www.star.bris.ac.uk/~mbt/topcat/). > I select a row on a given table (VOtable format) in TOPCAT, got the message > > Sele

Re: [Matplotlib-users] How matplotlib got me a job

2012-02-07 Thread Friedrich Romstedt
2012/2/7 John Hunter : > On Mon, Feb 6, 2012 at 1:59 PM, Benjamin Root wrote: >> [...] > > [...] > >> About a week later, I got a personal email from the original poster >> informing me that my solution worked perfectly.  He also noticed that I was >> working in a neighboring building on campus an

Re: [Matplotlib-users] macosx lion installation challenges

2012-02-03 Thread Friedrich Romstedt
> I am having troubles getting matplotlib to install. I have mac os X lion > with Xcode 4.2.1 installed and I have used git to get the latest version of > matplotlib. I am also running python 2.7.2 from the python.org site. The > installation process was going fine based on the make.osx file

Re: [Matplotlib-users] ft2font error while building with python3 support

2011-11-24 Thread Friedrich Romstedt
2011/11/24 Ignas Anikevicius : > I have probably found out the cause in the difference. The relevant > part of the log for the Python 2.7 build: > --- > running build_ext > building 'matplotlib.ft2font' extension > creating build-2.7/temp.linux-x86_64-2.7 > creating build-2.

Re: [Matplotlib-users] Removing ticks and frame (imshow)

2011-11-24 Thread Friedrich Romstedt
2011/11/24 Marianne C. : > On Thu, Nov 24, 2011 at 3:48 PM, Marianne C. wrote: >> Hi all, >> >> My name is Marianne, I am a beginner user of matplotlib. >> I am using imshow in pyplot.  I am desperate to get rid of >> the ticks on both x and y axes (see attached picture).  I >> do not need the bla

Re: [Matplotlib-users] ft2font error while building with python3 support

2011-11-24 Thread Friedrich Romstedt
2011/11/24 Ignas Anikevicius : > Dear list, > > I have been trying to build matplotlib with python2 *and* python3 > support. I am using Gentoo and a custom ebuild which can be found on > gnlay overlay[1]. However, I had a build error while trying to compile > 'src/ft2font.cpp' (see the log attached

Re: [Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2011-11-14 Thread Friedrich Romstedt
2011/11/14 Michael Droettboom : > Thanks for all the time you've devoted to this.  It does look like possibly > some kind of compiler bug.  The font loads and renders fine on Linux, for > what it's worth (just as a data point). > > To confirm this theory: if you move NISC1803.ttf somewhere temporar

Re: [Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2011-11-13 Thread Friedrich Romstedt
2011/11/12 Friedrich Romstedt : > $ stat -f "" /Library/Fonts/NISC18030.ttf > Last accessed or modified: 1321107464 = 12 Nov 2011 > Last changed: 1264652963 = 28 Jan 2010 > Time of Birth: 1292365840 = 14 Dec 2010 The file might have been created earlier; the date 14 Dec

Re: [Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2011-11-13 Thread Friedrich Romstedt
2011/11/12 Friedrich Romstedt : > This is my summary of what I found out. Some small follow-up regarding what might trigger the bug: http://comments.gmane.org/gmane.comp.python.matplotlib.general/1115 is a report by Chris Barker indicating as a side-effect that NISC18030.ttf was present even

Re: [Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2011-11-12 Thread Friedrich Romstedt
This is my summary of what I found out. 2011/11/12 Friedrich Romstedt : > So to me this looks pretty much like a gcc-4.2 bug. > > MACOSX_DEPLOYMENT_TARGET has nothing todo with the source code.  It > *should* just add a legacy layer.  What it apparently does is to > compile for 10

Re: [Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2011-11-12 Thread Friedrich Romstedt
2011/11/12 Friedrich Romstedt : > 2011/11/12 Friedrich Romstedt : >> A quick googling of "NISC18030.ttf matplotlib" yields this interesting >> result: >> http://groups.google.com/group/sage-devel/browse_thread/thread/2c538915abc99946 > > And this: http://tr

Re: [Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2011-11-12 Thread Friedrich Romstedt
2011/11/12 Friedrich Romstedt : > 2011/11/12 Friedrich Romstedt : >> To give the valuable information in the beginning: It appears it >> cannot handle /Library/Fonts/NISC18030.ttf.  It tries to load it via >> ft2font.FT2Font() but that gives the Bus error.  The ttf file da

Re: [Matplotlib-users] abort trap

2011-11-12 Thread Friedrich Romstedt
Hi Michael, Hi Ranjit, 2010/6/29 Ranjit Chacko : > I've been having some trouble with compiling matplotlib on Snow Leopard. I > managed to get rid of all my old problems by recompiling everything with > gcc-4.2. > > But now when I import matplotlib.pyplot I get an Abort trap message and > python q

Re: [Matplotlib-users] Bus error on import - Mac OS X (10.5.8) Matplotlib 1.0.0

2011-11-12 Thread Friedrich Romstedt
2010/12/7 Kaushik Ghose : > Hi Guys, > > I did a search on the mailing list but could not come up with a solution, so I > am crying "Uncle" and writing. > > I installed matplotlib 1.0.0 from the package on SF > (http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0/matplotlib-1

Re: [Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2011-11-12 Thread Friedrich Romstedt
2011/11/12 Friedrich Romstedt : > To give the valuable information in the beginning: It appears it > cannot handle /Library/Fonts/NISC18030.ttf.  It tries to load it via > ft2font.FT2Font() but that gives the Bus error.  The ttf file dates to > 28 Jan 2010.  It is 7108232 bytes lar

Re: [Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2011-11-12 Thread Friedrich Romstedt
ing a mechanism to throw the fontcache away if the matplotlib version number does not match the version number stored in the fontcache. 2011/11/12 Friedrich Romstedt : > 2011/11/11 Michael Droettboom : >> Very odd.  Given there's no C++ changes here, I'm very surprised.  Shooting

Re: [Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2011-11-11 Thread Friedrich Romstedt
2011/11/11 Michael Droettboom : > Very odd.  Given there's no C++ changes here, I'm very surprised.  Shooting > in the dark here: does deleting ~/.matplotlib/fontList.cache help at all? Nope :-( I'm pretty much surprised too. I wonder why noone else has this issue? I replaced the font_manager.p

Re: [Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2011-11-11 Thread Friedrich Romstedt
2011/11/11 Michael Droettboom : > Running bisect in this way, did you arrive at a more conclusive > determination about which commit may have introduced the problem? Yes, do you know Final Fantasy? "You gonna loose it ... Tracking ... Tracking ... Found it." af9954d46e. I don't know which part

Re: [Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2011-11-10 Thread Friedrich Romstedt
2011/11/11 Michael Droettboom : > On 11/10/2011 05:16 PM, Friedrich Romstedt wrote: >> Furthermore, Michael is right, while bisecting I didn't ``rm build/`` >> properly; I just did ``python2.6 setup.py clean``. Later on I did that >> properly, after I noticed that the of

Re: [Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2011-11-10 Thread Friedrich Romstedt
2011/11/10 Michael Droettboom : > Can you get a traceback from gdb?  The following should do it: > >     gdb python2.6 For some reason I cannot load python2.6 from gdb: This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries .. done (gdb) run Starting program: /Li

Re: [Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2011-11-10 Thread Friedrich Romstedt
2011/11/10 Benjamin Root : > On Wednesday, November 9, 2011, Friedrich Romstedt > wrote: >> ``git bisect`` finds "some" first bad commit, but due to the commits >> in other branches after the first real bad commit it gets it a bit >> wrong.  The binary search

[Matplotlib-users] Bus error related to ft2font on Mac OS X (10.6), gcc-4.2, apparently 0.99 branch related

2011-11-09 Thread Friedrich Romstedt
Hi, as announced on the devel list here my report on "my" Bus error. I first noticed the Bus error with a freshly compiled version from today's git. A ``import matplotlib.figure`` was sufficient to produce the bus error. ``python2.6 -v`` showed that it appears when matplotlib.ft2font is importe

Re: [Matplotlib-users] matplotlib-grayscale

2011-10-22 Thread Friedrich Romstedt
2011/10/21 Friedrich Romstedt : > I will try to dig out that emails. Did that, the email I meant dates back to 10 November 2010! Here's the snippet: (Ben Root): > I am curious, could this approach you have done be generalized to any sort > of color transformation? Admittedly,

Re: [Matplotlib-users] matplotlib-grayscale

2011-10-22 Thread Friedrich Romstedt
I want to do some corrections and alterations to my last mail, because it troubles me. 2011/10/21 Friedrich Romstedt : > I believe the one and only solution would, if thought thru completely, > unveil that we need functional approach to get better results.  In > matplotlib, each type of

Re: [Matplotlib-users] matplotlib-grayscale

2011-10-21 Thread Friedrich Romstedt
2011/10/20 Benjamin Root : > I have been doing some thinking about this problem and how it could relate > to issues I have encountered in my work on mplot3d.  The key problem I > encounter there is that shading of the colors needs to be performed based on > perspective (rotation of the scene and su

Re: [Matplotlib-users] matplotlib-grayscale

2011-10-20 Thread Friedrich Romstedt
2011/10/20 Eric Firing : > Friedrich (or others), > > I hope you will consider the following to be constructive. I agree :-/ It was very very late in the night [5:30 a.m.], so things happen, but I think that's no kind of excuse for my rude tone in that email. I'm sorry. > I understand one use c

[Matplotlib-users] matplotlib-grayscale

2011-10-19 Thread Friedrich Romstedt
Hi, I appreciate all the effort and, lastly, the large functionality offered by matplotlib. But I found no way around formulating things a bit provocative on http://friedrichromstedt.github.com/matplotlib-grayscale/index.html. The project is about matplotlib-grayscale, a matplotlib patch that ai

Re: [Matplotlib-users] Clearing plot but axes

2011-05-24 Thread Friedrich Romstedt
2011/5/24 Marco Trapanese : > I draw something with the plot command. > Now I want to "update" the entire plot, saving the current axes settings. I think you might use this one: http://github.com/friedrichromstedt/matplotlayers/ Friedrich

Re: [Matplotlib-users] How to get a Mac OS X version of Tcl/Tk rather than X11 version.

2011-01-25 Thread Friedrich Romstedt
2011/1/24 Lou Pecora : > I have an installation of Python 2.6.4 on my MacBook Pro (OS X 10.6) that by > default uses X11 windows and dialogs rather than the Mac version of those GUI > items.  In my googling and exchanges on other support groups I've come down to > the problem may be with the Tcl/Tk

Re: [Matplotlib-users] Fonts not found

2011-01-21 Thread Friedrich Romstedt
2011/1/21 todd rme : > I had the same problem when I upgraded from python 2.6 to 2.7.  For > me, the issue turned out to be with my matplotlib font cache, which > was stored in my matplotlib config directory.  On linux it is in > .matplotlib directory in the home directory, I am not sure if this is

Re: [Matplotlib-users] Fonts not found

2011-01-21 Thread Friedrich Romstedt
2011/1/20 Uri Laserson : > Hi all, > I recently reinstalled MPL from scratch on top of python2.7 that I built > from scratch using homebrew on OS X Snow Leopard.  Since then, I have been > getting the following types of warnings whenever I plot something: > /Users/laserson/matplotlib/lib/python2.7/

Re: [Matplotlib-users] Matplotlib 1.0 upgrade breaks latex functionality?

2011-01-02 Thread Friedrich Romstedt
2010/12/13 Steve Nicholes : > Hello, > > I recently upgraded matplotlib v0.98.5 to 1.0.  Now when I try to plot data > using latex for the figure labels my scripts fail.  I have not changed my > code so I'm not sure where the error is coming from.  I have tried > reinstalling and updating MikTex

Re: [Matplotlib-users] help requested

2010-12-17 Thread Friedrich Romstedt
Sorry for the long delay, simplest case would be if you can install networkx for py2.6 and the matplotlib you already have on that py2.6 too. Other, painful option is to compile matplotlib on WIndows yourself (but I cannot help with this). I don't know networkx but I strongly believe that py2.6

Re: [Matplotlib-users] Bugs?

2010-12-17 Thread Friedrich Romstedt
2010/12/15 John Floan : > I have tried to install matplotlib to our IBM cluster P5(aix5) > and get this error message (see below): > The python script output xlC_r xlC_r (2 times) (see end of this email). > Is that right? > John > > building 'matplotlib.ft2font' extension > xlC_r xlC_r > -bI:/usr/l

Re: [Matplotlib-users] Possible to get variable spacing between certain subplots?

2010-12-13 Thread Friedrich Romstedt
2010/12/13 Will Grover : > A belated thank you to Ben and Friedrich for your suggestions!  I'm getting > good results shifting subplots around using Axes.set_position() as Friedrich > suggested, but I've noticed that whenever I shift a subplot into the region > where another subplot would be, the s

Re: [Matplotlib-users] Memory leak; user error or bug?

2010-12-12 Thread Friedrich Romstedt
2010/12/12 Russell Owen : > Simply creating a blank Axes and calling canvas.draw() leaks memory -- even > without displaying any data or shifting the x axes. Okay, as a workaround have you tried ax.clear()? So the example script provided by you can be boiled down further? I'm using ax.clear() i

Re: [Matplotlib-users] Memory leak; user error or bug?

2010-12-11 Thread Friedrich Romstedt
2010/12/1 Russell E. Owen : > I'm seeing a nasty memory leak in my strip chart widget using matplotlib > 1.0, TkAgg and Mac OS X 10.5 > > I've posted a minimal version here: > py> > > It doesn't seem to matter if I use the

Re: [Matplotlib-users] Bus error on import - Mac OS X (10.5.8) Matplotlib 1.0.0

2010-12-07 Thread Friedrich Romstedt
2010/12/7 Kaushik Ghose : > I did a search on the mailing list but could not come up with a solution, so I > am crying "Uncle" and writing. :-) > I installed matplotlib 1.0.0 from the package on SF > (http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0/matplotlib-1.0.0-pyth

Re: [Matplotlib-users] colormaps - combine linear segmented with discrete sections?

2010-11-06 Thread Friedrich Romstedt
2010/11/1 Timothy W. Hilton : > [...] > > I want to have blue water, some other (bright) color for missing data, > and a nice-looking color transition (matplotlib.cm.Blues or something > similar) for the valid data over land (values from 0 to 50).  The > Cookbook example at >

Re: [Matplotlib-users] Installing matplotlib on Tiger

2010-11-06 Thread Friedrich Romstedt
Hi, A.S.: Ralf, wasn't the reason why we shifted to Vincent's build machine running 10.5, because numpy didn't run on 10.4 when built on 10.6? 2010/11/2 pablomos : > I attempted to install Pylab on my own computer and so far have had no > success. I followed these steps: > 1) downloaded Python 2.

Re: [Matplotlib-users] Overlapping pcolor() plots

2010-10-30 Thread Friedrich Romstedt
2010/10/29 chewbaccabacca : > I have three seperate pcolor() plots that I want to merge into one single > plot (see attached file). Each plot uses a binary color scheme (white and > blue, white and red, and white and green). [...] > > http://old.nabble.com/file/p30087644/contour_phase_boundary.png

Re: [Matplotlib-users] Possible to get variable spacing between certain subplots?

2010-10-30 Thread Friedrich Romstedt
2010/10/28 Benjamin Root : > On Thu, Oct 28, 2010 at 1:18 PM, Will Grover wrote: >> Hello matplotlib-users, >> I'm using subplots to make an array of plots, but because some of the >> plots have wider y-axis tick labels than others, some of the subplots end up >> looking too close to each other.  

Re: [Matplotlib-users] Format y-axis tick labels in 'comma' notation ie 234004 would be 234, 004 etc.

2010-10-30 Thread Friedrich Romstedt
Hi Dharhas, 2010/10/19 Dharhas Pothina : >> There's no way around the ``Decimal``?  Otherwise I cannot confirm the >> inelegancyness except this construct ;-) > the moneyfmt routine I downloaded requires the Decimal package (i.e > decimal.Decimal). I didn't have time to try writing my own version

Re: [Matplotlib-users] Installing matplotlib from source on Snow Leopard

2010-10-28 Thread Friedrich Romstedt
SORRY DON'T USE IT FOR NOW There was some mistake even in the freetype instructions. I was tooo quick. I will post once I've tested everything. cu Friedrich 2010/10/27 Friedrich Romstedt : > Maybe you can make use of this, it's not complete but I'll work on it > to

Re: [Matplotlib-users] Installing matplotlib from source on Snow Leopard

2010-10-27 Thread Friedrich Romstedt
Maybe you can make use of this, it's not complete but I'll work on it tomorrow. ESPECIALLY for the libpng there is a trick to make fat libpng. http://vincentdavis.info/Shared/Docs/matplotlib-installation/build/html/Macosx10.6.html Maybe you can complete the sections which are in. Friedrich ---

Re: [Matplotlib-users] Installing matplotlib from source on Snow Leopard

2010-10-24 Thread Friedrich Romstedt
what I intended. I meant it as a derivative from "the bug", which is indeed a nice pun as I recognise from this. Sorry if you're feeling a bit offended because of this, I guess I was not in good mood, Friedrich 2010/10/20 Friedrich Romstedt : > 2010/10/20 James Battat : &g

Re: [Matplotlib-users] fail to install matplotlib Snow Leopard

2010-10-23 Thread Friedrich Romstedt
2010/10/22 ny : > Hi, > I am trying to install matplotlib on Mac Os 10.6.x without any success. > I am on Snow Leopard w/  g++ --version i686-apple-darwin10-g++-4.2.1 (GCC) > 4.2.1 When it's not very urgent I'd like to ask you to wait until next week, I'll write a detailed instruction how to *succ

Re: [Matplotlib-users] how to make a polar plot just of a section with grid

2010-10-21 Thread Friedrich Romstedt
2010/10/21 Stefan Mauerberger : > My goal is to draw a grid with labels above the data. Similar to the > example 'demo curvelinear grid'. Ok, I think I cannot give you an authoritative response here, but the following might be useful for the labels: http://matplotlib.sourceforge.net/api/axes_api.

Re: [Matplotlib-users] Installing matplotlib from source on Snow Leopard

2010-10-20 Thread Friedrich Romstedt
2010/10/20 James Battat : > Hi, > I'm having trouble with my built-from-source installation of matplotlib on > Snow Leopard  (I also tried installing from the .dmg file, but that install > failed -- see below for details). *SIGH* *SIGH* YEAH, this keeps bugging us. Please do a search in Gmane (h

Re: [Matplotlib-users] how to make a polar plot just of a section with grid

2010-10-20 Thread Friedrich Romstedt
2010/10/20 Stefan Mauerberger : > I want to make a polar plot with grid not of the full circle but a > section (e.g. r=[5:6], phi=[-20:30]). The result should look like this: > http://homepages.physik.uni-muenchen.de/~Stefan.Mauerberger/example.png > I have tried a lot and had also looked to the ex

Re: [Matplotlib-users] scientific notation in ticklabels for linear plot

2010-10-19 Thread Friedrich Romstedt
2010/10/19 Jonathan Slavin : > I think that'd be fine -- i.e. the option of \cdot or \times (though in > the gmane preview the dot looks a bit low).  In the mean time, I came up > with the method below that worked for my purpose. Okay thx > import matplotlib.pyplot as plt > import numpy as np > f

Re: [Matplotlib-users] scientific notation in ticklabels for linear plot

2010-10-19 Thread Friedrich Romstedt
2010/10/19 David Pine : > I like the times symbol but others prefer the dot (which I missed in the > gmane preview!).  So I like your suggestion of providing an option to use > either \cdot or \times. Okay, I'll try to look into it next week, is that okay with you both? I don't want to do it now

Re: [Matplotlib-users] Format y-axis tick labels in 'comma' notation ie 234004 would be 234, 004 etc.

2010-10-19 Thread Friedrich Romstedt
2010/10/19 Dharhas Pothina : > I'm assuming this is possible and common but I'm not finding the correct > combination of search terms to find any examples on the mailing list or > online on how to do this. > > I'd like to display the y-axis tick labels in the 'comma' notation i.e. > > 234004 = 23

Re: [Matplotlib-users] scientific notation in ticklabels for linear plot

2010-10-19 Thread Friedrich Romstedt
What about inserting \cdot, that's the scientific notation I do prefer? If I'm not mistaken that's what I did that time, might be unreadable in the preview? I checked, when you look close you see the dot in gmane preview. We can make this customisable, with \times as an alternative option. Frie

Re: [Matplotlib-users] Help in graph

2010-10-19 Thread Friedrich Romstedt
2010/10/19 Waléria Antunes David : > Example: In my graph, the x-axis this way: 0.0 - 0.2 -- 0.4 - > 0.6 --- 0.8 --- 1.0 --- 1.2 1.4 > I need this way: 0 - 0.5 -- 1.0 - 1.5 2 you might use mpl.ticker.MaxNLocator(4). Install it in the Axes usin

[Matplotlib-users] [regression tests] failures in path simplication unit tests?

2010-10-19 Thread Friedrich Romstedt
Hi, please, can someone dealing with the path simplication have a look at the log attached? I'm on 10.6 Mac OS X with astraw repo 10/18/2010. The symlog mismatch is said to by fixed; for the pcolormesh mismatch I cannot see any visual difference. Might by false alarm. But the ``len(simplified)

Re: [Matplotlib-users] sub-sub-plots, sub-sub-sub-plots, etc.

2010-10-19 Thread Friedrich Romstedt
2010/10/19 Kynn Jones : > I need to generate a fairly complex chart, for which I need the ability to > specify not only subplots, but also sub-subplots.  (Our group has found such > charts useful in the past, but they were generated using horrific MATLAB > code, which we're trying to get away from

Re: [Matplotlib-users] scientific notation in ticklabels for linear plot

2010-10-19 Thread Friedrich Romstedt
2010/10/18 Jonathan Slavin : > I'm wondering if there's some relatively automatic way to have the > ticklabels to come out in scientific notation for an axis that uses a > linear scale (and has a range that warrants scientific notation)?  For > example, an axis that goes from 0 to 2.E18 by default

Re: [Matplotlib-users] problem of cm.get_cmap('gist_rainbow',256)

2010-10-18 Thread Friedrich Romstedt
2010/10/18 LittleBigBrain : > Hi Friedrich, > > Thanks for produce the patch. But I do not know how to use 'git'. And > I cannot find the changes you made on web. > though the latest update by you is 2 hours ago, in the online source > archive the latest file is modified on October 11, 2010 in 'tru

Re: [Matplotlib-users] problem of cm.get_cmap('gist_rainbow',256)

2010-10-18 Thread Friedrich Romstedt
2010/10/18 脑关(BrainGateway)生命科学仪器 : > On Mon, Oct 18, 2010 at 12:54 AM, Benjamin Root wrote: >> On Sun, Oct 17, 2010 at 5:35 PM, braingateway >> wrote: >>> I tried all possible colormaps and found out: gist_rainbow, terrain, >>> bwr, brg, and seismic will generate the same error, all other colorm

Re: [Matplotlib-users] Graph

2010-10-06 Thread Friedrich Romstedt
2010/10/6 Waléria Antunes David : > I ploted a graph and above this graph I plot another graph about data > errors. You can do this in one step by using ax.errorbar() http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.errorbar . Try using fmt=',', this will plot pixels as th

Re: [Matplotlib-users] Compilation Error

2010-10-05 Thread Friedrich Romstedt
2010/10/5 Friedrich Romstedt : >> basedirlist is: [] > > Here is your issue.  Please check the archives of the matplotlib-users > list for the recent threads on compiling and Mac OS X (10.6 in > particular). I assumed that you have freetype2 etc. installed with headers (not th

Re: [Matplotlib-users] Compilation Error

2010-10-05 Thread Friedrich Romstedt
2010/10/4 Sanjay Kairam : > Hi there, > > I'm having a problem installing matplotlib, I'm guessing that I am missing > some dependency, but I am having trouble figuring out what the issue is (I > don't have a ton of experience dealing with python libraries and > troubleshooting install issues). > >

Re: [Matplotlib-users] RuntimeError: CGContextRef is NULL

2010-10-04 Thread Friedrich Romstedt
2010/10/4 Nicolas Rougier : > I'm trying to have animated plots using draw_artist on mac os x and I got an > error with the following script: > > import numpy as np > import matplotlib.pyplot as plt > > plt.ion() > plt.figure() > subplot = plt.subplot(1,1,1) > axis = plt.imshow(np.random.random((1

Re: [Matplotlib-users] Combination of a box plot and a histogram

2010-10-04 Thread Friedrich Romstedt
> """ > First attempt at a histogram strip chart (made up name). > if-main block taken from [1] except that I've replaced uniform distributions > with normal distributions. > [1] > http://matplotlib.sourceforge.net/examples/pylab_examples/boxplot_demo3.html > """ > import numpy as np > import matp

Re: [Matplotlib-users] Can't import pyplot, symbol not found error instead

2010-10-04 Thread Friedrich Romstedt
Yaaa, this was some time ago, I guess you did the following: * export CC=gcc-4.2 * export MACOSX_DEPLOYMENT_TARGET= * maybe also modifying the setupext.py I must say, that Python distutils (or distribute, whatever you use) overrides the CC environment variable with the gcc version Python w

Re: [Matplotlib-users] plot not updating in snow leopard

2010-09-27 Thread Friedrich Romstedt
Brian, Do you, by chance, use interactive mode? Maybe ipython -pylab (if this does)? Just a shot into the dark ... -- Start uncovering the many advantages of virtual appliances and start using them to simplify applicatio

Re: [Matplotlib-users] Permission error after installing MPL 1.0 on Mac

2010-09-27 Thread Friedrich Romstedt
2010/9/23 Peter Hoekje : > OK, I spoke a little too soon last time.  I reinstalled it tonight and looked > a little closer.  Essentially all of the regular files under > .../site-packages/matplotlib/... and its subdirectories have permissions > similar to > -rw--w > not just the mpl-data subd

Re: [Matplotlib-users] plot not updating in snow leopard

2010-09-27 Thread Friedrich Romstedt
2010/9/21 Brian Blais : > actually, I think the workflow that I use doesn't lend itself well to this.   > usually what I do is write code in the local space, in a if > __name__=="__main__"  block, so that after things run I can easily inspect > variables, test the results, rerun, etc... It's only

Re: [Matplotlib-users] convert figure from color to BW/grayscale

2010-09-20 Thread Friedrich Romstedt
2010/9/20 Eli Brosh : > Hello, > I need to prepare two versions of figures: color and BW(Black&White). > Is there an easy way to produce just the colored version and than use some > command or script to turn it to BW or grayscale? > I thought that converting from color to BW really means: "in all o

Re: [Matplotlib-users] Permission error after installing MPL 1.0 on Mac

2010-09-15 Thread Friedrich Romstedt
2010/9/15 tom : > Jeremy Conlin writes: >> I recently installed MPL on two Macs, one running 10.6 and another >> running 10.5.  When I try to plot, I get the following error: >> >> TclError: couldn't open >> > "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ > site-packages/matplo

Re: [Matplotlib-users] MacOS X install and ppc flag

2010-09-11 Thread Friedrich Romstedt
2010/9/4 Thomas Robitaille : > export MACOSX_DEPLOYMENT_TARGET=10.6 > export CFLAGS="-arch i386 -arch x86_64" > export CPPFLAGS="-arch i386 -arch x86_64" > export FFLAGS="-arch i386 -arch x86_64" > export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch i386 -arch > x86_64" So you're on 10.

Re: [Matplotlib-users] Installing matplotlib on MacOS X 10.6.4

2010-09-11 Thread Friedrich Romstedt
2010/9/10 Yannis Haralambous : > when I launch the DMG installer > matplotlib-1.0.0-python.org-py2.6-macosx10.4.mpkg > I get an error message, that my volume does not contain "System Python 2.6". > I'm running a standard MacOS X 10.6.4 with python 2.6.1 running from /usr/bin > And I do have Python

Re: [Matplotlib-users] Problem installing matplotlib

2010-08-25 Thread Friedrich Romstedt
2010/8/25 Jeff Whitaker : > gcc-4.2 is the default compiler for 10.6 - I wonder if you need to > upgrade your dev tools?  Xcode 3.2.2 is available for download (free > with registration) from Apple. No, he's using Python.org Python I believe, and that was compiled with gcc-4.0. So distutils picks

Re: [Matplotlib-users] Colorbar labeling

2010-08-23 Thread Friedrich Romstedt
2010/8/20 Bruce Ford : > I have a grid with values ranging from exactly 0.0 and 100.0.  When I > plot this with colorbar, the base of the colorbar is labeled "-0.0". > Is this a default for 0.0...to plot it with as a negative number?  Any > workarounds? How sure are you that the floating point num

Re: [Matplotlib-users] plotting open symbols

2010-08-23 Thread Friedrich Romstedt
2010/8/20 Benjamin Root : > This used to trip me up as well.  However, for colors in matplotlib, None > (without quotes) tells mpl to use the default color, while 'None' (typically > not case-sensitive) means "do not plot any color". More precise, the string 'None' translates to fully transparent

Re: [Matplotlib-users] polar plot

2010-08-23 Thread Friedrich Romstedt
2010/8/20 Michael Droettboom : >> Yeah, it's my issue, but I'm not happy with fixing it.  Currently, >> matplotlib forces the xticks (i.e., the theta ticks) to be at sensible >> values via .set_xticks() and .set_xlabels() (projections/polar.py). >> >> I'm coding a matplotlib extension package which

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-19 Thread Friedrich Romstedt
2010/8/19 Rob Schneider : > I'm sorry you took anything I said as "blame". Not intended that way. Just > stating that using figure() and close() resolved the issue.  As I look back > on the material I've used to learn how to use Matplotlib, they sometimes call > these functions and sometimes not

Re: [Matplotlib-users] polar plot

2010-08-19 Thread Friedrich Romstedt
2010/8/19 Michael Droettboom : > On 08/18/2010 06:03 PM, Friedrich Romstedt wrote: >> Is the attached issue with a plain polar axes already fixed?  I never >> encountered this before.  344 degrees happens to be 6.0 rad.  I'm on >> svn 8626. > > How are you creatin

Re: [Matplotlib-users] polar plot

2010-08-18 Thread Friedrich Romstedt
2010/8/18 Michael Droettboom : > This bug (that the r-axis labels are in the wrong place) should now be fixed > in r8651.  This doesn't, unfortunately, address the original question about > annular plots. Is the attached issue with a plain polar axes already fixed? I never encountered this before

Re: [Matplotlib-users] TeX fails in general

2010-08-18 Thread Friedrich Romstedt
2010/8/17 Paul Anton Letnes : > If I try to use LaTeX for text processing (i.e. text.usetex : True in my > matplotlibrc), I get a cryptic LaTeX error which didn't use to be there > before. I get the same problem when using matplotlib-0.98.5 which I compiled > from source, and matplotlib-1.0.0 fr

Re: [Matplotlib-users] Memory Usage

2010-08-18 Thread Friedrich Romstedt
2010/8/16 Craig Lyndon : > If data sets are indeed stored in RAM, is there a way to discard the > plot data after a plot had been created to leave just a static image? > Or, read and store data points directly from a file? You can render to PIL using the Agg backend, and display this via PIL.Image

Re: [Matplotlib-users] Issue with hist plotting

2010-08-18 Thread Friedrich Romstedt
2010/8/14 Eric Firing : > colors = [colorConverter.to_rgba(c, a) for c, a in zip(['g', 'r', 'b'], If it is this (I didn't dig into the program) it will be fixed soon I hope :-) Friedrich -- This SF.net email is sponsored

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-18 Thread Friedrich Romstedt
2010/8/14 Rob Schneider : >> Agreed. The only thing I can think of is that the second figure is >> reusing the first. You can try calling plt.figure() at the beginning >> of the functions to create a new figure, or call plt.figure() in >> between the calls to CreateMemberStatCategoryFigure() and >>

Re: [Matplotlib-users] installation of matplotlib on OS X 10.5 with python.org Python 2.6

2010-08-17 Thread Friedrich Romstedt
2010/8/17 Stephen T. : > http://passingcuriosity.com/2009/installing-pil-on-mac-os-x-leopard/ That's a good thing to know when people run into /opt/ trouble of this kind ... Thanks > So I had in mind to try this with the matplotlib installation, but for some > reason the make command did not fail

Re: [Matplotlib-users] embed matplotlib Figure into Tkinter Canvas

2010-08-16 Thread Friedrich Romstedt
2010/8/13 Andrea Tomadin : > Dear John, > > thank you for your suggestion.  Unfortunately, I have just tried that and I > am positive that it does not work. > > It works only if the option "frameon" of the figure is True, which is not > what I want in this case (I have to produce a pdf with trans

Re: [Matplotlib-users] Disable Colorbar Scaling In Contour Plot

2010-08-11 Thread Friedrich Romstedt
2010/8/11 tgabriel : > I would like to have the colorbar displaying the same color scaling > regardless of the data input. This /should/ be feasible with .contourf(.., vmin=VMIN, vmax=VMAX), but from the doc this isn't clear at least. If it doesn't work, we have to work out how to use the norm=..

Re: [Matplotlib-users] Building matplotlib from source with libpng (png.h) installed via fink on Mac OS X

2010-08-11 Thread Friedrich Romstedt
2010/8/11 Markus Baden : > I'm running Mac OS X 10.5.8. Ok, that explains why it works to flawlessly. When you would be on 10.6, you would probably run into the problem I mentioned, because the software is compiled /also/ for 10.5, and hence with gcc-4.0. Lucky one ;-) - I'm a bit annoyed by th

Re: [Matplotlib-users] Building matplotlib from source with libpng (png.h) installed via fink on Mac OS X

2010-08-10 Thread Friedrich Romstedt
Are you on OSX 10.5 or 10.6? I'm asking because it's important for others when you're on 10.5 because you're using gcc-4.0 then, while 10.6 users have at least for non-Python (distutils) compilations gcc-4.2 as default. Friedrich --

Re: [Matplotlib-users] matplotlib v1.0.0 for mac: installation problem

2010-08-10 Thread Friedrich Romstedt
2010/8/9 Antonino Cucchiara : > Hello, > I am running a MacOS Snow leopard and I recently istalled the python 2.6 > via Enthought. > I wanted to upgrade the matplotlib 1.0 but when I run the .mpkg the > installation don't start because > it seems not recognizing the python 2.6 is installed (I do ha

Re: [Matplotlib-users] Building matplotlib from source with libpng (png.h) installed via fink on Mac OS X

2010-08-10 Thread Friedrich Romstedt
2010/8/10 Markus Baden : > Thanks for the warning. Not really sure. So far I have seen no > problems, i.e. can happily plot. How can I make sure that I don't ran > into those problems? I usually don't mix packages and just hope that > the EPD guys update to Matplotlib 1.0 soon. When you can import

Re: [Matplotlib-users] GTk backend problem

2010-08-09 Thread Friedrich Romstedt
2010/8/9 Antonino Cucchiara : > Hello, > I recently upgraded to Enthought python 2.6 an so I have now matplotlib > 0.99.3 > My scripts now no longer seem to find the pyGTK since when I run them I got > this message: > > [...] Where was your original pygtk installed, and what was your previous Pyth

Re: [Matplotlib-users] Sequential calls to functions to draw graphs results in flawed graphs on second call.

2010-08-09 Thread Friedrich Romstedt
2010/8/8 Rob Schneider : > Running 0.98.5.3 > (would upgrade to 1.0 but having trouble installing it on Mac OS X as it > doesn't appear to like the version of Python Apple provides). What's your problem with 1.0? Friedrich

Re: [Matplotlib-users] Building matplotlib from source with libpng (png.h) installed via fink on Mac OS X

2010-08-09 Thread Friedrich Romstedt
2010/8/9 Markus Baden : > On my Macbook Pro I use Python 2.6 as provided by the Enthought Python > Distribution. I ran into some problem with Axes3D so I decided to > upgrade to the latest version from source. While trying that I got a > similiar error message as discussed in > > http://www.mail-ar

Re: [Matplotlib-users] Win7. Why Don't Matplotlib, ... Show up in Control Panel Add-Remove?

2010-08-09 Thread Friedrich Romstedt
2010/8/9 Wayne Watson : > See Subject. I use matplotlib, scipy, numpy and possibly one other > module. If I go to the control panel, I only see numpy listed. Why? I > use a search and find only numpy and Python itself. How can matplotlib > and scipy be uninstalled? I think it should suffice to del

Re: [Matplotlib-users] installation of matplotlib on OS X 10.5 with python.org Python 2.6

2010-08-09 Thread Friedrich Romstedt
2010/8/7 Russell E. Owen : > In article , >  Stephen T. >  wrote: > >> Hi, I am having trouble installing matplotlib. I have OS X 10.5 with Python >> 2.6 >>  downloaded and installed from python.org. >>  (10.5 came with Apple >>  Python 2.5). I've also installed NumPy and SciPy for Python 2.6. > >

Re: [Matplotlib-users] Confusion Matrix

2010-08-09 Thread Friedrich Romstedt
2010/8/9 John Hunter : > On Sun, Aug 8, 2010 at 8:03 PM, Friedrich Romstedt > wrote: >> P.S.: You can also try >> http://matplotlib.sourceforge.net/examples/pylab_examples/alignment_test.html >> , I believe there was some other manual around also covering the >> base

Re: [Matplotlib-users] Confusion Matrix

2010-08-08 Thread Friedrich Romstedt
2010/8/8 Simon Friedberger : > I have found a solution. I'm not sure if it's good or intended but the > following works: > > for label in xax.get_ticklabels(): >        label.set_rotation(45) >        label.set_horizontalalignment('left') This is fully intended. Maybe you can compare with the ver

Re: [Matplotlib-users] Permission error after installing MPL 1.0 on Mac

2010-07-31 Thread Friedrich Romstedt
2010/7/30 Jeremy Conlin : > I recently installed MPL on two Macs, one running 10.6 and another > running 10.5.  When I try to plot, I get the following error: > > TclError: couldn't open > "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/mpl-data/images/home

  1   2   >