Plot PNG and SVG files along with the interactive one
This commit is contained in:
parent
61159f3cf1
commit
e8fdfbfa04
1 changed files with 10 additions and 0 deletions
10
run_all.py
10
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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue