I have a GeoPandas DataFrame (loaded from a shapefile) containing a number of polygons which looks like this:
geometry raster_val
0 POLYGON ((8.56799 47.80800, 8.56799 47.77200, ... 1.0
1 POLYGON ((6.73199 47.12400, 6.73199 47.08800, ... 1.0
2 POLYGON ((10.36799 47.01600, 10.36799 46.98000... 1.0
3 POLYGON ((8.60399 46.51200, 8.60399 46.47600, ... 1.0
Is there any elegant way to print/plot those polygons into a .jpg file?

your_dataframe.plot(). You can pass optional parameters for further customization and then simply callplt.savefig()to save the figure as a.jpgfile. Let me know if theplot()method works so I can expand this comment as an answer. – Marcelo Villa Nov 28 '19 at 19:57