[Matplotlib-users] How do I unsubscribe?
Unsubscribe? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet Science is the greatest gift given to mankind. -- W. Watson Web Page:www.speckledwithstars.net/ -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Win7. Why Don't Matplotlib, ... Show up in Control Panel Add-Remove?
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? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet An experiment is a question which science poses to Nature, and a measurement is the recording of Nature’s answer. -- Max Planck Web Page:www.speckledwithstars.net/ -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Win7. Why Don't Matplotlib, ... Show up in Control Panel Add-Remove?
It and scipy work very well. I have 64-bit Win 7, HP Pavilon desktop. A re-examination shows the install files are all exe files, except I think for Python. I'm using 2.5 and need to stay there along with numpy 1.2.0. When you say uninstall, you must mean delete the file under C:\Python. Well, it's really not me that needs the help, it's my partner. He went off to 1.4, and it has caused trouble. Let's not go there. :-) On 8/8/2010 4:33 PM, Stephen George wrote: On 9/08/2010 9:19 AM, Wayne Watson wrote: 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? In my Win7 (64bit) I have 32 bit python 2.6 installed. matplotlib and numpy show under the add remove program functionality Python 2.6 matplotlib-0.99.3 Python 2.6 numpy-1.4.1 Along with heaps of other libraries I have installed Are you sure matplotlib is installed AND working? To remove I can only suggest you install again and then remove Steve -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet An experiment is a question which science poses to Nature, and a measurement is the recording of Nature’s answer. -- Max Planck Web Page:www.speckledwithstars.net/ -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Max Size of an Attachment?
See Subject. Is it 40K? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet Stop the illegal killing of dolphins and porpoises. http://www.takepart.com/thecove Wrest the control of the world's fisheries from Japan. Web Page:www.speckledwithstars.net/ -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Max Size of an Attachment?
I use Tbird, and I think any jpg file I send is encoded in an acceptable format for e-mail delivery. Aside from using attachments here, I recently noticed another Python list only allows 40K. On 3/1/2010 7:58 AM, John Hunter wrote: On Mon, Mar 1, 2010 at 9:45 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: See Subject. Is it 40K? The max size of the message body is 200K. If you are sending attachments, they will be mime encoded, so they encoding may be larger than the file size, and the limit applies to the encoded size. I am the list moderator and will often approve messages over the limit if * they are not too far over the limit * they are topical and relevant I usually moderate the messages once a day. Many people use free drop services for larger attachments, eg http://drop.io JDH -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet Stop the illegal killing of dolphins and porpoises. http://www.takepart.com/thecove Wrest the control of the world's fisheries from Japan. Web Page:www.speckledwithstars.net/ -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] py2exe message RuntimeError: Could not find the matplotlib data files?
Hmm. Actually I put it aside, thinking that it was correct. After spending quite a bit of time on it through queries to a few forums I was happy to find the rest of the story. This was not something I was desperate for, especially given the apparent complexity of it for matplotlib. The tutorial that got me started was pretty accurate for non-graphic programs, but suffered in one area of what I would call not emphasizing an important point. Once found all went fine. I personally do not know the other five. I had brought this up on other forums, and it attracted several others. A few had no clue at all even though they offered solutions, but would seem to be content with the resolution. So what do we have here? An incomplete and possibly wrong wiki? I find this a bit bizarre if several credible authors of Python point to py2exe as useful, but apparently do not tell the whole story. So, yes, in light of this revelation, then I'm confused. On 2/20/2010 10:43 PM, Christopher Barker wrote: Wayne Watson wrote: Thank you. That last link probably enlightened about six people. Are you one of those six? That page is unfortunate -- some folks don't quite get that a Wiki is supposed to be edited -- not just added to, like a forum. So that page could really use some clean up -- but if you read the whole page, you can see that it's gotten pretty easy. Are you still confused? -Chris On 2/19/2010 8:28 PM, Christoph Gohlke wrote: http://lmgtfy.com/?q=py2exe+matplotlib+data+filesl=1 leads me to http://www.py2exe.org/index.cgi/MatPlotLib. -- There is nothing so annoying as to have two people talking when you're busy interrupting. -- Mark Twain -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] plot(x,y) Trouble?
I find this puzzling. It seems as though the x,y points in some fashion can vary. plot(2.8,3.4) doesn't work in my program plot([2.8],[3.4]) does work plot((2.8,3.4)) apparently creates two points Here's code where I have had to make x,y each a list. I've made comments about the behavior of x,y fig = figure() ax1 = fig.add_subplot(111) v = (0, 640, 0, 480)# min, max on x and y ax1.plot(xy[:,0], xy[:,1]) # draw all the lines title(afname) ylabel('vertical pixels') xlabel('horizontal pixels') # An attempt to draw an easy large circle. It worked, but zoom moves the circle. 320,235 not locked # If use (320,235), then get two circles. #ax1.plot([320],[235], marker='o', mfc='y', ms=400) # draw large circle ax1.plot([xy[0,0]],[xy[0,1]],'gs') # place marker at start. Had to list-ize array columns, but seems right ax1.plot([xy[npts-1,0]], [xy[npts-1,1]],'rs') # mark it is a last frame. More list-izing, but seems right ax1.plot([xy[k_max,0]], [xy[k_max,1]], marker='+', mec='g', ms=15) # mark maximum dist frame. Same listizing # Next is required for what I'm pretty sure are float64 numbers ax1.plot([amax_x], [amax_y], marker='o', mec='m',ms=5) # mark max amplitude. ax1.axis(v) show() I think the zoom difficulty can be handled with patches. An area I have yet to probe. -- There is nothing so annoying as to have two people talking when you're busy interrupting. -- Mark Twain -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] py2exe message RuntimeError: Could not find the matplotlib data files?
Thank you. That last link probably enlightened about six people. On 2/19/2010 8:28 PM, Christoph Gohlke wrote: http://lmgtfy.com/?q=py2exe+matplotlib+data+filesl=1 leads me to http://www.py2exe.org/index.cgi/MatPlotLib. - Christoph On 2/19/2010 7:11 PM, Wayne Watson wrote: OK, I'm on Win7. From the py2exe tutorial, I've found that hello.exe works as expected by the tutorial. That file is in the dist folder. I've now tried this program, pylab_scatter.py: #!/usr/bin/env python from pylab import * N = 30 x = 0.9*rand(N) y = 0.9*rand(N) area = pi*(10 * rand(N))**2 # 0 to 10 point radiuses scatter(x,y,s=area, marker='^', c='r') show() It runs properly in IDLE. == It appears to compile properly. Now from the cmd prompt window: C:\Users\Wayne\Sandia_Meteors\Sentinel_Development\Learn_Python\Py2exe_Test\distpylab_scatter.exe Traceback (most recent call last): File pylab_scatter.py, line 2, inmodule File pylab.pyc, line 1, inmodule File matplotlib\__init__.pyc, line 677, inmodule File matplotlib\__init__.pyc, line 598, in rc_params File matplotlib\__init__.pyc, line 552, in matplotlib_fname File matplotlib\__init__.pyc, line 242, in wrapper File matplotlib\__init__.pyc, line 482, in _get_data_path_cached File matplotlib\__init__.pyc, line 478, in _get_data_path RuntimeError: Could not find the matplotlib data files ---What is this? C:\Users\Wayne\Sandia_Meteors\Sentinel_Development\Learn_Python\Py2exe_Test\dist == I Googled this py2exe message RuntimeError: Could not find the matplotlib data files. As of yet, it does not look like a solution ia available for matplotlib. -- There is nothing so annoying as to have two people talking when you're busy interrupting. -- Mark Twain -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- There is nothing so annoying as to have two people talking when you're busy interrupting. -- Mark Twain -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Looking for a Compiled Demo of MPL Graphics
Strange that there wouldn't be any such demos. ;-) However, I'm now rolling my own. On 2/15/2010 6:55 AM, Wayne Watson wrote: Does anyone know where I can find a compiled demo that uses MPL grphics? I'd like, if possible, a Win version whose size is less than 10M, so that I can send it via e-mail, if necessary. It should use plot, so that someone can manipulate the plot with the navigation controls. At this point, I have no idea if that method is the fundamental graph tool or not. I suspect it is. If a mailable demo isn't available, maybe there's a web site that one can download such examples from? -- There is nothing so annoying as to have two people talking when you're busy interrupting. -- Mark Twain -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] py2exe message RuntimeError: Could not find the matplotlib data files?
OK, I'm on Win7. From the py2exe tutorial, I've found that hello.exe works as expected by the tutorial. That file is in the dist folder. I've now tried this program, pylab_scatter.py: #!/usr/bin/env python from pylab import * N = 30 x = 0.9*rand(N) y = 0.9*rand(N) area = pi*(10 * rand(N))**2 # 0 to 10 point radiuses scatter(x,y,s=area, marker='^', c='r') show() It runs properly in IDLE. == It appears to compile properly. Now from the cmd prompt window: C:\Users\Wayne\Sandia_Meteors\Sentinel_Development\Learn_Python\Py2exe_Test\distpylab_scatter.exe Traceback (most recent call last): File "pylab_scatter.py", line 2, in module File "pylab.pyc", line 1, in module File "matplotlib\__init__.pyc", line 677, in module File "matplotlib\__init__.pyc", line 598, in rc_params File "matplotlib\__init__.pyc", line 552, in matplotlib_fname File "matplotlib\__init__.pyc", line 242, in wrapper File "matplotlib\__init__.pyc", line 482, in _get_data_path_cached File "matplotlib\__init__.pyc", line 478, in _get_data_path RuntimeError: Could not find the matplotlib data files ---What is this? C:\Users\Wayne\Sandia_Meteors\Sentinel_Development\Learn_Python\Py2exe_Test\dist == I Googled this py2exe message "RuntimeError: Could not find the matplotlib data files". As of yet, it does not look like a solution ia available for matplotlib. -- "There is nothing so annoying as to have two people talking when you're busy interrupting." -- Mark Twain -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Looking for a Compiled Demo of MPL Graphics
Thanks for the offer, but potentially I'm OK on py2exe. I saw that, because I just ran into a snag in an unexpected way. I had tried two text output programs with success, then I tried one using pylab, and things went haywire. My problem is in route to this mail list right now. An objection to matplotlib. On 2/19/2010 8:46 AM, Christopher Barker wrote: Wayne Watson wrote: Strange that there wouldn't be any such demos. ;-) I've got a small prototype app that embeds MPL in wxPython, bundled up with py2exe (and py2app for the Mac). It's 11.7MB, if you want me to mail it to you. Bundled up python apps tend to be big, they have to include all of: -Your code (not usually very big) -Python itself (fairly big) -The gui toolkit (wxPython is very big) -Any other packages you are using. Bandwidth and disk space, and memory are cheaper than they used to be, so it's not that big a deal, really. However, I'm now rolling my own. always a good lesson, anyway. -Chris On 2/15/2010 6:55 AM, Wayne Watson wrote: Does anyone know where I can find a compiled demo that uses MPL grphics? I'd like, if possible, a Win version whose size is less than 10M, so that I can send it via e-mail, if necessary. It should use plot, so that someone can manipulate the plot with the navigation controls. At this point, I have no idea if that method is the fundamental graph tool or not. I suspect it is. If a mailable demo isn't available, maybe there's a web site that one can download such examples from? -- There is nothing so annoying as to have two people talking when you're busy interrupting. -- Mark Twain -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Where Do I Report MPL Guide Issues?
Good. Thanks. Did I do the right thing by posting here? Is it the case that all parts of the document are contributions? On 2/15/2010 11:02 PM, Philipp Bender wrote: When I come back tonight I will try to fix the errors for you. -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- There is nothing so annoying as to have two people talking when you're busy interrupting. -- Mark Twain -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Looking for a Compiled Demo of MPL Graphics
Does anyone know where I can find a compiled demo that uses MPL grphics? I'd like, if possible, a Win version whose size is less than 10M, so that I can send it via e-mail, if necessary. It should use plot, so that someone can manipulate the plot with the navigation controls. At this point, I have no idea if that method is the fundamental graph tool or not. I suspect it is. If a mailable demo isn't available, maybe there's a web site that one can download such examples from? -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Placing a marker at specific places where lines join?
Hi, Phillip. don't know why the mail would be returned. The address I see above is correct. sierra_mtni...@sbcglobal.net. The only thing I can think of is that yahoo mail wanted you to allow you to ask for permission. Beats me. Frankly, I've never really liked the reply format of mail lists. I use Thunderbird on Win. Sometimes I see messages in my inbox from someone and wonder are they trying for a private comm or just sending me a courtesy msg so that I should follow up on the list. Then there's Reply vs Reply All, and some filter problems. The latter can produce what I call the boomerang effect. Mail intended for me goes right into the list folder. There are goblins out there. :-) To me all this can be solved by one word, Forum. Not a mail list. Aside from the possible cost (to the Python Org?), comm is much clearer on them. Perhaps one disadvantage is that some people apparently have some bizarre form of e-mail that is not suitable for them. Otherwise, I have no idea why they are not more often used. html not allowed? The rules just vary too much to follow this. Same with bottom vs top posting in NGs. My view, and I'm not trying to be unfriendly here, is if one doesn't like what they see, ignore it, and don't respond. +NG. Expect the unexpected. The warriors and self appointed moderators hang out there. Some are just begging for a fight. +e-mail. If you aren't communicating with your friends, misunderstanding often prevail. +Forums: Almost bliss. I must belong to 30 of them. I must say that I am really puzzled by your comments about a footnote. I really don't use them much. I've probably posted thousands of msgs to NGs, forums, mail lists and I've never heard word one about footnotes. I use them as I see fit, and that's not very often. In fact, I like your use of the footnote below. I'm not even going to touch etiquette. I'd be really impressed if anyone follows them. I'll just say this. Internet communication by any of the methods above is sometimes just plain weird. It takes patience to use these methods. That includes personal e-mail. Someone should write a book about it. Preferably a shrink of psychologist. IMHO, the internet is generally meant for easy and informal communications, and not studied carefully written posts. That doesn't mean some care isn't needed. I see matters as a running dialogs. Both parties need to ask questions about clarity. Too much is often assumed.Maybe I'll write about it. Let's not hold our breaths. Hey, no footnotes used above. VBG Cheers. On 2/14/2010 1:39 PM, Philipp Bender wrote: Hi Wayne, (I wanted to answer you directly but the mail came back, don't know why) I have several points that you really should work on if you expect anyone to answer to your mails in future. First, you should check the destination of your messages. I got at least three of your messages addressed only for me, you obviously wanted to send them to the list but they only reached me. So I didn't answer because the mailing list should be an open and searchable discussion platform and I didn't want to forward your message to the list or something like that. Please check that carefully in future. The next thing is that everyone must have the feeling that you completely ignore replies. This link here should have been an alert for you: http://www.freebsd.org/doc/en/articles/mailing-list-faq/etiquette.html This was posted as reply to one of your mails. One thing explained there is to not cite the original mail after the own reply, instead you should cite the original issue at the beginning or in parts directly before the parts of the answer. See below: How to do foo bar? Just like that. You see? The same thing about your footnotes*. Another thing is the HTML I received from your adress two times -- HTML has neither benefit nor a good reputation in mailing lists. I delete HTML mails without reading it in most cases. And, but that's maybe more a personal thing, I find it very unfriendly to ask in the subject and write in the body something like (see subject) -- we take the time to read your message, in respect to that you also should take the time to ask a complete question. Please don't misunderstand this message -- I don't want to blame you, I want to help you and make sure that you get answers to your questions in future. Regards, Philipp * like this one here. They don't help you, they don't explain anything, they don't help me reading the message, they have absolutely no benefit. -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net
Re: [Matplotlib-users] Placing a marker at specific places where lines join?
Did you see the figure I included to John? If not, let me put it simply. Suppose you have 50 straight sticks connected at their ends with some hook. I want to color the hook holding stick 10 to 11, but color no other hook. Not 99 hooks. Yesterday, I tried to do a simple plot of three points without markers. Worked fine. I then tried something like plot(1,2,bs). I got an error . I tried variations on the plot with qualifiers. Zero. That seems like it should put the marker right at (1,2). My immediate reaction to your example, is that it colors every hook. Am I missing something in your example? On 2/14/2010 1:13 AM, Philipp Bender wrote: Why don't you just use the code provided here: http://matplotlib.sourceforge.net/examples/api/watermark_image.html The first thing to do when you want to plot something is maybe to look at the examples section, isn't it? It shows pretty good how to not only mark points, but also to mark points with semi-transparent circles. Please keep in mind: Plotting a set of lines and mark several points produces exactly the same image as plotting a set of lines and, above that, plot a set of circles. Maybe there are cleaner solutions, but to get an impression how to do things this might be enough. Cheers Philipp -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Placing a marker at specific places where lines join?
Thank you for the code below. Yes, it actually does what I want it to do. The difference in what I did similarly yesterday (see my response to Philipp moments ago) is the [ ], a list. All this for one simple bit of list notation. Somehow I'm not getting through to anyone what I have actually read. I do not plan to repeat it again here. If I have some time in the near future, I will write a line by line criticism of the basic tutorial. OK, maybe the first page*. I already made some remarks about 5-6 days ago about that document. I think it was that one. I'll submit it to one of the lists John provided on where I should send issues about the guide. Now to put an end to the show() question. See my next post in a few minutes. Subject is down another pathway I think. * Subject is FAQ Page Needs Some Work On 2/14/2010 6:29 AM, Jae-Joon Lee wrote: On Sat, Feb 13, 2010 at 11:28 PM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Well, I'm not quite sure what to say to your claim. In certain instances I am trying to get through to someone here that something is missing for newbies. In one word, pedagogy (as perhaps in a text book, not a reference manual or dictionary). I'm trying to be positive about it, and not negative. Positive criticism I hope. I apologize if I offend you. The main matplotlib documentation has a section called user's guide (http://matplotlib.sourceforge.net/contents.html). And the third item in the user's guide is pyplot tutorial. So, I believe anyone who're willing to learn matplotlib, is willing to read through some sections of the user's guide and at least the tutorial. Is my standard too high? I'm not saying that the documentation is complete, and any suggestion (or even contribution) will be very appreciated. However, while you're saying that pedagogy is missing in our documentation, but it seems like that you haven't even read the very basic tutorial (because, as John said, the answer to your original question is in that tutorial). And I doubt how this could be positive criticism (while I understand you want to be positive). Anyhow, for your original question, try plot([0, 1, 2], [0, 1.5, 2], -) plot([1], [1.5], go) -JJ -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Where Do I Report MPL Guide Issues?
In this case, it's spelling errors, mostly. axes for axis, etc. -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Placing a marker at specific places where lines join?
Suppose I plot a line from (0,0) to (1,1.5) to (2,2). Now I want to mark (1,1.5) with a green circle. How is that done? -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] How Does One Learn to Use MatPlotLib? (PUG)
I'm beginning to read aboutPython OOP, classes, inheritance and the like. It seems like an understanding of those concepts is key to understanding how the import needs are met. -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] My matplotlib To-Do List
I think I need a time out to consider my recent posts. This particular mod can wait while I get to other priority items into action again. So here's my list of thing to do when I come back to it. Check out ipython more thoroughly. Examine the backend concept Read about the MPL interactive mode. Look at the embedded app material in MPL. Determine if a better interpreter tool than IDLE would satisfy the end users of the program I'm modifying. The hurdle is non-Python users who just fire up IDLE and execute the program via F5. That plus many are even reluctant to move from 2.4 to 2.5. New features could move that along. Read the parts of the MPL Guide that I've culled out for my interests.. Attend a PUG meeting in the San Francisco Bay Area on the 25th. Buy the (new) MPL book on Amazon if my local library can't get a loan of one of the two libraries in the US that has it. Watch relevant videos from the 8th Annual Python in Science Conference That should be enough, and should keep me busy when I expect to return to this in a few weeks. Thanks to the participants who responded to my posts. -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] My matplotlib To-Do List
Thanks. True enough. I've been exploring that possibility, and it is probably the way to go. When I get a little further down the line, I'll probably distribute it that way. On 2/12/2010 9:35 AM, Christopher Barker wrote: Wayne Watson wrote: So here's my list of thing to do when I come back to it. good plan, one comment: Determine if a better interpreter tool than IDLE would satisfy the end users of the program I'm modifying. The hurdle is non-Python users who just fire up IDLE and execute the program via F5. This one is a no brainer -- IDLE is an Integrated Development Environment -- if you are not developing, you don't need it, t is NOT a tool to run simply run a python program. It's really not hard to run a python program. Note that py2exe and friends might be the best solution -- these are tools that build a self-contained executable from a python program, so you end up with something to double click on, just like any other program. I don't know about TkInter, but wxPython has an option where it will put up a message window to show the user standard output -- it sounds like you want the user to see messages, etc. Maybe TK has something similar. Good luck, -Chris -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Down Another Pathway with Plot-Show
Certainly in IDLE, when one hits a show() in a def, the program does not continue to the next statement. It goes somewhere else, because my program continues normally. Apparently, it goes back up the def calls to the main program, which is a loop that just reads the next file to perform more of what I expect. If I know this to be true*, that allows a workaround with globals. * There is another def that uses plot-show, and it continues without any notable difficulty. The show() is the last statement in the def. Of course, since show() is a legitimate use, if one knows the end rule, this seems quite reasonable way to operate. -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Finding the Supposed MPL show() bug.
A Ground Hog movie moment? Deja vu all over again (Quoting Yega Berra.). I went right through John Hunter's comment of a day or two ago about the need to solve this with ipython. That has to be taken into consideration; otherwise, this is a no-go.. I suppose an interesting aside though on what I discovered through the debugger. When the program hit show(), it went back to the first line in the calling def instead of after where it was called. I suppose in some dim way one could use a global variable to detect that occurrence, and remedy matters. I'll defer to ipython. On 2/10/2010 7:08 PM, Wayne Watson wrote: Foiled again. I clicked on the previous version, which has no MPL code in the same def. The show() is where things go wrong though. The question now is where did the program go after the show()? Maybe it's time to put the interactive debugger into play, which I've barely used. I have used others. On 2/10/2010 6:44 PM, Wayne Watson wrote: I chronicled some of my MPL problems here. It appeared that show() could be the problem. The problem is apparently the difference between running the program in IDLE and executing it from the folder (Maybe there's a name for that?). There are only about 8 lines of MPL code to the show() in a def. I inserted and moved a return down each line, executing the program afterwords. It behaved as expected, no plot. Once I removed the plot, I got the unexpected behavior. A video clip not played. So off to a direct py file execution. It worked fully. What this amounts to is that we need to find a better way for users to execute the program than through IDLE. Tomorrow I'll pass this by the original developer. -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Finding the Supposed MPL show() bug.
Definitely tkinter. I'll look at the link. Interestingly though, and I think I mentioned this. There is another plot that's been working fine. I seldom use it, but when I have, it seems to work. The developer stated this in a msg this morning. Either way should work. Double clicking the py file is probably more convenient, but you can more easily see error messages if you open it with IDLE On 2/11/2010 7:38 AM, John Hunter wrote: On Thu, Feb 11, 2010 at 9:18 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Yes, certainly,as you explained a few days ago, the present use is incompatible with idle usage. Further, you mentioned the need for ipython and the "backend" to make it work (in IDLE?). The way we are using problem seems a bit ambiguous, so let me tell what I want the application to do. From the screenshots, this appears to be a tk app that is being run from idle. If you are trying to integrate pyplot with this, it is a mode of usage that is *explicitly not supported*. Rather, you should embed matplotlib in the app following the embedding_in_tk*.py examples at http://matplotlib.sourceforge.net/examples/user_interfaces/index.html JDH -- "Crime is way down. War is declining. And that's far from the good news." -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Finding the Supposed MPL show() bug.
That link has no reference to tkinter. tk and tk2, plus a few others with tk in their names, but nothing else.A search in the box produced nothing. On 2/11/2010 8:36 AM, Wayne Watson wrote: Definitely tkinter. I'll look at the link. Interestingly though, and I think I mentioned this. There is another plot that's been working fine. I seldom use it, but when I have, it seems to work. The developer stated this in a msg this morning. Either way should work. Double clicking the py file is probably more convenient, but you can more easily see error messages if you open it with IDLE On 2/11/2010 7:38 AM, John Hunter wrote: On Thu, Feb 11, 2010 at 9:18 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Yes, certainly,as you explained a few days ago, the present use is incompatible with idle usage. Further, you mentioned the need for ipython and the "backend" to make it work (in IDLE?). The way we are using problem seems a bit ambiguous, so let me tell what I want the application to do. From the screenshots, this appears to be a tk app that is being run from idle. If you are trying to integrate pyplot with this, it is a mode of usage that is *explicitly not supported*. Rather, you should embed matplotlib in the app following the embedding_in_tk*.py examples at http://matplotlib.sourceforge.net/examples/user_interfaces/index.html JDH -- "Crime is way down. War is declining. And that's far from the good news." -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- "Crime is way down. War is declining. And that's far from the good news." -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] How Does One Learn to Use MatPlotLib?
Thanks for the info. I'm semi-resistant to ipython. I tried if for a few hours, and it seemed a bit too much like linux. Years ago I used linux a lot, and enjoyed it. I'll consider it. Windows is the game now. Yes, actual use is good, but the needed imports seem a bit baffling. scipy, pylab, matplotlib, ...? What components do I only need for a particular use? The videos you mentioned could be helpful. I do not belong to any group, and my small town is a long way from any educational resources.What I learn is from a few books, FAQs, and recently the MPL Guide. Within a 50 mile radius, I know exactly one other person who knows Python. He's a very bright high school student. On 2/9/2010 10:33 PM, Gökhan Sever wrote: On Tue, Feb 9, 2010 at 8:15 PM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Subject is the question. As I see it, it's useful to know MatLab. A simple query with matplotlib tutorial shows a number of hits. The first, reference to v0.99.a documentation barely qualifies. Examples galore and a pretty minimal introduction. In the first 10 or so hits ther's a blog and mention of a video. The blog may appeal to some, but it seems unelementary. The video basically asks to sign in. Who knows where that goes? I've seen a few videos for MPL, but they all look tied into $$. I've made some reasonable progress on MPL, but am still far short of being confident of using it. Too much try this and see. I know of exactly one book on MPL ( for scientists. sounds interesting). It was published recently by a foreign author. It is not yet widely distributed. Your turn. Comments? -- "Crime is way down. War is declining. And that's far from the good news." -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users For me best way to learn is to use it actually :) Especially on homework and projects. Mailing lists are also very helpful as you are already doing. Try with ipython --pylab option. Also check SciPy09 (http://conference.scipy.org/SciPy2009/) videos. There are one introductory and advanced tutorials that you can see online (without registering) or downloading to your computer. -- Gökhan -- "Crime is way down. War is declining. And that's far from the good news." -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Finding the Supposed MPL show() bug.
Thanks. Got detoured by not supported. I think I'll be printing our your messages in the future. I just went back to one just now, and had forgotten about your mentio of pyLab, model. On 2/11/2010 7:38 AM, John Hunter wrote: On Thu, Feb 11, 2010 at 9:18 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Yes, certainly,as you explained a few days ago, the present use is incompatible with idle usage. Further, you mentioned the need for ipython and the backend to make it work (in IDLE?). The way we are using problem seems a bit ambiguous, so let me tell what I want the application to do. From the screenshots, this appears to be a tk app that is being run from idle. If you are trying to integrate pyplot with this, it is a mode of usage that is *explicitly not supported*. Rather, you should embed matplotlib in the app following the embedding_in_tk*.py examples at http://matplotlib.sourceforge.net/examples/user_interfaces/index.html JDH -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] A Menagerie of Imports
For newbies to MPL, needed imports seem a bit baffling. scipy, pylab, matplotlib, ...? What libs or lib components do I only need for a particular use? Suppose I want to produce a scatter, contour, or 3d plot. What do I need minimally or more widely? I'm assuming that I don't want to use import matplotlib a lot, but something selectively like from matplotlib.image import AxesImage, or from matplotlib.plot import figure, show. What did I miss in my Python upbringing? -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] How Does One Learn to Use MatPlotLib? (PUG)
Well, here's an interesting twist on help, PUG, Python Users Groups. A world wide list is at http://wiki.python.org/moin/LocalUserGroups., The nearest one to me is near San Jose, CA about 180 miles from here, and meets the fourth Thursday of the month. Fortunately, I travel down there fairly often to visit friends and family. I think I'll mark my calendar. -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Does Matplotlib have Image Processing?
See Subject. I see some fairly minimal IP in a image tutorial. I'm thinkig of things like a dark subtract. -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Finding the Supposed MPL show() bug.
Foiled again. I clicked on the previous version, which has no MPL code in the same def. The show() is where things go wrong though. The question now is where did the program go after the show()? Maybe it's time to put the interactive debugger into play, which I've barely used. I have used others. On 2/10/2010 6:44 PM, Wayne Watson wrote: I chronicled some of my MPL problems here. It appeared that show() could be the problem. The problem is apparently the difference between running the program in IDLE and executing it from the folder (Maybe there's a name for that?). There are only about 8 lines of MPL code to the show() in a def. I inserted and moved a return down each line, executing the program afterwords. It behaved as expected, no plot. Once I removed the plot, I got the unexpected behavior. A video clip not played. So off to a direct py file execution. It worked fully. What this amounts to is that we need to find a better way for users to execute the program than through IDLE. Tomorrow I'll pass this by the original developer. -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Finding the Supposed MPL show() bug.
I chronicled some of my MPL problems here. It appeared that show() could be the problem. The problem is apparently the difference between running the program in IDLE and executing it from the folder (Maybe there's a name for that?). There are only about 8 lines of MPL code to the show() in a def. I inserted and moved a return down each line, executing the program afterwords. It behaved as expected, no plot. Once I removed the plot, I got the unexpected behavior. A video clip not played. So off to a direct py file execution. It worked fully. What this amounts to is that we need to find a better way for users to execute the program than through IDLE. Tomorrow I'll pass this by the original developer. -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Verifying the Use of show()? Win XP
Version of Python would help too. I'm using 2.5. On 2/9/2010 8:06 AM, Wayne Watson wrote: I'm sure not making much progress on understanding show(). When used in XP in IDLE or by file execution (click on file name), it seems to tie up the executing program. In IDLE, the shell window stops and one must exit the window. I'd appreciate it if someone could take any examples from http://matplotlib.sourceforge.net/index.html and try to execute them as in the first paragraph to see if they terminate successfully.Let me know what OS used, hopefully XP, and if you used IDLE or file execution. I suspect you will find every example there ends with show(). Try putting a print statement after show() you've done it with the show() the last line. -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Verifying the Use of show()? Win XP
Thanks for the clarification. I'm really new to this, and do not know of interactive mode. I presume there's a command to turn it off and on, and possibly an example on how to do it. Is this method of operation with show() mentioned anywhere? The unfortunate present use of show() is that it ties up the shell script, where I happened to have written program output. It's handy to put it there, since it's meant to be interactive. The user is keyboard arrowing through images, and statistical data is placed on the shell window. At the same time he sees a plot of data relevant to the image. He needs to close the plot window before going to the next image. I can probably figure out how to kill the plot window when he does that. My problem with using ipython is that the program I'm modifying is used with IDLE, and people have gotten to use it that way. I had nothing to do with that method of op. I doubt any of the users would be agreeable to using ipython. None of them know Python. The next time the program is released, I may provide it in executable form. I used matlab five years ago, for about two months. To see if it could help me understand MPL, I fired it up, and it's now working. Perhaps the interactive op is explained there. I take it there is no show() there? Interesting mention of non-blocking. In the midst of this dilemma, I started getting socket errors. Using McAffe I found pythonw as blocked. Would that be in anyway associated with the use of show()? I've since changed it to outbound blocking. On 2/9/2010 8:18 AM, John Hunter wrote: On Tue, Feb 9, 2010 at 10:06 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: ... the last line. show is meant to start the GUI mainloop, which is usually blocking, and raise all windows, so the behavior you are reporting is the intended behavior. When working interactively, as in Idle, you shouldn't need to use show if you turn interactive mode on. http://matplotlib.sourceforge.net/users/shell.html We recommend using ipython in pylab model when working interactively because it is designed to make the correct interactive settings and override show to be non-blocking. You can obtain the right results in matplotlib using Idle if you are careful, but for just works out of the box ipython in pylab mode will be easier. JDH -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Verifying the Use of show()? Win XP
Thanks. I'll consider it. See my post to John Hunter moments ago as to why I must use IDLE. Basically, the users are not at all familiar with Python, and historically the us has been that way for 3-4 years. On 2/9/2010 8:20 AM, Ben Axelrod wrote: Maybe instead of plot.show() you should do something like: plot.draw() raw_input('Press ENTER to exit') Personally, I also use IDLE on Windows XP to edit my matplotlib files. However, I never execute in IDLE. I simply double click the file in windows explorer. -Ben -Original Message- From: Wayne Watson [mailto:sierra_mtnv...@sbcglobal.net] Sent: Tuesday, February 09, 2010 11:07 AM To: matplotlib-users@lists.sourceforge.net Subject: [Matplotlib-users] Verifying the Use of show()? Win XP I'm sure not making much progress on understanding show(). When used in XP in IDLE or by file execution (click on file name), it seems to tie up the executing program. In IDLE, the shell window stops and one must exit the window. I'd appreciate it if someone could take any examples fromhttp://matplotlib.sourceforge.net/index.html and try to execute them as in the first paragraph to see if they terminate successfully.Let me know what OS used, hopefully XP, and if you used IDLE or file execution. I suspect you will find every example there ends with show(). Try putting a print statement after show() you've done it with the show() the last line. -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Verifying the Use of show()? Win XP
Thanks. Completely missed it. (P.S. Reply All +corrected mail filter.) On 2/9/2010 8:18 AM, John Hunter wrote: On Tue, Feb 9, 2010 at 10:06 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: I'm sure not making much progress on understanding show(). When used in XP in IDLE or by file execution (click on file name), it seems to tie up the executing program. In IDLE, the shell window stops and one must ... http://matplotlib.sourceforge.net/users/shell.html We recommend using ipython in pylab model when working interactively because it is designed to make the correct interactive settings and override show to be non-blocking. You can obtain the right results in matplotlib using Idle if you are careful, but for just works out of the box ipython in pylab mode will be easier. JDH -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] How Does One Learn to Use MatPlotLib?
Subject is the question. As I see it, it's useful to know MatLab. A simple query with matplotlib tutorial shows a number of hits. The first, reference to v0.99.a documentation barely qualifies. Examples galore and a pretty minimal introduction. In the first 10 or so hits ther's a blog and mention of a video. The blog may appeal to some, but it seems unelementary. The video basically asks to sign in. Who knows where that goes? I've seen a few videos for MPL, but they all look tied into $$. I've made some reasonable progress on MPL, but am still far short of being confident of using it. Too much try this and see. I know of exactly one book on MPL ( for scientists. sounds interesting). It was published recently by a foreign author. It is not yet widely distributed. Your turn. Comments? -- Crime is way down. War is declining. And that's far from the good news. -- Steven Pinker (and other sources) Why is this true, but yet the media says otherwise? The media knows very well how to manipulate us (see limbic, emotion, $$). -- WTW -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Difference Between Scatter and Plot? (Zig-Zag)--Solution
(I see I forgot to post this solution to the list. I really have quickly developed a dislike for having to go to extra lengths to make sure this happens. Perhaps one of my difficulties is that some people respond directly to me, and my mail filter shuttles the message to my matplotlib folder instead of my inbox, so it looks like someone has sent their response to the list.) Looking at your code suggests this is not what I want. The cumsum (summation) buffaloes me. I've just moved to Win7, and my PC is not yet ready for Python, so I can't really grasp what you have. From what I've been able to determine from a friend, who knows MatLab extremely well, this is not a difficult thing to do in MatLab, and likely in MPL. The creation of the path across a canvas/figure is done with plot. It will draw the zig-zag starting with x0,y0. To show the path clearly there are several ways to proceed. I can color each point successively with R,G, and B. The first red point, maybe with the help of an icon, says this is the start. Maybe a red circle. The next two points use a green and blue circle, probably of a different size, or maybe a square. R,G,B is repeated along the path. Another choice is to define an arrow and orient it in the direction of the next segment. An appealing way to do all of this is to pause drawing the next segment. That way, the dynamics of the path are clearly seen. On 2/5/2010 5:16 AM, Alan G Isaac wrote: On 2/5/2010 12:51 AM, Wayne Watson wrote: what I'm looking for is a way to draw a zig-zag path indicating a path taken by a particle Here is a 2d example: import numpy as np import matplotlib.pyplot as plt locs = np.random.random_sample((2,30)) locs = np.random.random_sample((2,30)) - 0.5 locs = np.cumsum(locs, axis=-1) x,y = locs plt.plot(x,y) hth, Alan Isaac -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- My life in two words. Interrupted Projects. -- WTW (quote originator) -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Uninstalling MatPlotLib (win7)? {Site-Packages?] -- Solved
As it turns out, this was easy to solve. What drove me to this point is that the distributor of the software I use mentioned that numpy had to be installed before MPL. I had only installed MPL when I ran into a program that failed. I thought it might be because I hadn't installed numpy first, in fac I had not at all installed it at that moment. Now I was faced with the question of backing out MPL. However, the MPL install had given several warnings about some file missing. This reinforced the idea order was needed. As it turns out order doesn't matter here. I installed numpy and all is working fine. I have no idea though when order does matter. On 2/6/2010 4:39 AM, Christoph Gohlke wrote: Depending on the version and installer used, manually remove C:\Python25\Lib\site-packages\pylab.py C:\Python25\Lib\site-packages\matplotlib C:\Python25\Lib\site-packages\mpl_toolkits C:\Python25\Lib\site-packages\matplotlib*.egg-info C:\Python25\Removematplotlib.exe C:\Python25\matplotlib-wininst.log The packages dateutil and pytz are also installed along with matplotlib but might be used by other packages too. Christoph On 2/5/2010 12:11 PM, Wayne Watson wrote: I'm working in IDLE in Win7. It seems to me it gets stuck in site-packages under C:\Python25. Maybe this is as simple as deleting the entry? Well, yes there's a MPL folder under site-packages and an info MPL file of 540 bytes. There are also pylab.py, pyc,and py0 files under site. What to do next? On 2/5/2010 7:13 AM, Wayne Watson wrote: I should have installed numpy first, and got some errors installing MPL. I don't see an uninstall in Control Panel Add/Rmv. -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- My life in two words. Interrupted Projects. -- WTW (quote originator) -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Using bounds on plot axises. Not clear how this works?
The segment below is supposed to plot two columns of (x,y) data and do it in an area 640x480. Apparently, I'm missing how to use v to get this done. It dies at col.axis(v) with list object has no attribute 'axis'. From looking at some MPL examples, it's not clear to me how one uses axis here. I might have needed axes, but that doesn't work either. Comments? ... trk_stats = (amin, amax, mean, std, per_tile25, per_tile50, per_tile75) fig = figure() ax1 = fig.add_subplot(111) v = (0, 640, 0, 480) print shapes: , xy[:,0].shape, xy[:,1].shape col = ax1.plot(xy[:,0], xy[:,1]) col.axis(v) show() print something for wtw plot print return trk_stats -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] How to close a plot?
Thanks. It seems most example of matplotlib end with show(). In fact, all may end that way, at least the short ones. On 2/7/2010 1:50 PM, Jeff Whitaker wrote: I need to know how to close a figure/chart in matplot. -- My life in two words. Interrupted Projects. -- WTW (quote originator) -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Using bounds on plot axises. Not clear how this works?
Yes, that did it. Thanks. Some of that code I copied from an example, the ax1 part. I guess it's related to subplot. The 1 on ax doesn't make much sense to me. Maybe there was an ax2 in the original, so there were two subplots. So it looks like to manipulate the subplot, one uses ax1 with calls to color the end of lines, or changes the line to dashes? Maybe labels and titles? Although that may be the way pyplot works. On 2/7/2010 3:24 PM, Jae-Joon Lee wrote: try ax1.axis(v) -JJ On Sun, Feb 7, 2010 at 5:16 PM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: The segment below is supposed to plot two columns of (x,y) data and do it in an area 640x480. Apparently, I'm missing how to use v to get this done. It dies at col.axis(v) with list object has no attribute 'axis'. From looking at some MPL examples, it's not clear to me how one uses axis here. I might have needed axes, but that doesn't work either. Comments? ... trk_stats = (amin, amax, mean, std, per_tile25, per_tile50, per_tile75) fig = figure() ax1 = fig.add_subplot(111) v = (0, 640, 0, 480) print shapes: , xy[:,0].shape, xy[:,1].shape col = ax1.plot(xy[:,0], xy[:,1]) col.axis(v) show() print something for wtw plot print return trk_stats -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- My life in two words. Interrupted Projects. -- WTW (quote originator) -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] How to close a plot?
Thanks. It seems most example of matplotlib end with show(). In fact, all may end that way, at least the short ones. On 2/7/2010 1:50 PM, Jeff Whitaker wrote: I need to know how to close a figure/chart in matplolib. -- My life in two words. Interrupted Projects. -- WTW (quote originator) -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] How to close a plot?
Well, that didn't quite work. I tried ... fig=figure() ... fig.close() show() and show() fig.close() In the first case, I got the error msg: On 2/7/2010 7:15 PM, Wayne Watson wrote: Figure has no attribute close Thanks. It seems most example of matplotlib end with show(). In fact, all may end that way, at least the short ones. On 2/7/2010 1:50 PM, Jeff Whitaker wrote: I need to know how to close a figure/chart in matplolib. -- My life in two words. Interrupted Projects. -- WTW (quote originator) -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] How to close a plot?
In the second case, after x, nothing really happened. The program resecuted the def it was in. On 2/7/2010 7:19 PM, Wayne Watson wrote: Well, that didn't quite work. I tried ... fig=figure() ... fig.close() show() and show() fig.close() In the first case, I got the error msg: On 2/7/2010 7:15 PM, Wayne Watson wrote: Figure has no attribute close Thanks. It seems most example of matplotlib end with show(). In fact, all may end that way, at least the short ones. On 2/7/2010 1:50 PM, Jeff Whitaker wrote: I need to know how to close a figure/chart in matplolib. -- My life in two words. Interrupted Projects. -- WTW (quote originator) -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] MatPlotLib Usage FAQ Page Needs Some Work.
I can write some fairly decent Python code. In fact, I've recently written 400-500 lines often using numpy. There are still a number of concepts that are fuzzy. I have a modest familiarity of OOP from years ago with C++, and a few things I've picked up from Python. Five years ago, I was working with Matlab, but my knowledge has diminished. Nevertheless, I finally decided to graphics, MPL, to display what I'm doing. I've had some modest success using very basic operations, sometime guessing at usage along the way. I've looked through the bewildering array of MPL, pylab, pyplot docs and examples. It's slowly fitting together. I decided to give the following web page a closer look to see what are the differences between the MPL players. http://matplotlib.sourceforge.net/faq/usage_faq.html. I've copied a few paragraphs at the start of the FAQ below. I've studied it fairly carefully, and more or less comprehend it. However, why does it need words like state-machine, convenience functions, and object-oriented. I'm familiar with them all, but the concepts really aren't presented clearly in relationship to the code below. I'm not even sure if we are pro-pylab or pyplot as the preferred-style. What part of some of the code is pyplot or otherwise? Highlight it. Not everyone is clear on some of the assumed Python concepts here. It seems as though Python has a way of aligning itself with other tools, For example, Matlab and Tk. Despite the apparent appeal of MPL and Tkinter, seldom, maybe never, is anyone who is attracted to these ideas really familiar with the tools on which they are based. (Perhaps its the other way. Everyone knows them )Yet no explanation is offered. What would that take, 3 pages each? Matplotlib, pylab, and pyplot: how are they related? Matplotlib is the whole package; pylab is a module in matplotlib that gets installed alongside matplotlib; and matplotlib.pyplot is a module in matplotlib. Pyplot provides a Matlab-style state-machine interface to the underlying object-oriented plotting library in matplotlib. Pylab combines the pyplot functionality (for plotting) with the numpy functionality (for mathematics and for working with arrays) in a single namespace, making that namespace (or environment) even more Matlab-like. This is what you get if you use the ipython shell with the -pylab option, which imports everything from pylab and makes plotting fully interactive. ... And using pyplot convenience functions, but object-orientation for the rest: import matplotlib.pyplot as plt import numpy as np x = np.arange(0, 10, 0.2) y = np.sin(x) fig = plt.figure() ax = fig.add_subplot(111) ax.plot(x, y) plt.show() So, why do all the extra typing required as one moves away from... = -- My life in two words. "Interrupted Projects." -- WTW (quote originator) -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Uninstalling MatPlotLib (win7)?
I should have installed numpy first, and got some errors installing MPL. I don't see an uninstall in Control Panel Add/Rmv. -- My life in two words. Interrupted Projects. -- WTW (quote originator) -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Uninstalling MatPlotLib (win7)? {Site-Packages?]
I'm working in IDLE in Win7. It seems to me it gets stuck in site-packages under C:\Python25. Maybe this is as simple as deleting the entry? Well, yes there's a MPL folder under site-packages and an info MPL file of 540 bytes. There are also pylab.py, pyc,and py0 files under site. What to do next? On 2/5/2010 7:13 AM, Wayne Watson wrote: I should have installed numpy first, and got some errors installing MPL. I don't see an uninstall in Control Panel Add/Rmv. -- My life in two words. Interrupted Projects. -- WTW (quote originator) -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Difference Between Scatter and Plot?
Is there a difference between the two (Subject). Perhaps plot connects lines in the order of x? However, scatter does not connect any points? -- My life in two words. Interrupted Projects. -- WTW (quote originator) -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Difference Between Scatter and Plot? (Zig-Zag)
Simply explained what I'm looking for is a way to draw a zig-zag path indicating a path taken by a particle. Maybe this is best done with some tools outside of the normal plot capabilities? On 2/4/2010 9:02 PM, Wayne Watson wrote: Is there a difference between the two (Subject). Perhaps plot connects lines in the order of x? However, scatter does not connect any points? -- My life in two words. Interrupted Projects. -- WTW (quote originator) -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Connecting the Dots with Scatter Plot (Motion Jumps)
I have a bunch of (x,y) points that relate to an ordered path of a meteor; however, when plotted they may no become ordered. For example, (0,0), (2,2), (1,1), (3,4) ... Point 2 jumps backwards. I'd like to connect the points with a line, or better, a line with an arrow indicating direction, so when someone looks at the plot, they can see how uneven the path is and any possible wild jumps in the direction. For example, (0,0), (0.5, 11), (1,1), (2,2) ... Can this be dome? -- My life in two words. Interrupted Projects. -- WTW (quote originator) -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] How Exit Gracefully after a Show?
See Subject. I'm looking at an example whose last line is Show(). I see nothing on the graphic that will allow me to exit. If I select the x in the upper right, it dies badly. -- My life in two words. Interrupted Projects. -- WTW (quote originator) -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Printing Graphs and Image Processing Operations
Thanks. I'll keep this in mind when I get to the point when I'm ready to consider it as part of a program I'm writing. Someone in Image-SIG sent me a module he wrote that might be helpful too. Michael Droettboom wrote: Wayne Watson wrote: I've used MPL a bit, and am wondering if there's a facility for sending graphic images to a printer, or putting them in some format like png? I don't necessarily want the graphics to appear in a window, but would like to print them directly once they are ready. Can one put in a page feed, so that images don't all fall on the same page or cut across pages? You can use one of the non-GUI backends to generate plots in a number of formats, including PNG, PDF, PS and SVG. See this: http://matplotlib.sourceforge.net/faq/installing_faq.html#backends The PDF backend is the only one I'm aware of that supports multiple pages. This is the docstring for PdfPages: A multi-page PDF file. Use like this:: # Initialize: pp = PdfPages('foo.pdf') # As many times as you like, create a figure fig, then either: fig.savefig(pp, format='pdf') # note the format argument! # or: pp.savefig(fig) # Once you are done, remember to close the object: pp.close() (In reality PdfPages is a thin wrapper around PdfFile, in order to avoid confusion when using savefig and forgetting the format argument.) Is there any image processing operation available to do simple operations like dark subtract or stack different images on one other to produce composites of several images? Maybe Python has such a facility that's already available as a library? Matplotlib doesn't have a very strong set of these things built-in (though some things are possible with the image support in the image module). You can also get an rgb buffer of the figure (when using the Agg backend), eg. (where 'fig' is the figure object): fig.canvas.get_renderer().tostring_rgb() This is a string of 24-bit rgb triples, which can be converted to the Numpy array for arithmetical processing, or converted to a Python Imaging Library Image object. Mike -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet I was thinking about how people seem to read the Bible a whole lot more as they get older; then it dawned on me . . they're cramming for their final exam. -- George Carlin Web Page: www.speckledwithstars.net/ -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Printing Graphs and Image Processing Operations
I've used MPL a bit, and am wondering if there's a facility for sending graphic images to a printer, or putting them in some format like png? I don't necessarily want the graphics to appear in a window, but would like to print them directly once they are ready. Can one put in a page feed, so that images don't all fall on the same page or cut across pages? Is there any image processing operation available to do simple operations like dark subtract or stack different images on one other to produce composites of several images? Maybe Python has such a facility that's already available as a library? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet I was thinking about how people seem to read the Bible a whole lot more as they get older; then it dawned on me . . they're cramming for their final exam. -- George Carlin Web Page: www.speckledwithstars.net/ -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython
Good. Thanks. Interesting that ls and pwd are used for Win, but that's fine. How do I copy parts of the window? All I can do at the moment is sweep out a rectangular area with the mouse. It looks like I underestimated the need for automagic. David Arnold wrote: Depends on whether automagic is enabled or not. If automagic is OFF, you need to enter the %, as in %cd. If automagic is ON (the default), then you don't need to enter the %, as in cd. automagic can be toggled on and off as follows: In [8]: automagic Automagic is OFF, % prefix IS needed for magic functions. In [9]: %automagic Automagic is ON, % prefix NOT needed for magic functions. On my mac, I can change to my home directory as follows: In [10]: cd /Users/darnold I can list the files in this directory with: In [11]: ls Desktop/Movies/context/ Documents/Music/java.log.344 Downloads/NetBeansProjects/java.log.415 Dropbox/Pictures/luatex-cache/ Library/Public/matlab_crash_dump.344 LizThesis/Sites/matlab_crash_dump.415 I can cd into my Sites folder with: In [12]: cd Sites /Users/darnold/Sites I can get the current directory with: In [13]: pwd Out[13]: '/Users/darnold/Sites' I can move up a directory level with: In [14]: cd .. /Users/darnold Hope this helps. D. On Dec 6, 2009, at 3:01 PM, Wayne Watson wrote: I've seen the tutorial, but need something more. How do I know what folder I'm in? How do I move from where I am to, for example, C:\abc\def? So far I've tried various combinations like this: cd .. cd C:\ pwd (yes, I know it's not windows) I tried %cd .., and that may have moved me but I seem to get back to the same place. I seem to be in C:\Documents and Settings\administrator. If I doa %cp ..\\ it looks like I get to C:\, but follwing that with pwd gets me back to where I started--C:\Documents and Settings\administrator. If I want to execute a program with %run, I need to be where abc.py is or, perhaps say something like %run C:\myPyPrograms\abc.py. Dir doesn't work and I haven't been able to even see what's in the folder. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet ... humans'innate skills with numbers isn't much better than that of rats and dolphins. -- Stanislas Dehaene, neurosurgeon Web Page: www.speckledwithstars.net/ -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet ... humans'innate skills with numbers isn't much better than that of rats and dolphins. -- Stanislas Dehaene, neurosurgeon Web Page: www.speckledwithstars.net/ -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Replying with Thunderbird. Reply All doesn't cut it all the time.
I see a variance with replying to a post on this list and other Python lists. It appears to be a difference between the way people post. If I see From: a...@xyz.net and To: matplotlib-users@lists.sourceforge.net, then Reply All gets both. If I see, From: joe...@xyz.net and To: my e-mail address (or any personal e-address), then Reply All only goes to the From e-address, which means I have to fill in the e-address for this mail list. Apparently, some people from outside using a mail program like Thunderbird. How do I get two for price of one, so to speak? Comments? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet ... humans'innate skills with numbers isn't much better than that of rats and dolphins. -- Stanislas Dehaene, neurosurgeon Web Page: www.speckledwithstars.net/ -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython
Well, that's interesting, but how did you copy and paste? Quick Python offers this, but no explanation how to copy and paste. The %hist command can show you all previous input, without line numbers if desired (option -n) so you can directly copy and paste code either back in IPython or in a text editor. You can also save all your history by turning on logging via %logstart; these logs can later be either reloaded as IPython sessions or used as code for your programs. Aside from that, here's an example of what I'd like to copy. If it doesn't make it through, it's just a screen capture of part of the window's contents show the result of ls, cd, etc. Image above this. Over and out ... David Arnold wrote: In [13]: history 1 : #?edit 2 : hist 3 : a=12 4 : b=3 5 : c=4 6 : f=a*b+c 7 : hist 8 : _ip.magic(magic ) 9 : _ip.magic(automagic ) 10: _ip.magic(automagic ) 11: his 1-4 12: hist(1-4) 13: _ip.magic(history ) In [14]: edit 3-6 On Dec 7, 2009, at 8:41 AM, Wayne Watson wrote: Good. Thanks. Interesting that ls and pwd are used for Win, but that's fine. How do I copy parts of the window? All I can do at the moment is sweep out a rectangular area with the mouse. It looks like I underestimated the need for automagic. David Arnold wrote: Depends on whether automagic is enabled or not. If automagic is OFF, you need to enter the %, as in %cd. If automagic is ON (the default), then you don't need to enter the %, as in cd. automagic can be toggled on and off as follows: In [8]: automagic Automagic is OFF, % prefix IS needed for magic functions. In [9]: %automagic Automagic is ON, % prefix NOT needed for magic functions. On my mac, I can change to my home directory as follows: In [10]: cd /Users/darnold I can list the files in this directory with: In [11]: ls Desktop/Movies/context/ Documents/Music/java.log.344 Downloads/NetBeansProjects/java.log.415 Dropbox/Pictures/luatex-cache/ Library/Public/matlab_crash_dump.344 LizThesis/Sites/matlab_crash_dump.415 I can cd into my Sites folder with: In [12]: cd Sites /Users/darnold/Sites I can get the current directory with: In [13]: pwd Out[13]: '/Users/darnold/Sites' I can move up a directory level with: In [14]: cd .. /Users/darnold Hope this helps. D. On Dec 6, 2009, at 3:01 PM, Wayne Watson wrote: I've seen the tutorial, but need something more. How do I know what folder I'm in? How do I move from where I am to, for example, C:\abc\def? So far I've tried various combinations like this: cd .. cd C:\ pwd (yes, I know it's not windows) I tried %cd .., and that may have moved me but I seem to get back to the same place. I seem to be in C:\Documents and Settings\administrator. If I doa %cp ..\\ it looks like I get to C:\, but follwing that with pwd gets me back to where I started--C:\Documents and Settings\administrator. If I want to execute a program with %run, I need to be where abc.py is or, perhaps say something like %run C:\myPyPrograms\abc.py. Dir doesn't work and I haven't been able to even see what's in the folder. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet ... humans'innate skills with numbers isn't much better than that of rats and dolphins. -- Stanislas Dehaene, neurosurgeon Web Page: www.speckledwithstars.net/ -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet ... humans'innate skills with numbers isn't much better than that of rats and dolphins. -- Stanislas Dehaene, neurosurgeonWeb Page: www.speckledwithstars.net/ -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet ... humans'innate skills with numbers isn't much better than that of rats and dolphins. -- Stanislas Dehaene, neurosurgeon
Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython
Hi, I'm using IPython raw. I guess I'm not sure what a shell is in this case. I used to work with Linux years ago and the shell concept was clear there. I'm now simply a Win XP user. What advantages would be available to use a shell? In part of the thread above,(posted 57 minutes after the hour, I asked how copy and paste operate? Quick IPyton seems to think it works quite like a Win copy and paste. It doesn't work for me. Below you've manage to post a session. How did that happen? Is there a file that I can pick up that contains the log? From the ref manual, I see this: === Manual capture of command output¶ http://ipython.scipy.org/doc/manual/html/interactive/reference.html#manual-capture-of-command-output If the input line begins with two exclamation marks, !!, the command is executed but its output is captured and returned as a python list, split on newlines. Any output sent by the subprocess to standard error is printed separately, so that the resulting list only captures standard output. The !! syntax is a shorthand for the %sx magic command. Finally, the %sc magic (short for ‘shell capture’) is similar to %sx, but allowing more fine-grained control of the capture details, and ... ===end Maybe this is somehow you did it? phob...@geosyntec.com wrote: Wayne, Are you using the IPython shell? If so, cd, pwd, ls, etc will work just fine. If you using the standard python shell, AFAIK, you need to import the os module and use that to navigate. Ipython session: C:\Documents and Settings\phobsonipython Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] Type copyright, credits or license for more information. IPython 0.10 -- An enhanced Interactive Python. ? - Introduction and overview of IPython's features. %quickref - Quick reference. help - Python's own help system. object? - Details about 'object'. ?object also works, ?? prints more. In [1]: pwd Out[1]: 'C:\\Documents and Settings\\phobson' In [2]: cd c:\stuff\utils\py c:\stuff\utils\py In [3]: pwd Out[3]: 'c:\\stuff\\utils\\py' In [4]: cd c:\ c:\ In [5]: cd c:\stuff\utils\py c:\stuff\utils\py In [6]: ls *.pdf Volume in drive C has no label. Volume Serial Number is 24FD-DA13 Directory of c:\stuff\utils\py 09/11/2009 11:39 AM 1,515,182 elev_test5.pdf 10/18/2009 01:06 PM 147,663 frLarch_elev.pdf 05/12/2009 10:30 AM28,029 gear.pdf 03/11/2009 09:56 AM30,622 test.pdf 08/27/2009 09:18 AM17,175 tidal_cdf.pdf 11/16/2009 08:20 AM 118,902 zoom_test.pdf 11/16/2009 08:18 AM 124,000 zoom_test_final.pdf 7 File(s) 1,981,573 bytes 0 Dir(s) 82,894,716,928 bytes free Paul M. Hobson Senior Staff Engineer -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet ... humans'innate skills with numbers isn't much better than that of rats and dolphins. -- Stanislas Dehaene, neurosurgeon Web Page: www.speckledwithstars.net/ -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython
OK, here I go. Quick Edit is checked, and I'm running from what looks like the Win XP command console. I am not in full screen mode. I've applied changes to the window. It has scroll bars side and bottom. I've moused the area, and now am going to Edit on the window menu. It works! I just pasted it into a txt file. Thanks. Pretty convoluted, but it works. Is it possible to paste from outside? For example copy and paste from a txt file. phob...@geosyntec.com wrote: Third Google result for copy paste in DOS prompt http://www.copy--paste.org/copy-paste-between-dos-windows.htm Note that right-clicking is going to execute behavior, not bring up a contextual menu. -p -Original Message- From: Wayne Watson [mailto:sierra_mtnv...@sbcglobal.net] Sent: Monday, December 07, 2009 12:57 PM To: Gary Pajer Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython Right-click does nothing on the IPython window. The Windows command console is, I think, a lost cause all together. I've tried a right-click on it with the same result as in IPython. I'm using Win XP, and I hope they improve on Win 7, which I plan to install on all my machines this month. Gary Pajer wrote: On Mon, Dec 7, 2009 at 11:41 AM, Wayne Watson sierra_mtnv...@sbcglobal.net mailto:sierra_mtnv...@sbcglobal.net wrote: Good. Thanks. Interesting that ls and pwd are used for Win, but that's fine. How do I copy parts of the window? All I can do at the moment is sweep out a rectangular area with the mouse. It looks like I underestimated the need for automagic. Copy and paste from a Windows command shell is different that copy and paste from *nix command shell. Right-click in the command window Choose Mark from the drop-down menu Select the (rectangular) region of text you want to copy. Hit Return. That does a copy operation. Then go to your other application, and paste however you like. David Arnold wrote: Depends on whether automagic is enabled or not. If automagic is OFF, you need to enter the %, as in %cd. If automagic is ON (the default), then you don't need to enter the %, as in cd. automagic can be toggled on and off as follows: In [8]: automagic Automagic is OFF, % prefix IS needed for magic functions. In [9]: %automagic Automagic is ON, % prefix NOT needed for magic functions. On my mac, I can change to my home directory as follows: In [10]: cd /Users/darnold I can list the files in this directory with: In [11]: ls Desktop/Movies/context/ Documents/Music/java.log.344 Downloads/NetBeansProjects/java.log.415 Dropbox/Pictures/luatex-cache/ Library/Public/matlab_crash_dump.344 LizThesis/Sites/matlab_crash_dump.415 I can cd into my Sites folder with: In [12]: cd Sites /Users/darnold/Sites I can get the current directory with: In [13]: pwd Out[13]: '/Users/darnold/Sites' I can move up a directory level with: In [14]: cd .. /Users/darnold Hope this helps. D. On Dec 6, 2009, at 3:01 PM, Wayne Watson wrote: I've seen the tutorial, but need something more. How do I know what folder I'm in? How do I move from where I am to, for example, C:\abc\def? So far I've tried various combinations like this: cd .. cd C:\ pwd (yes, I know it's not windows) I tried %cd .., and that may have moved me but I seem to get back to the same place. I seem to be in C:\Documents and Settings\administrator. If I doa %cp ..\\ it looks like I get to C:\, but follwing that with pwd gets me back to where I started--C:\Documents and Settings\administrator. If I want to execute a program with %run, I need to be where abc.py is or, perhaps say something like %run C:\myPyPrograms\abc.py. Dir doesn't work and I haven't been able to even see what's in the folder. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet ... humans'innate skills with numbers isn't much better than that of rats and dolphins. -- Stanislas Dehaene, neurosurgeon Web Page: www.speckledwithstars.net/ http://www.speckledwithstars.net
[Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython
I've seen the tutorial, but need something more. How do I know what folder I'm in? How do I move from where I am to, for example, C:\abc\def? So far I've tried various combinations like this: cd .. cd C:\ pwd (yes, I know it's not windows) I tried %cd .., and that may have moved me but I seem to get back to the same place. I seem to be in C:\Documents and Settings\administrator. If I doa %cp ..\\ it looks like I get to C:\, but follwing that with pwd gets me back to where I started--C:\Documents and Settings\administrator. If I want to execute a program with %run, I need to be where abc.py is or, perhaps say something like %run C:\myPyPrograms\abc.py. Dir doesn't work and I haven't been able to even see what's in the folder. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet ... humans'innate skills with numbers isn't much better than that of rats and dolphins. -- Stanislas Dehaene, neurosurgeon Web Page: www.speckledwithstars.net/ -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Computing Simple Statistics from a Histogram
Hi, actually, more question was more informational than how to do it. I wrote a function to do it, but wondered why such a function didn't seem to exist. In my case, the histogram is from a small processor that produces frequency data from 307K points. Unraveling the frequency data and returning it to original set of points seems counterproductive. The data is produced from the pixel values in a 640x480 image. Matthias Michler wrote: Hi Wayne, you are right all these function use the sample-data and not the pdf / frequency of occurence-histogram, because typically the data is available and not the pdf. Maybe the scipy mailing list could give you a solution to your problem. In case that your freqency of occurence are integers you could do something like the following to generate the sample-data and than you the previous mentioned functions: bin_centers = np.array([ 1., 2., 3., 4., 5.]) n_vals = np.array([1, 3, 0, 2, 1]) sample_new = np.array([]) for bin_center, n in zip(bin_centers, n_vals): # append new value 'n' times: sample_new = np.concatenate((sample_new, [bin_center]*n)) Kind regards, Matthias On Tuesday 01 December 2009 17:51:31 Wayne Watson wrote: I do not believe that any of those calculations are based on the pdf, frequency of occurrence-histogram. This, (1, 2,2, 4, 2,5,4) and not this (1,3, 0,2,1). The latter are the frequencies of occurrence for 1,2,3,4,5. John Hunter wrote: On Tue, Dec 1, 2009 at 6:32 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Is there some statistics function that computes the mean, std. dev., min/max, etc. from a frequency distribution? numpy has many functions for basic descriptive statistics. If data is an array of your data, you can do (import numpy as np) mean: np.mean(data) median: np.median(data) standard deviation: np.std(data) min: np.min(data) max: np.max(data) In scipy.stats, there are many more (skew, kurtosis, etc...) See also, this example: http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/py4science/ examples/stats_descriptives.py?view=markuppathrev=4027 JDH -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet The popular press and many authorities believe the number of pedofiles that prowl the web is 50,00. There are no figures that support this. The number of children below 18 years of age kidnapped by strangers is 1 in 600,000, or 115 per year. -- The Science of Fear by D. Gardner Web Page: www.speckledwithstars.net/ -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Computing Simple Statistics from a Histogram
Is there some statistics function that computes the mean, std. dev., min/max, etc. from a frequency distribution? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet The popular press and many authorities believe the number of pedifiles that prowl the web is 50,00. There are no figures that support this. The number of children below 18 years of age kidnapped by strangers is 1 in 600,00, or 115 per year. -- The Science of Fear by D. Gardner Web Page: www.speckledwithstars.net/ -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Computing Simple Statistics from a Histogram
I do not believe that any of those calculations are based on the pdf, frequency of occurrence-histogram. This, (1, 2,2, 4, 2,5,4) and not this (1,3, 0,2,1). The latter are the frequencies of occurrence for 1,2,3,4,5. John Hunter wrote: On Tue, Dec 1, 2009 at 6:32 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Is there some statistics function that computes the mean, std. dev., min/max, etc. from a frequency distribution? numpy has many functions for basic descriptive statistics. If data is an array of your data, you can do (import numpy as np) mean: np.mean(data) median: np.median(data) standard deviation: np.std(data) min: np.min(data) max: np.max(data) In scipy.stats, there are many more (skew, kurtosis, etc...) See also, this example: http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/py4science/examples/stats_descriptives.py?view=markuppathrev=4027 JDH -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet The popular press and many authorities believe the number of pedofiles that prowl the web is 50,00. There are no figures that support this. The number of children below 18 years of age kidnapped by strangers is 1 in 600,000, or 115 per year. -- The Science of Fear by D. Gardner Web Page: www.speckledwithstars.net/ -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Installing iPython on Win XP
I downloaded ipython-0.10.win32-setup.exe and began the execution. It seem like it installed components. It may have brought up a download for ipython-0.10-py2.5.egg some minutes later. When I noticed it I thought maybe I accidentally triggered its appearnace from the Start menu. I tried ipython from the menu to see what it might look like. I got a console window with messages of various kinds about a successful install and some general comments about features. It stated I should hit Enter to continue. That did nothing. I closed the window. What next? Am I supposed to install the egg file? I thought I'd download it and try, but Win doesn't recognize it. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet The popular press and many authorities believe the number of pedifiles that prowl the web is 50,00. There are no figures that support this. The number of children below 18 years of age kidnapped by strangers is 1 in 600,00, or 115 per year. -- The Science of Fear by D. Gardner Web Page: www.speckledwithstars.net/ -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] What's Wrong with this Histogram?
I'm working with a Python program that produces freq below. There are 32 bins. The bins represent 0-7, 8-14, ..., 248 - 255 of a set of frequencies (integer counts). 0 to 255 are the brightness pixel values from a 640x480 frame of b/w pixels. I binned 8 into each of 32 bins. One can easily see that the various bins are of a different height. However, the result is fixed height bar from 0 to 10, and a shorter single bar from about 120 to 130. The x-scale goes from 0 to 140 and not from 0 to 255, or somewhere in that range. It seems like hist is clumping everything into two groups. I've changed the range parameter several times and get the same result. I'd send an attachment of the figure, but that often seems to delay a post in most of these Python mail lists. freq = [127516, 8548, 46797, 46648, 21085, 9084, 7466, 6534, 5801, 5051, 4655, 4168, 4343, 3105, 2508, 2082, 1200, 488, 121, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] fig = pylab.figure() v = array(freq) plt.hist(v, bins=linspace(0,256,nplt_bins+1), normed=1, range=(30,200)) pylab.show() -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet The popular press and many authorities believe the number of pedifiles that prowl the web is 50,00. There are no figures that support this. The number of children below 18 years of age kidnapped by strangers is 1 in 600,00, or 115 per year. -- The Science of Fear by D. Gardner Web Page: www.speckledwithstars.net/ -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] What's Wrong with this Histogram?
That helped by using the original data of 256 elements. So all the large values in the array beyond 120 would be tiny bars stretched out to x of about 127516. OK, now with the original 256 elements I see some problems. Individually, they contain some high counts, so I guess they are going off scale. This is unfortunate, since the original data was put into 256 bins by hardware from 307,000 + values. It looks like what I should be feeding hist, but recreating the 307K from the 256 seems something of a waste in that it is undoing what the hardware did. Is there some graph function that will treat the input as already binned? For example, if I have [10, 7, 5], I want to see a histogram of three bars, one at x =0 of height 10, one at x=1 of height 6, and 2 of height 5. x might be some other numbers like 18.2, 46.3 and 60.1. Pierre de Buyl wrote: Hello, hist takes the raw data directly, and not a histogram already computed. If data is an array containing your pixels, hist(data, bins = range(0,255,8) , normed=True) should do what you expect The code you sent adequately counts 13 occurences for 0 in freq and one at 121, with some rescaling. Pierre Le 30 nov. 09 à 16:52, Wayne Watson a écrit : I'm working with a Python program that produces freq below. There are 32 bins. The bins represent 0-7, 8-14, ..., 248 - 255 of a set of frequencies (integer counts). 0 to 255 are the brightness pixel values from a 640x480 frame of b/w pixels. I binned 8 into each of 32 bins. One can easily see that the various bins are of a different height. However, the result is fixed height bar from 0 to 10, and a shorter single bar from about 120 to 130. The x-scale goes from 0 to 140 and not from 0 to 255, or somewhere in that range. It seems like hist is clumping everything into two groups. I've changed the range parameter several times and get the same result. I'd send an attachment of the figure, but that often seems to delay a post in most of these Python mail lists. freq = [127516, 8548, 46797, 46648, 21085, 9084, 7466, 6534, 5801, 5051, 4655, 4168, 4343, 3105, 2508, 2082, 1200, 488, 121, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] fig = pylab.figure() v = array(freq) plt.hist(v, bins=linspace(0,256,nplt_bins+1), normed=1, range=(30,200)) pylab.show() -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet The popular press and many authorities believe the number of pedifiles that prowl the web is 50,00. There are no figures that support this. The number of children below 18 years of age kidnapped by strangers is 1 in 600,00, or 115 per year. -- The Science of Fear by D. Gardner Web Page: www.speckledwithstars.net/ -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Installing iPython on Win XP
Looking a little further at this problem it looks like iPython was installed. I mis-interpreted some lines at the bottom. The very bottom one showed [1]. I didn't recognize that as a line prompt. The next question is whether one can accept a complete program. I suspect this is a purely interactive program, and it's total interface is the DOS like console? I see one must use properties of the Window to change its size. I would think there would be a way to make these the same each time? I think there's a tutor for this, so it looks like I need to visit it. Wayne Watson wrote: I downloaded ipython-0.10.win32-setup.exe and began the execution. It seem like it installed components. It may have brought up a download for ipython-0.10-py2.5.egg some minutes later. When I noticed it I thought maybe I accidentally triggered its appearnace from the Start menu. I tried ipython from the menu to see what it might look like. I got a console window with messages of various kinds about a successful install and some general comments about features. It stated I should hit Enter to continue. That did nothing. I closed the window. What next? Am I supposed to install the egg file? I thought I'd download it and try, but Win doesn't recognize it. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet The popular press and many authorities believe the number of pedifiles that prowl the web is 50,00. There are no figures that support this. The number of children below 18 years of age kidnapped by strangers is 1 in 600,00, or 115 per year. -- The Science of Fear by D. Gardner Web Page: www.speckledwithstars.net/ -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] What's Wrong with this Histogram?
Another related question. is there some statistics function that computes the mean, std. dev., min/max, etc. from a frequency distribution? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet The popular press and many authorities believe the number of pedifiles that prowl the web is 50,00. There are no figures that support this. The number of children below 18 years of age kidnapped by strangers is 1 in 600,00, or 115 per year. -- The Science of Fear by D. Gardner Web Page: www.speckledwithstars.net/ -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] A Simple Example of histogram Using Range?
I'm on Win XP, and have no idea where the images went. I guess I'll have to search my C-disk. I just began the search. Looking at C:\Python25, I see no image files. Same with C:\Python25\Scripts If I put some code up front as below, the image comes up on my screen, but using a range of 0 to 8 and 0, 18 changes nothing. Further the program hangs up. So far matplotlib pretty much leaves the user on his own. Yes, there are plenty of examples, but there seem to be no explanations about matters like figure or show. No tutor on any of this I guess. Apparently, they are leaving it up to one's MATLAB experience. It's been quite awhile since I used that. It still resides on my computer. Ah, the png files were found in the folder where the program is located. I can clearly see the changes from your switches between range values. =inserted a few lines at the top and some print debug stmts= import matplotlib.pyplot as plt print let's start the histogram plt.hist([1, 2, 3, 4, 5], range=(0, 18)) plt.show() #raw_input(Hey) fig = plt.figure() plt.hist([1, 2, 3, 4, 5], range=(0, 20)) plt.show() plt.savefig(hist_0_20.png) plt.close(fig) fig = plt.figure() plt.hist([1, 2, 3, 4, 5], range=(0, 8)) plt.savefig(hist_0_8.png) plt.close(fig) print finished Johan Grönqvist wrote: Wayne Watson skrev: Anyway, where, folder, does your program write the files? I'm not familiar with figure, but apparently using it produces some canvas that plt.hist places it's output on. One can than save fig to a file. What happens if I don't use figure? I just put a copy of the line plt.hist([1, 2, 3, 4, 5], range=(0, 20)) after import. When I execute the program, I don't see a graphic appear. So doesn't matplotlib produce graphic output aside from use of figure? My intuition is exactly like that. After importing matplotlib.pyplt as plt, plt.figure creates an object that acts as canvas, and then I plot various things (hist, is one example), and when I am satisfied, I plt.savefig(path) or plt.show() the figure. The figures are saved in the directory where the script is run (its cwd, or current working directory, on linux). I have also used hist without having a figure, but that was because I wanted the histogram data, i.e., the numbers of data points in the different bins. That script used plt.hist to generate such data, and later (after running fig = plt.figure) used plt.plot to plot parts of the data in different ways. By the way, matplotlib.pyplot is one way of using matplotlib. There is also the object oriented interface, which I have never used. / johan -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet 350 350 350 350 350 350 350 350 350 350 Make the number famous. See 350.org The major event has passed, but keep the number alive. Web Page: www.speckledwithstars.net/ -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Object Module is not callable, traceback
I have a fairly large program that uses pylab and company. I want to use the matplot histogram function. Here are the declarations at the start. I added import matplotlib as mpl -start from Tkinter import * from numpy import * import numpy import pylab import Image import ImageChops import ImageTk import time import binascii import tkMessageBox import tkSimpleDialog from pylab import plot, xlabel, ylabel, title, show, xticks, bar import matplotlib as mpl -- added from tkFileDialog import asksaveasfilename from tkFileDialog import askopenfilename import MakeQTE import socket ... 500 lines of code I've added the follow code in a function print pltx_bins: , pltx_bins print Off to pylab: , plt_bins[0:nplt_bins] fig = mpl.figure() v = array(plt_bins) print v is: ,v print edges --, linspace(0,256,nplt_bins+1) mpl.histogram(v, bins=linspace(0,256,nplt_bins+1), normed=1)# matplotlib version (plot) mpl.show() print end of histogram output # end of function -end The program dies at fig = figure() with: Exception in Tkinter callback Traceback (most recent call last): File C:\Python25\lib\lib-tk\Tkinter.py, line 1403, in __call__ return self.func(*args) File C:\Sandia_Meteors\Sentinel_Development\Development_Sentuser+Utilities\sentuser\sentuser_20090103+hist.py, line 504, in ShowHistogram fig = mpl.figure() TypeError: 'module' object is not callable What's the problem here? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet 350 350 350 350 350 350 350 350 350 350 Make the number famous. See 350.org The major event has passed, but keep the number alive. Web Page: www.speckledwithstars.net/ -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Object Module is not callable, traceback
Eric Firing wrote: Wayne Watson wrote: I have a fairly large program that uses pylab and company. I want to use the matplot histogram function. Here are the declarations at the start. I added import matplotlib as mpl -start from Tkinter import * from numpy import * import numpy import pylab import Image import ImageChops import ImageTk import time import binascii import tkMessageBox import tkSimpleDialog from pylab import plot, xlabel, ylabel, title, show, xticks, bar import matplotlib as mpl -- added from tkFileDialog import asksaveasfilename from tkFileDialog import askopenfilename import MakeQTE import socket ... 500 lines of code I've added the follow code in a function print pltx_bins: , pltx_bins print Off to pylab: , plt_bins[0:nplt_bins] fig = mpl.figure() v = array(plt_bins) print v is: ,v print edges --, linspace(0,256,nplt_bins+1) mpl.histogram(v, bins=linspace(0,256,nplt_bins+1), normed=1)# matplotlib version (plot) mpl.show() print end of histogram output # end of function -end The program dies at fig = figure() with: Exception in Tkinter callback Traceback (most recent call last): File C:\Python25\lib\lib-tk\Tkinter.py, line 1403, in __call__ return self.func(*args) File C:\Sandia_Meteors\Sentinel_Development\Development_Sentuser+Utilities\sentuser\sentuser_20090103+hist.py, line 504, in ShowHistogram fig = mpl.figure() TypeError: 'module' object is not callable What's the problem here? figure(), show(), etc. are pylab (or matplotlib.pyplot) functions, not matplotlib functions. Especially for a long program, it is strongly recommended that you not use from numpy import *. The recommended form is import numpy as np import matplotlib.pyplot as plt It will help you keep a clear picture of where various types of functionality are coming from. See also http://matplotlib.sourceforge.net/faq/usage_faq.html and note that a primarily object-oriented approach is recommended for use in other than quick scripts and interactive plotting. Eric Thanks. Well, that explains a lot! functions in the wrong place. I'm pretty new to this stuff, so what belongs where is sometimes unclear. I'll check out the sourceforge tip. I didn't write the program. I'm just trying to add some features. Changing the import for matplotlib got the graphics window up. import matplotlib.pyplot as plt When I ran it, it was followed by this traceback: start Exception in Tkinter callback Traceback (most recent call last): File C:\Python25\lib\lib-tk\Tkinter.py, line 1403, in __call__ return self.func(*args) File C:\Sandia_Meteors\Sentinel_Development\Development_Sentuser+Utilities\sentuser\sentuser_20090103+hist.py, line 508, in ShowHistogram plt.histogram(v, bins=linspace(0,256,nplt_bins+1), normed=1)# matplotlib version (plot) AttributeError: 'module' object has no attribute 'histogram' ---end 508 line is the histogram. Who's complaining? ShowHistogram? I don't believe I should be using hist here instead of histogram. Off to sourceforge. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet The popular press and many authorities believe the number of pedifiles that prowl the web is 50,00. There are no figures that support this. The number of children below 18 years of age kidnapped by strangers is 1 in 600,00, or 115 per year. -- The Science of Fear by D. Gardner Web Page: www.speckledwithstars.net/ -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Object Module is not callable, traceback
Eric Firing wrote: I'm pretty new to this stuff, so what belongs where is sometimes unclear. I'll check out the sourceforge tip. I didn't write the program. I'm just trying to add some features. Changing the import for matplotlib got the graphics window up. import matplotlib.pyplot as plt When I ran it, it was followed by this traceback: start Exception in Tkinter callback Traceback (most recent call last): File C:\Python25\lib\lib-tk\Tkinter.py, line 1403, in __call__ return self.func(*args) File C:\Sandia_Meteors\Sentinel_Development\Development_Sentuser+Utilities\sentuser\sentuser_20090103+hist.py, line 508, in ShowHistogram plt.histogram(v, bins=linspace(0,256,nplt_bins+1), normed=1)# matplotlib version (plot) AttributeError: 'module' object has no attribute 'histogram' ---end 508 line is the histogram. Who's complaining? ShowHistogram? I don't believe I should be using hist here instead of histogram. histogram is a numpy function, not a pyplot function. Pyplot has a hist which uses numpy.histogram to do the calculation, and then plots it. It does look like plt.hist is what was intended in your code. For tracking down such things, there is no substitute for working interactively with ipython. If you are not already familiar with it, taking a little time to get it running and learn the basics (like tab completion and appending ? or ?? to function names to get docstrings + origins, and source code, respectively) will pay big dividends. Eric These dependencies sure are tricky. I changed it to plt:hist, and that got me a histogram plot. I think some of my parameters need work, but it's close to what I expected. When I closed the graph and finally the program, the shell (IDLE) did not provide a prompt, nor did it produce my print of End of Histogram that followed plt.hist. Closing the shell revealed something was still running. I may have to go to the console for execution to see what that's about. I've heard of ipython. It looks like I should give it a try. Examples for matplotlib abound, but not much about how MATLAB concepts like figure shows up anywhere. Is that all in pylab docs? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet The popular press and many authorities believe the number of pedifiles that prowl the web is 50,00. There are no figures that support this. The number of children below 18 years of age kidnapped by strangers is 1 in 600,00, or 115 per year. -- The Science of Fear by D. Gardner Web Page: www.speckledwithstars.net/ -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] A Simple Example of histogram Using Range?
See Subject. I don't seem able to produce a simple example of using histogram that uses range. I tried a variety of ranges, range=(0,22), range=(0, 50.2), ... and I see no difference between any of the x values scale. Can someone provide an example that shows how it works? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet 350 350 350 350 350 350 350 350 350 350 Make the number famous. See 350.org The major event has passed, but keep the number alive. Web Page: www.speckledwithstars.net/ -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users