[Matplotlib-users] verts

2013-04-08 Thread Steven Boada
Hey List,

I've got some verts I stole from the internet that draws an upward arrow 
(or a down arrow), but I need to draw an arrow to the right or to the 
left. But I don't really understand verts and how they work.

arrowup_verts = [[0.,0.], [-1., -1], [0.,0.], [0.,-2.],[0.,0.], [1,-1]]
arrowdown_verts = [[0.,0.], [-1., 1], [0.,0.], [0.,2.],[0.,0.], [1, 1]]

plot them like...

scatter(1,1,s=100, marker=None, verts=arrowup_verts)


Can someone make me new verts for the right and left arrow? Then, maybe 
tomorrow, explain how I was supposed to know what to do.

Thanks y'all

Steven

-- 

Steven Boada

Doctoral Student
Dept of Physics and Astronomy
Texas AM University
bo...@physics.tamu.edu


--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] verts

2013-04-08 Thread Steven Boada
Thanks Zach,

That simple little example makes more sense than the manual page did. 
Perhaps it's just late.

I appreciate it.

Steven

On Mon Apr  8 22:30:43 2013, Zachary Pincus wrote:
 I've got some verts I stole from the internet that draws an upward arrow
 (or a down arrow), but I need to draw an arrow to the right or to the
 left. But I don't really understand verts and how they work.

 arrowup_verts = [[0.,0.], [-1., -1], [0.,0.], [0.,-2.],[0.,0.], [1,-1]]
 arrowdown_verts = [[0.,0.], [-1., 1], [0.,0.], [0.,2.],[0.,0.], [1, 1]]

 plot them like...

 scatter(1,1,s=100, marker=None, verts=arrowup_verts)


 Can someone make me new verts for the right and left arrow? Then, maybe
 tomorrow, explain how I was supposed to know what to do.

 Draw a line from (0,0) to (-1, -1) on the X-Y plane, and then to (0,0) again, 
 and then continue so forth for all the (x,y) pairs in arrowup_verts. You will 
 notice they form a nice little arrow pointing up. (At some point in this 
 process, you should note that verts is short for vertices. As in vertices 
 of a polygon or poly-line.)

 It would seem that the origin of the verts coordinate system is translated 
 to the (x,y) data position at which each marker is plotted.

 This should give you, I presume, sufficient information to figure out your 
 own left and right arrows, no? Or any other shape you should care to plot...

 Zach


 Thanks y'all

 Steven

 --

 Steven Boada

 Doctoral Student
 Dept of Physics and Astronomy
 Texas AM University
 bo...@physics.tamu.edu


 --
 Precog is a next-generation analytics platform capable of advanced
 analytics on semi-structured data. The platform includes APIs for building
 apps and a phenomenal toolset for data science. Developers can use
 our toolset for easy data analysis  visualization. Get a free account!
 http://www2.precog.com/precogplatform/slashdotnewsletter
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--

Steven Boada

Doctoral Student
Dept of Physics and Astronomy
Texas AM University
bo...@physics.tamu.edu

--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users