From e8fdfbfa04bdf13b847a204fbd3d4400e644ae83 Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Mon, 12 May 2014 11:39:25 +0200 Subject: [PATCH] Plot PNG and SVG files along with the interactive one --- run_all.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/run_all.py b/run_all.py index da364f7..4d047f7 100755 --- a/run_all.py +++ b/run_all.py @@ -243,5 +243,15 @@ uberplot.scatter_points( ax, voronoi_centers, edgecolor="none", facecolor="green ax.set_aspect('equal') + +# transparent background in SVG +fig.patch.set_visible(False) +ax.axis('off') +plot.savefig("ubergeekism.svg", dpi=600) + +ax.axis('off') +fig.patch.set_visible(True) +fig.patch.set_facecolor('white') +plot.savefig("ubergeekism.png", dpi=600) plot.show()