2

I'm trying to load and display my area of interest from a GEOJSON file . My code is bellow

country = gpd.read_file(os.path.join('C:/area.geojson'))
country_shape = country.geometry.values[-1]
country.plot()
plt.axis('off');

I get this error

ValueError: 'box_aspect' and 'fig_aspect' must be positive

Any help please !

ahmed
  • 35
  • 8

1 Answers1

2

I had a similar issue and found the answer here. Try:

country.plot(aspect=1)