[Matplotlib-users] Formatter dates

2010-11-17 Thread Tim Åberg
Hello! I have now been tampering with a custom formatter and the more i think about it the more i feel there must be a more easy soulution. I have a set of values that are plotted over time (i use date2num, to get the conversion from date to num), i also have a list with dates that

Re: [Matplotlib-users] Unknown projection '3d' even with svn version?

2010-11-17 Thread Eric Emsellem
yes, it looks like this is the right file (when I look at matplotlib.__file__) Now tracing which routines are run when doing this, it looks like it looks for projection in projections/__init__.py after going through line 675 of figure.py It looks like add_subplot of plt.figure() is not

Re: [Matplotlib-users] Formatter dates

2010-11-17 Thread Tim Åberg
I just checked it up, and it had some nice function, the timeseries looked nice and maybe i can use it in some way (time_series looked interesting) . I dont want to go away from Linecollection way of plotting due to its speed or is the timeseries-way a fast way of plotting? Date: Wed, 17

Re: [Matplotlib-users] Formatter dates

2010-11-17 Thread John Hunter
On Wed, Nov 17, 2010 at 2:29 AM, Tim Åberg qw...@hotmail.com wrote: Hello! I have now been tampering with a custom formatter and the more i think about it the more i feel there must be a more easy soulution. I have a set of values that are plotted over time (i use date2num, to get the

[Matplotlib-users] Binning data, deleting an histogram from plot

2010-11-17 Thread Davide Fiocco
Hi folks, I want to bin sevaral arrays of data and superimpose them in a single plot. The simplest approach is to fire several times hist(data_i, N) My problem is that I want to make a loglog plot (i.e. putting a logscale on the X axis too, something that hist doesn't allow me to do). So what

Re: [Matplotlib-users] Hammer projection grid

2010-11-17 Thread Benjamin Root
On Wed, Nov 17, 2010 at 5:45 AM, Matthias Plum p...@physik.rwth-aachen.dewrote: Hi I am trying to plot data on the sphere and use the hammer projection. The data ploting works fine, but the angular grid isn't shown correctly. In the attached picture you can see the error(mouse pointer is on

Re: [Matplotlib-users] Binning data, deleting an histogram from plot

2010-11-17 Thread Roban Hultman Kramer
There is numpy.histogram, which will give you the histogram without the plots. But I have had little trouble using hist on log-log plots: Try this (in ipython -pylab or with from pylab import *; import numpy): x = numpy.random.lognormal(size=1e4) bins = logspace(-1.5, 1.5, 100) hist(x,

Re: [Matplotlib-users] Hammer projection grid

2010-11-17 Thread Benjamin Root
On Wed, Nov 17, 2010 at 8:44 AM, Benjamin Root ben.r...@ou.edu wrote: On Wed, Nov 17, 2010 at 5:45 AM, Matthias Plum p...@physik.rwth-aachen.de wrote: Hi I am trying to plot data on the sphere and use the hammer projection. The data ploting works fine, but the angular grid isn't shown

Re: [Matplotlib-users] Weird white stripes when using matplotlib.pyplot countourf

2010-11-17 Thread Eric Firing
On 11/17/2010 07:35 AM, Ognjen Ilic wrote: Hello all, I posted about this problem on another forum (with an image attachment) http://python-forum.org/pythonforum/viewtopic.php?f=18t=21951p=99290#p99290 In the figure below white space that forms a trapezoid to the right (slope then constant)

Re: [Matplotlib-users] Unknown projection '3d' even with svn version?

2010-11-17 Thread Benjamin Root
On Wed, Nov 17, 2010 at 2:32 AM, Eric Emsellem eemse...@eso.org wrote: yes, it looks like this is the right file (when I look at matplotlib.__file__) Now tracing which routines are run when doing this, it looks like it looks for projection in projections/__init__.py after going through

Re: [Matplotlib-users] Unknown projection '3d' even with svn version?

2010-11-17 Thread Eric Emsellem
Dear Ben thanks a lot for this thoughful answer. When I use only ipython and not ipython -pylab IT WORKS!!! So this is a problem with ipython -pylab call... Any thought of why this is? I provide more info below thanks for any help there. Eric P.S.: Here is the output of my setup: In [1]:

Re: [Matplotlib-users] Unknown projection '3d' even with svn version?

2010-11-17 Thread Benjamin Root
On Wed, Nov 17, 2010 at 1:54 PM, Eric Emsellem eemse...@eso.org wrote: Dear Ben thanks a lot for this thoughful answer. When I use only ipython and not ipython -pylab IT WORKS!!! So this is a problem with ipython -pylab call... Any thought of why this is? Possibly ipython is somehow

Re: [Matplotlib-users] Weird white stripes when using matplotlib.pyplot countourf

2010-11-17 Thread Ognjen Ilic
Thanks for the help. However, when I change the matplotlibrc file I get the following message Bad key path.simplify on line 267 in /HOME/.matplotlib/matplotlibrc. You probably need to get an updated matplotlibrc file from http://matplotlib.sf.net/matplotlibrc or from the matplotlib source

Re: [Matplotlib-users] Weird white stripes when using matplotlib.pyplot countourf

2010-11-17 Thread Eric Firing
On 11/17/2010 01:28 PM, Ognjen Ilic wrote: Thanks for the help. However, when I change the matplotlibrc file I get the following message Bad key path.simplify on line 267 in /HOME/.matplotlib/matplotlibrc. You probably need to get an updated matplotlibrc file from

Re: [Matplotlib-users] Weird white stripes when using matplotlib.pyplot countourf

2010-11-17 Thread Benjamin Root
On Wed, Nov 17, 2010 at 5:37 PM, Eric Firing efir...@hawaii.edu wrote: On 11/17/2010 01:28 PM, Ognjen Ilic wrote: Thanks for the help. However, when I change the matplotlibrc file I get the following message Bad key path.simplify on line 267 in /HOME/.matplotlib/matplotlibrc. You

[Matplotlib-users] Control of thread/program not returning to ipython after creating a plot.

2010-11-17 Thread Collin Day
Either I updated something that changed Matplotlib's behavior or I am missing something, but when I make a plot in ipython, control is not returning to the prompt - I can't do anything until I close the plot. Here is exactly what I am doing: ipython --pylab x=arange(10) y=x**2 figure()

Re: [Matplotlib-users] Control of thread/program not returning to ipython after creating a plot.

2010-11-17 Thread Benjamin Root
On Wed, Nov 17, 2010 at 6:54 PM, Collin Day dcday...@gmail.com wrote: Either I updated something that changed Matplotlib's behavior or I am missing something, but when I make a plot in ipython, control is not returning to the prompt - I can't do anything until I close the plot. Here is

[Matplotlib-users] Fw: Control of thread/program not returning to ipython after creating a plot.

2010-11-17 Thread Collin Day
Sorry - I should have replied to all to continue the thread on the forum Begin forwarded message: Date: Wed, 17 Nov 2010 18:22:25 -0700 From: Collin Day dcday...@gmail.com To: Benjamin Root ben.r...@ou.edu Subject: Re: [Matplotlib-users] Control of thread/program not returning to ipython

Re: [Matplotlib-users] Control of thread/program not returning to ipython after creating a plot.

2010-11-17 Thread Benjamin Root
On Wed, Nov 17, 2010 at 7:38 PM, Collin Day dcday...@gmail.com wrote: On Wed, 17 Nov 2010 19:00:54 -0600 Benjamin Root ben.r...@ou.edu wrote: Another data point - I tried Qt4Agg - it also works interactively - ie it goes back to the ipython cmd line. I also noticed when I start ipython

Re: [Matplotlib-users] Control of thread/program not returning to ipython after creating a plot.

2010-11-17 Thread Collin Day
Well, I am a Gentoo user, so I was doing the usual emerge -uavDN world which updates everything, so I don't know what exactly has changed. What I can tell you is that I have gtk 2.20.1 and wxGtk 2.8.11. I could try updating again (I update about every 1-2 weeks to keep current and avoid issues