Dear Anton, 2008/12/23 antonv <vasilescu_an...@yahoo.com>: > Also, because I figured out the data I need and already have the scripts in > place > to extract the CSV files I would really like to keep it that way. Would it be > possible to > just show me how to get from the csv file to the plot?
Here is a short recipe: import numpy as np f = open("file.csv", "r") coords = np.loadtxt(f, delimiter=",", skiprows=1) lon = coords[:,0] lat = coords[:,1] dat = coords[:,2] where "file.csv" is a regular comma-separated values file in the format: Lat,Lon,Dat -61.05,10.4,20 -79.43,9.15,50 -70.66,9.53,10 -63.11,7.91,40 ... Hope this helps! Best regards, -- Dr. Mauro J. Cavalcanti Ecoinformatics Studio P.O. Box 46521, CEP 20551-970 Rio de Janeiro, RJ, BRASIL E-mail: mauro...@gmail.com Web: http://studio.infobio.net Linux Registered User #473524 * Ubuntu User #22717 "Life is complex. It consists of real and imaginary parts." ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users