Python - plot con python

 
Vista:

plot con python

Publicado por nowar (1 intervención) el 27/03/2007 14:41:28
hi,
>
>i am looking for the easy way to plot some coordinates with
>scipy.gplt.pyPlot this is how i try it but is not working as i would like
>to....
>the new list is a list of pair coordinates something like this:
>
lo que necesito es saber como imprimir cada linea como un solo punto

>[-6.654644,65.55555]
>[-6.645654,65.98798]
>[-6.987813,65.28951]
>[-6.645654,65.65987]
>[-6.634895,65.36985]
>
> >>>import scipy.plt
> >>>from scipy import gplt
> >>>draw=scipy.gplt.pyPlot.Plot()
> >>>draw.plot(newlist)
> >>>draw.title('little map')
> >>>draw.xtitle('longitude')
> >>>draw.ytitle('latitude')
>
>the thing is that i get in the x axes the number of list and then two strait
>lines
>
>
>65_________________________________
>50
>35
>20
>5
>-10-------------------------------------------------
>0 1 2 3 4 5 ............
>
esto es lo que imprime
alguna ayuda please
>can anybody help me.
>thanks in advance
>Nowar00
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

plot con python

Publicado por Leonardo Fonseca Avendaño (1 intervención) el 21/06/2012 21:23:11
yo diria que es por definir las tuplas con los parentesis equivocados, [ ] se usan para listas y acceso a diccionarios mientras que () son para tuplas
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar