wdtinc / meteogram-py

Interface around Matplotlib to quickly and easily create meteogram charts.
7 stars 5 forks source link

Syntax Error? #1

Open mivilleb opened 5 years ago

mivilleb commented 5 years ago

Running the code inside Jupyter after installing Matplotlib and meteogram-py I get this error:

` File "/opt/anaconda3/lib/python3.7/site-packages/meteogrampy/init.py", line 10

except KeyError, e:
               ^

SyntaxError: invalid syntax `

me2tkt commented 5 years ago

Editthe file called "init.py" (found in the folder ...\Lib\site-packages\meteogrampy ) and change all lines with except KeyError, e; to except KeyError as e

Then in the example change for x in xrange(len(temperature_data) - 1): to for x in range(len(temperature_data) - 1):

The meteogram look different from the example as different data is used.