我正在建立图像的收藏夹视图(画廊)。
布局是每行3个单元格。
import matplotlib.pyplot as plt
import numpy as np
import cartopy.crs as ccrs
import cartopy.feature as cfeature
import os,sys
conus_proj = ccrs.LambertConformal(central_longitude=-96,central_latitude=39.0)
fig = plt.figure(figsize=(10,8))
ax = fig.add_subplot(1,1,projection=conus_proj)
ax.set_extent([-120,-70,22,50])
ax.add_feature(cfeature.COASTLINE)
ax.add_feature(cfeature.OCEAN,facecolor='#CCFEFF')
ax.add_feature(cfeature.LAKES,facecolor='#CCFEFF')
ax.add_feature(cfeature.RIVERS,edgecolor='#CCFEFF')
ax.add_feature(cfeature.LAND,facecolor='#FFE9B5')
ax.add_feature(cfeature.STATES,edgecolor='black',zorder=10)
plt.plot([-120,-70],[35,45],linewidth=8,transform=ccrs.PlateCarree())
plt.show()
一切都很不错,直到我滚动到收藏夹视图的底部。
它来自: 3 per row,looks good
至: super blown up picture,larger than the screen
我也收到此错误消息:
x111 1111 1111 xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx
任何见解都会很棒,我想把它变成无限滚动(api预取),如果这意味着我可以忽略这一点,那就说吧。