문제

I am having lots of trouble configuring my figure in matplot for python. Im relatively new to programming so my code is clunky and well inefficient. Anyway, Im trying to make the subplot as large as possible (fullscreen if possible). I would like to fill up all of the gray area in the figure, but I cannot seem to be able to. Its a basic gis map showing roads and cities in western Oklahoma from shapefiles. If anyone can help please leave me some suggestions.

Thanks!

p.s. if anyone knows how to get the city shapefiles to display names that would also be fantastic!

도움이 되었습니까?

해결책

You can use the rect argument to axes() to set the (left,bottom,right,top) extent of the axes within the figure canvas. These are specified in normalized canvas units between 0 and 1.

 import matplotlib.pyplot as pp
 fig = pp.figure()
 ax = fig.add_axes((0,0,1,1))
 ax.plot(range(10))
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top