Update vis.py

perf charts: draw the legend on the upper left of bbox.