8
我想用Seaborn的JointGrid hexplots繪製我的非方形數據。我無法得到它不以1:1縱橫比繪製六角形。如何繪製非方形Seaborn jointplot或JointGrid
有無論如何覆蓋默認?兩個jointplot和JointGrid文檔簡單地說
大小:數字,可選的身影
大小(這將是正方形)。
我也嘗試進入餵養extent
kwarg既jointplot和JointGrid,以及ylim
沒有運氣。
hextraj = sns.jointplot('position_x', 'position_y', ensemble)
hextraj.plot_marginals(sns.distplot, kde=False)
hextraj.plot_joint(plt.hexbin, extent = boundary)
hextraj.ax_joint.set_aspect('equal') # overrides distortion
hextraj.ax_joint.invert_yaxis() # hack to flip y-axis (lab convention)
cax = hextraj.fig.add_axes([1, .25, .04, .5])
plt.colorbar(cax=cax)
您的問題是圖形或hexbin單元格的縱橫比? – mwaskom
嗨@mwaskom,人物本身。我想擺脫填充並使其非正方形,因爲我的數據是我的座標不是方形的。 – crypdick
我建議你使用matplotlib命令自己設置圖形。 – mwaskom