[Matplotlib-users] Smooth contourplots

2010-07-26 Thread montefra
Hi, I am writing a program that reads three columns (one column containing the weights, the other two containing the values I want to plot) from a file containing the results from a MonteCarlo Markov Chain. The file contains thousends of lines. Then create the 2D histogram and make contourplots.

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 50, Issue 37

2010-07-26 Thread Waléria Antunes David
Hello all, I need to format the values of graphic to KHz.my values are in Hz see at idle python it displays the values as: 3000 3050 3100 3400 , but I need to go where it will be displayed KHz: 3.0 3.1 can someone help me? On Thu, Jul 15, 2010 at 10:48 AM,

[Matplotlib-users] Documentation error/bug?

2010-07-26 Thread Josh Lawrence
Hello, I looked on your website for the different line styles. In the documentation for matplotlib.lines.line2D.set_linestyle, the dashed linestyle is listed as '-' and not '--'. It it my understanding that dashed should be '--'. If I'm incorrect, sorry for the noise. Cheers, -- Josh

[Matplotlib-users] Import matplotlib.pyplot fails on windows XP

2010-07-26 Thread eck naysmith
Hello, I've installed the following Python packages on a Windows XP machine: Python 2.6.5 Python 2.6 numpy-1.4.1 Python 2.6 matplotlib-0.99.3 [installer - matplotlib-0.99.3.win32-py2.6] Python and Numpy work correctly. Matplotlib also works and as a test I tried successfully the following

Re: [Matplotlib-users] Import matplotlib.pyplot fails on windows XP

2010-07-26 Thread Benjamin Root
On Sat, Jul 24, 2010 at 4:57 AM, eck naysmith ecker...@hotmail.com wrote: Hello, I've installed the following Python packages on a Windows XP machine: Python 2.6.5 Python 2.6 numpy-1.4.1 Python 2.6 matplotlib-0.99.3 [installer - matplotlib-0.99.3.win32-py2.6] Python and Numpy work

Re: [Matplotlib-users] Documentation error/bug?

2010-07-26 Thread Benjamin Root
On Sat, Jul 24, 2010 at 1:51 PM, Josh Lawrence josh.k.lawre...@gmail.comwrote: Hello, I looked on your website for the different line styles. In the documentation for matplotlib.lines.line2D.set_linestyle, the dashed linestyle is listed as '-' and not '--'. It it my understanding that

Re: [Matplotlib-users] imshow and projection axes

2010-07-26 Thread Tobias Winchen
Hi, thank you for your quick answers which pointed me to a solution: setting clip_on=False solves the problem: pylab.imshow(d, extent=(-pi,pi,-pi/2,pi/2), clip_on=False) However, for me it feels not very intuitive to write clip_on=False to activate the desired clipping. Tobias

[Matplotlib-users] Hz to KHz

2010-07-26 Thread Waléria Antunes David
Hello all, I need to format the values of graphic to KHz.my values are in Hz see at idle python it displays the values as: 3000 3050 3100 3400 , but I need to go where it will be displayed KHz: 3.0 3.1 can someone help me?

Re: [Matplotlib-users] Hz to KHz

2010-07-26 Thread Matthieu Brucher
Hi, You may just divide them by 1000? Matthieu 2010/7/26 Waléria Antunes David waleriantu...@gmail.com: Hello all, I need to format the values of graphic to KHz.my values are in Hz see at idle python it displays the values as: 3000 3050 3100 3400 , but I need to go where it will

Re: [Matplotlib-users] Hz to KHz

2010-07-26 Thread Waléria Antunes David
I know...I tried but I'm using django and also when divided by 1000 the image does not appear... I don't know what to do.help me On Mon, Jul 26, 2010 at 1:27 PM, Matthieu Brucher matthieu.bruc...@gmail.com wrote: Hi, You may just divide them by 1000? Matthieu 2010/7/26 Waléria

Re: [Matplotlib-users] Smooth contourplots

2010-07-26 Thread Joe Kington
It sounds like you're wanting a gaussian kernel density estimate (KDE) (not the desktop!). The other options you mentioned are for interpolation, and are not at all what you're wanting to do. You can use

Re: [Matplotlib-users] Hz to KHz

2010-07-26 Thread Waléria Antunes David
My code like this in django: http://pastebin.com/nzM5jvuc i'm lost On Mon, Jul 26, 2010 at 1:42 PM, phob...@geosyntec.com wrote: Make sure that you’re dividing by 1000.0 (as opposed to 1000) to avoid any integer nonsense and make sure to reset your axis limits. Posting a small code

Re: [Matplotlib-users] Hz to KHz

2010-07-26 Thread Angus McMorland
On 26 July 2010 12:47, Waléria Antunes David waleriantu...@gmail.com wrote: My code like this in django: http://pastebin.com/nzM5jvuc Are you perhaps suffering from integer division? How about dividing by 1000.0, instead of 1000? Angus. i'm lost On Mon, Jul 26, 2010 at 1:42 PM,

Re: [Matplotlib-users] Hz to KHz

2010-07-26 Thread Waléria Antunes David
i don't understand.. On Mon, Jul 26, 2010 at 1:57 PM, Angus McMorland amcm...@gmail.com wrote: On 26 July 2010 12:47, Waléria Antunes David waleriantu...@gmail.com wrote: My code like this in django: http://pastebin.com/nzM5jvuc Are you perhaps suffering from integer division? How about

Re: [Matplotlib-users] Hz to KHz

2010-07-26 Thread PHobson
Replace this line: ax.plot(f/1000, Sserie) With this line: ax.plot(f/1000.0, Sserie) And tell us how things go. Python 2.6 distinguishes between integers and floats very strictly. Hence: In [1]: 20/1000 Out[1]: 0 In [2]: 20.0/1000.0 Out[2]: 0.02 See the difference? -paul From: Waléria

Re: [Matplotlib-users] Hz to KHz

2010-07-26 Thread Angus McMorland
On 26 July 2010 13:01, Waléria Antunes David waleriantu...@gmail.com wrote: i don't understand.. python (version 3, I think) uses integer division when given integer values, i.e. 1/1000 = 0, at the expense of giving a less accurate answer than we might expect. If you tried to plot a bunch of

Re: [Matplotlib-users] Hz to KHz

2010-07-26 Thread Tim Gray
On Jul 26, 2010 at 02:01 PM -0300, Waléria Antunes David wrote: i don't understand.. Just divide through by '1000.' or '1000.0' (same thing). If you write 3100/1000, you'll get '3' because you are doing integer math. If you write 3100/1000.0, you'll get '3.1' because you are doing float math.

Re: [Matplotlib-users] Hz to KHz

2010-07-26 Thread Waléria Antunes David
I did what you showed me but the image disappears On Mon, Jul 26, 2010 at 2:06 PM, phob...@geosyntec.com wrote: Replace this line: ax.plot(f/1000, Sserie) With this line: ax.plot(f/1000.0, Sserie) And tell us how things go. Python 2.6 distinguishes between integers and floats

[Matplotlib-users] Plotting with varied marker sizes, or a scatter with connecting lines?

2010-07-26 Thread Timothy Vickery
Hi everyone, I'm new to matplotlib, and I would like to create a typical plot of a timecourse (markers connected by lines), with the markers varying in size and/or style according to a separate set of data that corresponds to each timepoint. However, my understanding is that plot() will not

Re: [Matplotlib-users] Import matplotlib.pyplot fails on windows XP

2010-07-26 Thread eck naysmith
From: ben.r...@ou.edu Date: Mon, 26 Jul 2010 09:56:27 -0500 Subject: Re: [Matplotlib-users] Import matplotlib.pyplot fails on windows XP To: ecker...@hotmail.com CC: matplotlib-users@lists.sourceforge.net On Sat, Jul 24, 2010 at 4:57 AM, eck naysmith ecker...@hotmail.com wrote: Hello,

[Matplotlib-users] rotating 3d axis

2010-07-26 Thread Mathew Yeates
Hi Is there any way to let the user rotate a 3D plot? I don't see an example which does this. -Mathew -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to

Re: [Matplotlib-users] rotating 3d axis

2010-07-26 Thread Benjamin Root
On Mon, Jul 26, 2010 at 2:50 PM, Mathew Yeates mat.yea...@gmail.com wrote: Hi Is there any way to let the user rotate a 3D plot? I don't see an example which does this. -Mathew What do you mean? By default, all 3D plots are rotatable by merely clicking and draging the plot around. Or are

Re: [Matplotlib-users] Plotting with varied marker sizes, or a scatter with connecting lines?

2010-07-26 Thread João Luís Silva
On 07/26/2010 08:18 PM, Timothy Vickery wrote: Hi everyone, I'm new to matplotlib, and I would like to create a typical plot of a timecourse (markers connected by lines), with the markers varying in size and/or style according to a separate set of data that corresponds to each timepoint.

Re: [Matplotlib-users] Documentation error/bug?

2010-07-26 Thread Benjamin Root
On Mon, Jul 26, 2010 at 9:49 AM, Benjamin Root ben.r...@ou.edu wrote: On Sat, Jul 24, 2010 at 1:51 PM, Josh Lawrence josh.k.lawre...@gmail.comwrote: Hello, I looked on your website for the different line styles. In the documentation for matplotlib.lines.line2D.set_linestyle, the dashed

[Matplotlib-users] Fit a plane to a set of xyz points

2010-07-26 Thread Mathew Yeates
Is there a simple function call for this? And finding the distance of a point to the plane? -Mathew -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm

[Matplotlib-users] Bypass keyboard navigation

2010-07-26 Thread David Mashburn
Hello! My name is David Mashburn, and I have been a very happy user of matplotlib for almost 5 years now, so let me start by saying thank you for this wonderful piece of software! I has been a blessing to me! I am creating a program that performs actions based on key commands in matplotlib, and

Re: [Matplotlib-users] Import matplotlib.pyplot fails on windows XP

2010-07-26 Thread eck naysmith
Problem solved. When I set up python on the Windows machine, I simply copied over the directories and everything in them from my Linux machine, including all of the python bytecode *.pyc files. Trying to run a script with those *.pyc files present was causing the problem as they were compiled

[Matplotlib-users] Contour plots with same color mapping

2010-07-26 Thread Nikolaus Rath
Hello, I would like to draw a couple of contour plots. The plots are on separate figures, but they should all have exactly the same color mapping (i.e, the same Z value should correspond to the same color in all plots). What's the best way to achieve this? From the documentation I gather that I

Re: [Matplotlib-users] Bypass keyboard navigation

2010-07-26 Thread Eric Firing
On 07/26/2010 10:18 AM, Benjamin Root wrote: On Mon, Jul 26, 2010 at 3:09 PM, David Mashburn david.n.mashb...@gmail.com mailto:david.n.mashb...@gmail.com wrote: Hello! My name is David Mashburn, and I have been a very happy user of matplotlib for almost 5 years now, so let me

Re: [Matplotlib-users] Contour plots with same color mapping

2010-07-26 Thread Eric Firing
On 07/26/2010 10:13 AM, Nikolaus Rath wrote: Hello, I would like to draw a couple of contour plots. The plots are on separate figures, but they should all have exactly the same color mapping (i.e, the same Z value should correspond to the same color in all plots). What's the best way to

Re: [Matplotlib-users] Bypass keyboard navigation

2010-07-26 Thread David Mashburn
Ben and Eric, Thanks so much for your help! I'm trying to turn change some of the rcParams in my script... Here is a test of what happens: import matplotlib matplotlib.rcParams['keymap.fullscreen']='' Traceback (most recent call last): File input, line 1, in module File

Re: [Matplotlib-users] Bypass keyboard navigation

2010-07-26 Thread Eric Firing
On 07/26/2010 12:17 PM, David Mashburn wrote: Ben and Eric, Thanks so much for your help! I'm trying to turn change some of the rcParams in my script... Here is a test of what happens: import matplotlib matplotlib.rcParams['keymap.fullscreen']='' Traceback (most recent call last):