quiver + dates

Hello list,

I’m trying to create a stick-plot figure using the quiver function from matplotlib. However, I’m failing miserably to plot dates in the x-axis. Has anyone done this before? Also, is there an effort to create a stickplot function?

Thanks, Filipe

···

Filipe Pires Alvarenga Fernandes

University of Massachusetts Dartmouth
200 Mill Road - Fairhaven, MA
Tel: (508) 910-6381
Email: falvarengafernandes@…1874…
ocefpaf@…1361…
ocefpaf@…287…

http://ocefpaf.tiddlyspot.com/


Filipe Pires Alvarenga Fernandes wrote:

Hello list,

I'm trying to create a stick-plot figure using the quiver function from matplotlib. However, I'm failing miserably to plot dates in the x-axis. Has anyone done this before? Also, is there an effort to create a stickplot function?

I need to add units support to quiver so that it will recognize dates. I will do that shortly.

Please give an example showing what you want as a "stickplot". What should be the capabilities of such a function? Does it differ from quiver only in plotting line segments rather than arrows?

Eric

···

Thanks, Filipe

*****************************************************
Filipe Pires Alvarenga Fernandes

University of Massachusetts Dartmouth
200 Mill Road - Fairhaven, MA
Tel: (508) 910-6381
Email: falvarengafernandes@...1874... <mailto:falvarengafernandes@…1874…>
         ocefpaf@...1361... <mailto:ocefpaf@…1361…>
         ocefpaf@...287... <mailto:ocefpaf@…287…>

http://ocefpaf.tiddlyspot.com/
*****************************************************

------------------------------------------------------------------------

------------------------------------------------------------------------------
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
matplotlib-users List Signup and Options

Hi Filipe,

you can fist use the quiver() function in the classic way for stick plots, then use gca().xaxis_date().

Here is a simple example :

import pylab as P

t may be generated using date2num()

t = P.arange(100,110,.1)
u = P.sin(t)
v = P.cos(t)
P.quiver([t],[[0]*len(t)],u,v)
P.gca().xaxis_date()
P.show()

···

On Sun, Feb 7, 2010 at 6:11 PM, Filipe Pires Alvarenga Fernandes <ocefpaf@…287…> wrote:

Hello list,

I’m trying to create a stick-plot figure using the quiver function from matplotlib. However, I’m failing miserably to plot dates in the x-axis. Has anyone done this before? Also, is there an effort to create a stickplot function?

Thanks, Filipe


Filipe Pires Alvarenga Fernandes

University of Massachusetts Dartmouth
200 Mill Road - Fairhaven, MA
Tel: (508) 910-6381

Email: falvarengafernandes@…1874…
ocefpaf@…1361…
ocefpaf@…287…

http://ocefpaf.tiddlyspot.com/



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


Stephane Raynaud

Thanks, that worked perfectly.

Best, Filipe

···

On Mon, Feb 8, 2010 at 8:39 AM, Stephane Raynaud <stephane.raynaud@…1972…> wrote:

Hi Filipe,

you can fist use the quiver() function in the classic way for stick plots, then use gca().xaxis_date().

Here is a simple example :

import pylab as P

t may be generated using date2num()

t = P.arange(100,110,.1)
u = P.sin(t)
v = P.cos(t)
P.quiver([t],[[0]*len(t)],u,v)
P.gca().xaxis_date()
P.show()

On Sun, Feb 7, 2010 at 6:11 PM, Filipe Pires Alvarenga Fernandes <ocefpaf@…1972…> wrote:

Hello list,

I’m trying to create a stick-plot figure using the quiver function from matplotlib. However, I’m failing miserably to plot dates in the x-axis. Has anyone done this before? Also, is there an effort to create a stickplot function?

Thanks, Filipe


Filipe Pires Alvarenga Fernandes

University of Massachusetts Dartmouth
200 Mill Road - Fairhaven, MA
Tel: (508) 910-6381

Email: falvarengafernandes@…1874…
ocefpaf@…1361…
ocefpaf@…120…287…

http://ocefpaf.tiddlyspot.com/



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


Stephane Raynaud

Hello again, I managed to produce a nice stickplot, thanks to all again. Here is the script in case anyone is interested.

http://dl.dropbox.com/u/4411725/plt-surf-flx.html

Best, Filipe

···

On Mon, Feb 8, 2010 at 9:57 AM, Filipe Pires Alvarenga Fernandes <ocefpaf@…287…> wrote:

Thanks, that worked perfectly.

Best, Filipe

On Mon, Feb 8, 2010 at 8:39 AM, Stephane Raynaud <stephane.raynaud@…287…> wrote:

Hi Filipe,

you can fist use the quiver() function in the classic way for stick plots, then use gca().xaxis_date().

Here is a simple example :

import pylab as P

t may be generated using date2num()

t = P.arange(100,110,.1)
u = P.sin(t)
v = P.cos(t)
P.quiver([t],[[0]*len(t)],u,v)
P.gca().xaxis_date()
P.show()

On Sun, Feb 7, 2010 at 6:11 PM, Filipe Pires Alvarenga Fernandes <ocefpaf@…287…> wrote:

Hello list,

I’m trying to create a stick-plot figure using the quiver function from matplotlib. However, I’m failing miserably to plot dates in the x-axis. Has anyone done this before? Also, is there an effort to create a stickplot function?

Thanks, Filipe


Filipe Pires Alvarenga Fernandes

University of Massachusetts Dartmouth
200 Mill Road - Fairhaven, MA
Tel: (508) 910-6381

Email: falvarengafernandes@…1874…
ocefpaf@…1361…
ocefpaf@…120…287…

http://ocefpaf.tiddlyspot.com/



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


Stephane Raynaud