[Matplotlib-users] Problem with creating new, empty figures

2010-01-24 Thread Philipp Bender
t 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 Debi

Re: [Matplotlib-users] How Exit Gracefully after a Show?

2010-02-03 Thread Philipp Bender
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() -

Re: [Matplotlib-users] Connecting the Dots with Scatter Plot (Motion Jumps)

2010-02-03 Thread Philipp Bender
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

Re: [Matplotlib-users] How to close a plot?

2010-02-07 Thread Philipp Bender
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. ---

Re: [Matplotlib-users] A Menagerie of Imports

2010-02-11 Thread Philipp Bender
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? Mat

Re: [Matplotlib-users] Placing a marker at specific places where lines join?

2010-02-14 Thread Philipp Bender
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

Re: [Matplotlib-users] tick labels in colorbar?

2010-02-14 Thread Philipp Bender
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.sourceforg

Re: [Matplotlib-users] Placing a marker at specific places where lines join?

2010-02-14 Thread Philipp Bender
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 addres

Re: [Matplotlib-users] Where Do I Report MPL Guide Issues?

2010-02-15 Thread Philipp Bender
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. Yo

Re: [Matplotlib-users] Where Do I Report MPL Guide Issues?

2010-02-15 Thread Philipp Bender
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/

Re: [Matplotlib-users] Where do bugs and document corrections/suggestions get sent?

2010-02-17 Thread Philipp Bender
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 -- Do

Re: [Matplotlib-users] label not print theta symbol

2010-02-22 Thread Philipp Bender
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® P

Re: [Matplotlib-users] How to control display precision and style (e.g., %f or %e) of axis tick labels?

2010-02-22 Thread Philipp Bender
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, ["

Re: [Matplotlib-users] Issue with sample from website and rc()

2010-02-24 Thread Philipp Bender
The error is the 'size':'larger', not the passing as keyword arguments. Maybe you try to stick (as "workaround") with a fixed number, like 'size':12 It's located in matplotlib/lib/matplotlib/rcsetup.py def validate_float(s): 'convert s to float or raise' try: return float(s) except