Re: [Matplotlib-users] label not print theta symbol
Hi, How do I print as label of an axis the Theta symbol - θ? you can take a look in the docs, there are examples how to use LaTeX for the labels. You get the letter in LaTeX with \theta or \Theta. -- 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] How to control display precision and style (e.g., %f or %e) of axis tick labels?
Hi David, I found this one:: xticks( arange(5), ('Tom', 'Dick', 'Harry', 'Sally', 'Sue') ) On the page http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.xticks If I had that problem I would try to do something like that: xvalues = linspace(0,100,1000) xticks(xvalues, [%.2f % val for val in xvalues]) # or, with a lambda expression, but in #python they say # a list comprehension is better (faster) xticks(xvalues, map(lambda i : %.2f % i, xvalues)) The side effect is, of course, that the tick is not exactly at the position he indicates. Maybe you better use arange() to get the right values for your ticks, just make sure that they cover the interval your xvalues are in. If you find a better solution, please let me know. Best regards, Philipp -- 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 bugs and document corrections/suggestions get sent?
The easiest way is to check out the SVN / git repo, make the changes and create a patch according to the instructuins here: http://matplotlib.sourceforge.net/faq/howto_faq.html#submit-a-patch Best regards Philipp -- Download Intelreg; 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?
If you are interested in contributing to matplotlib check out this link: http://matplotlib.sourceforge.net/faq/howto_faq.html#contributing-howto The PDF is not the original source, it's a product of the sphinx documentation system I think so contributing happens in simple plain text files. You can send a patch then. Regards, 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
Re: [Matplotlib-users] Where Do I Report MPL Guide Issues?
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
Re: [Matplotlib-users] Placing a marker at specific places where lines join?
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
Re: [Matplotlib-users] tick labels in colorbar?
Hi Nico, I didn't test it, but maybe with something like that: rc('text', usetex=True) [taken from http://matplotlib.sourceforge.net/plot_directive/mpl_examples/pylab_examples/tex_demo.py] ax.set_xticks((-pi,pi)) ax.set_xticklabels(('$-\pi$','$\pi$')) [taken from http://matplotlib.sourceforge.net/examples/pylab_examples/integral_demo.html] 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
Re: [Matplotlib-users] Placing a marker at specific places where lines join?
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 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] A Menagerie of Imports
Hi, 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 Like you said: Depends on the particular use. How to give a universal answer? Matplotlib does very much for you, but you still need to use your head a little bit. Nobody forces you to from pylab import * if a from pylab import linspace was enough. So take a look at you code, that should be enough. If you are still not satisfied maybe you try to search for python unused imports, maybe you find a profiler or something like that that helps you. In addition, reading the documentation text to the functions (with ?func or help func in ipython) helps to find out where the modules come from if you did excessive importing jobs before. -- 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 to close a plot?
I'm pretty sure your problem is not generally related to matplotlib, all the examples you mentioned and the one you sent me by e-mail worked for me. Maybe you try a different version or a different operating system for your scripts. -- 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 Exit Gracefully after a Show?
Hi, If I select the x in the upper right, it dies badly. This is maybe another problem, after closing the windows the program should exit with exitcode 0. -- # -*- coding: utf-8 -*- from pylab import * t = linspace(0,10,100) plot(t, sin(t)) show() -- If the problem occurs with the example above it would help if you paste the error message and the exit code. Regards, Philipp -- 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] Connecting the Dots with Scatter Plot (Motion Jumps)
Hi, your problem is that you enter the X values in an unordered way? Then, you just have to sort the key-value-pairs before plotting. One way it works is to create a dict in the form d = {x1: y1,x2:y2} (with a for loop and so on), then extract the keys: k = d.keys() k.sort() v = [d[key] for key in k] ... now plot(k,v) Maybe there is a simpler solution, but this one works. Regards, Philipp -- 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] Problem with creating new, empty figures
Dear listmembers, I experienced a problem with matplotlib yesterday that caused me a lot of headache and I don't know whether this is a bug or if I forgot something. What I want is to plot different datasets in different plots in different files. My code looks like that: ### from pylab import fft, ifft, var, average, real, show import matplotlib.pyplot as plt def process_file(filename, fig_nr): plt.figure(fig_nr) plt.clf() plt.subplot(211) plt.plot(s, alt, '-') plt.subplot(212) plt.plot(s,map(lambda x: x*3.6,speed)) plt.savefig(filename+.png) process_file(foo1.tcx, 1) process_file(foo2.tcx, 2) process_file(foo3.tcx,3) ## The problem here is that in the plots for file foo2 the data from foo1 is included, in the plots for foo3 the data of foo1 and foo2. I thought that I paid respect to this behaviour with plt.figure(), on stackoverflow I read about the plt.clf() - thing but nothing happened. I tried to make fig_nr a hash over the filename or leave it blank (like suggested in the documentation) but this had no effect and I ended up with the additional parameter (fig_nr in the example above) which also did not work. Is this maybe a bug or did I forget an important thing? I'm running Debian sid with python-matplotlib 0.99.1.2-2 (I hope the numbering from Debian and matplotlib is similar). Best regards, Philipp Bender -- 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