我有这个for循环,它将焦点机制作为一个数字射出,我希望能够单独保存每个数字,但不知道如何。
for strike,dip,rake in zip(out_df.strike,out_df.dip,out_df.rake):
fig, ax = mplstereonet.subplots(figsize=(8,8))
plt.rcParams["axes.labelsize"]=14
bball = beachball.beach([strike, dip, rake]
, width=433 # scale of the beachball in the (x,y) plane
, linewidth=1 # thickness of nodal planes and beachball edge lines
, facecolor='darkblue' # color of one of the axes
, zorder=1 # make sure beachball plots on top
, axes = ax)
ax.add_collection(bball)