Re: [Matplotlib-users] Runtime error with matplotlib in IDLE

2012-03-12 Thread Catherine Thwaites
On Sun, Mar 11, 2012 at 11:27 PM, gsal salger...@gmail.com wrote: Don't have a solution; I was just wondering if you have tried something else, like using ipython instead of IDLE. ipython may be better suited for threading and working with pylab, etc. Thanks for the reply. I do like

Re: [Matplotlib-users] histogram and a line

2012-03-12 Thread Jerzy Karczmarczuk
Mic : Thank you for your solutions. However, with my dataset it did not work out with the following code: ... Please find attached the histogram. The dataset I am sending with next email. 1. You haven'sent *in.small.txt*, but *in.txt*, 70 MB, several millions lines. Please, be

[Matplotlib-users] pdf file output name too restrictive?

2012-03-12 Thread Neal Becker
Using this code: self.pdf = PdfPages('%s.%s.pdf' % (name, str(date.today( Trying to output a pdf with the name results.abs_aci=[10.0, nan, 10.0].rate=['2/3', '4/5', '2/3'].2012-03-12.pdf produces this error IOError: [Errno 2] No such file or directory: results.abs_aci=[10.0, nan,

[Matplotlib-users] Scrolling window

2012-03-12 Thread stetogias
Not sure if this is the right place to post this...please instruct if wrong I'm plotting some audio data, which can get big, and alongside I have subplots of barcharts that represent onsets, RMS etc... Since I have many onsets plotting the whole thing at once results in such dense barcharts that

Re: [Matplotlib-users] pdf file output name too restrictive?

2012-03-12 Thread Daniele Nicolodi
On 12/03/12 13:40, Neal Becker wrote: Using this code: self.pdf = PdfPages('%s.%s.pdf' % (name, str(date.today( Trying to output a pdf with the name results.abs_aci=[10.0, nan, 10.0].rate=['2/3', '4/5', '2/3'].2012-03-12.pdf produces this error IOError: [Errno 2] No such file

[Matplotlib-users] resize a plot to make room

2012-03-12 Thread Neal Becker
I have a figure with a semilogy plot. I need to make more room on the bottom to add a bunch of figtext, which is 4 lines of text. With the defaults, the text overprints the x-axis. What is a suggested way to fix this? (Ideally, mpl would calculate the appropriate sizes for me so things

Re: [Matplotlib-users] resize a plot to make room

2012-03-12 Thread John Hunter
On Mon, Mar 12, 2012 at 8:04 AM, Neal Becker ndbeck...@gmail.com wrote: I have a figure with a semilogy plot. I need to make more room on the bottom to add a bunch of figtext, which is 4 lines of text. With the defaults, the text overprints the x-axis. What is a suggested way to fix this?

Re: [Matplotlib-users] PyQt4 FigureCanvasQTAgg Subclass segfaults with Matplotlib 1.1?

2012-03-12 Thread Keith Hughitt
*bump* Anyone else encountering this problem? On Tue, Mar 6, 2012 at 4:06 PM, Keith Hughitt keith.hugh...@gmail.comwrote: Hey all, Anyone know what has changed from Maplotlib 1.0.x to 1.1.x that might cause a PyQt4 application to segfault? Here is the code I'm working on:

Re: [Matplotlib-users] PyQt4 FigureCanvasQTAgg Subclass segfaults with Matplotlib 1.1?

2012-03-12 Thread Darren Dale
Have you tried running with older checkouts on the master branch to see when the problem was introduced? You can do something like: git log --oneline --graph lib/matplotlib/backends/backend_qt4.py # or backend_qt4agg.py to see what commits were applied to master but not v1.0.x. Try bisecting the

Re: [Matplotlib-users] About plotting...

2012-03-12 Thread Eric Firing
On 03/11/2012 05:06 AM, aa wrote: How to Get symmetric plotting in pylab i tried this code: # -*- coding: utf-8 -*- Created on Sat Mar 10 20:33:32 2012 @author: fajar from numpy import linspace, meshgrid, array import matplotlib.pyplot as pl import matplotlib.ticker as tc

Re: [Matplotlib-users] Arrow with a dashed line

2012-03-12 Thread Tony Yu
On Sun, Mar 11, 2012 at 2:13 PM, Tony Yu tsy...@gmail.com wrote: Is it possible to draw an arrow with a dashed line? I tried using a fancy arrow patch and set the linestyle: #~~~ import matplotlib.pyplot as plt fix, ax = plt.subplots() ax.set_xlim((-1,5)) ax.set_ylim((-5,3))

[Matplotlib-users] python nltk plots are not showing up

2012-03-12 Thread Gias Uddin
I have posted the following message in StackOverflow about my problem with graph plotting using python nltk using Matplotlib and numpy. Advices will be tremendously helpful. Thanks in advance. http://stackoverflow.com/questions/9661909/python-nltk-plots-are-not-showing-up

[Matplotlib-users] error bars showing color maps

2012-03-12 Thread Alberto Domínguez Díaz
Dear matplotlib-users, I was wondering if it is possible to plot with matplotlib an errorbar figure using color maps. Basically, I want to get a similar plot to scatter(x,y,c=z,cmap=cmap) where z is an array of numbers, but with the error bars showing the same color than their data points. Any

Re: [Matplotlib-users] python nltk plots are not showing up

2012-03-12 Thread Goyo
El día 12 de marzo de 2012 17:05, Gias Uddin gia...@gmail.com escribió: I have posted the following message in StackOverflow about my problem with graph plotting using python nltk using Matplotlib and numpy. Advices will be tremendously helpful. Thanks in advance.

Re: [Matplotlib-users] python nltk plots are not showing up

2012-03-12 Thread Eric Firing
On 03/12/2012 06:05 AM, Gias Uddin wrote: I have posted the following message in StackOverflow about my problem with graph plotting using python nltk using Matplotlib and numpy. Advices will be tremendously helpful. Thanks in advance.

Re: [Matplotlib-users] python nltk plots are not showing up

2012-03-12 Thread Gias Uddin
plt.get_backend() 'agg' On Mon, Mar 12, 2012 at 4:00 PM, Goyo goyod...@gmail.com wrote: El día 12 de marzo de 2012 17:05, Gias Uddin gia...@gmail.com escribió: I have posted the following message in StackOverflow about my problem with graph plotting using python nltk using Matplotlib

Re: [Matplotlib-users] Errorbars not drawn correctly in logarithmic scales

2012-03-12 Thread Benjamin Root
On Fri, Mar 9, 2012 at 1:14 PM, Wolfgang Draxinger wdraxinger.maill...@draxit.de wrote: On Fri, 9 Mar 2012 11:19:15 -0600 Benjamin Root ben.r...@ou.edu wrote: Can I have the data you used to produce these errorbars so I can test this bug? Here's the data # Fluence -sigma

Re: [Matplotlib-users] python nltk plots are not showing up

2012-03-12 Thread Gias Uddin
If I understand, this should have given me TkAgg. so, the backend is not working properly. On Mon, Mar 12, 2012 at 4:49 PM, Gias Uddin gia...@gmail.com wrote: plt.get_backend() 'agg' On Mon, Mar 12, 2012 at 4:00 PM, Goyo goyod...@gmail.com wrote: El día 12 de marzo de 2012 17:05, Gias

Re: [Matplotlib-users] Segmentation fault in Pyqt

2012-03-12 Thread Darren Dale
On Mon, Mar 12, 2012 at 4:30 PM, Sourabh Bajaj sb2...@gmail.com wrote: I am getting a segmentation fault when I try to declare a new image name. I can replace a existing image correctly. Why am I getting the error at the getSaveFileName dialog ?? [...] fname =

Re: [Matplotlib-users] Segmentation fault in Pyqt

2012-03-12 Thread Ray Osborn
I think that QtGui.QFileDialog.getSaveFileName returns a tuple, the first element of which is the file name. You can ignore the second element by using: fname, _ = QtGui.QFileDialog.getSaveFileName(self, 'Save file', '/home/untitled.png', 'Images (*.png *.xpm *.jpg)') Ray On Mar 12, 2012, at

Re: [Matplotlib-users] Segmentation fault in Pyqt

2012-03-12 Thread Sourabh Bajaj
It is a problem with the dialog, if you set the option DontUseNativeDialog. then it works fine. I guess that the problem is with Ubuntu 11.10. On Mon, Mar 12, 2012 at 5:37 PM, Ray Osborn rosb...@anl.gov wrote: I think that QtGui.QFileDialog.getSaveFileName returns a tuple, the first element

Re: [Matplotlib-users] python nltk plots are not showing up

2012-03-12 Thread Eric Firing
On 03/12/2012 10:57 AM, Gias Uddin wrote: If I understand, this should have given me TkAgg. so, the backend is not working properly. No, the backend is fine, it is just the wrong one. Most likely, when you built mpl, the libraries for the gui backends were not found. Try: sudo apt-get

Re: [Matplotlib-users] open ascii grid data and plot

2012-03-12 Thread questions anon
Thanks for responding. I do think the error is with how I prepare the data (importing as a numpy array) because I have used matplotlib a million time with no problems. Maybe I should be taking this question elsewhere about importing the data but thought I would add some more info. The data in the

[Matplotlib-users] where is line after remove?

2012-03-12 Thread Federico Ariza
Hi Working on my little experiment (backend with edition capabilities https://github.com/fariza/MPL-Experimental-Backend) I want to turn visibility on and off for lines. I can not use the visible property, using it the autolimits relim keeps considering the lines as being there. As consequence

[Matplotlib-users] access to my underlying data from picker of pick_handler

2012-03-12 Thread gsal
I am trying to change the underlying data for my plot via a pick event, except that the matplotlib examples for picking show a couple of functions with predefined signatures and I can't seem to figure out how to modify my data from within those functions...how to do it? Here is a minimal