[Tutor] Contour Plots

boB Stepp robertvstepp at gmail.com
Tue Aug 28 22:04:26 EDT 2018


Welcome Tara!

On Tue, Aug 28, 2018 at 6:46 PM Tara 38 <tara_38 at live.com> wrote:
>
> Hi,
>
>
> I wonder if someone can give me some advice? I need to build a contour plot (ideally with Seaborn) in python. The plot would document text data. I cannot work out how I need to convert the data file (currently csv file) so that I have 3 variables that I can then plot as a contour map and visualize in Seaborn.
>
>
> Really stuck as to where to even start.

You really did not give many details or your Python background and
knowledge, so it is difficult to know exactly what you need help with.
But from your description as is, it sounds like your immediate problem
is extracting data from your csv file.  Python 2 and 3 have a csv
module to facilitate handling this type of file.  The Python 3 docs
for it are at https://docs.python.org/3/library/csv.html  A Python csv
tutorial (after Googling) can be found at
https://www.blog.pythonlibrary.org/2014/02/26/python-101-reading-and-writing-csv-files/
 There are many others you can find via a search if you don't like
that one.

If your problems lie with generating Seaborn plots another search
found their official tutorial at
https://seaborn.pydata.org/tutorial.html

If the above does not sufficiently help then you will have to provide
additional information as to what exactly you are trying to do, how
are you trying to do it, where are you getting stuck, etc.

HTH!
-- 
boB


More information about the Tutor mailing list