Hi Jakob, Thanks for the reply.
I downloaded the CVN version for Win64, but unfortunately I am still getting the same errors. I believe the problem is in the way the legend is defined. If I comment the lines between 180-184, it plots a map without a legend. There is description how these lines are written here http://stackoverflow.com/questions/8342549/matplotlib-add-colorbar-to-a-sequence-of-line-plots . Unfortunately, I couldn’t find the right recipe from trial and errors. Any suggestions will be greatly appreciated! Cheers, Katya From: Jakob Erdmann [mailto:[email protected]] Sent: 08 January 2016 14:31 To: Pyatkova, Katya Cc: [email protected] Subject: Re: [sumo-user] plot_net_dump.py usage I turns out the script was broken. You can get the fixed version by downloading the latest development version. See http://sumo.dlr.de/wiki/Downloads#SUMO_-_Latest_Development_Version Thank you for reporting the problem. regards, Jakob 2016-01-08 12:48 GMT+01:00 Jakob Erdmann <[email protected]<mailto:[email protected]>>: Possibly your python and matplotlib versions do not match. 2016-01-08 11:49 GMT+01:00 Pyatkova, Katya <[email protected]<mailto:[email protected]>>: Dear SUMO community, Happy new 2016! I am experiencing problems while trying to visualise aggregated edge states on a map. I am using plot_net_dump.py and I have made sure 1) I have set <SUMO_HOME> for sumo-0.23.0; 2) I have installed matplotlib and Python. The command in cmd I am using is very similar to the one in the examples in http://sumo.dlr.de/wiki/Tools/Visualization . The traceback I am getting is: File "plot_net_dump.py", line 199, in <module> sys.exit(main(sys.argv)) File "plot_net_dump.py", line 178, in <module> sm = matplotlib.cm.ScalarMappable(cmap=get_cmap( NameError: global name 'matplotlib' is not defined Any suggestions what I might be doing wrong? I apologise if this is a common problem, but I couldn't find anything relevant in the mailing lists. Needless to say, any help will be greatly appreciated! Best regards, Katya Pyatkova MSc, PhD Student Centre for Water Systems College of Engineering, Mathematics and Physical Sciences (CEMPS) University of Exeter, North Park Road, Exeter EX4 4QF, United Kingdom [email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>, +44 (0) 7598 659122<tel:%2B44%20%280%29%207598%20659122><tel:%2B44%20%280%29%207598%20659122> ------------------------------------------------------------------------------ _______________________________________________ sumo-user mailing list [email protected]<mailto:[email protected]> https://lists.sourceforge.net/lists/listinfo/sumo-user ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
