This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:python [2023/11/15 01:11] okazaki [colorbar] |
wiki:python [2023/11/30 03:19] (current) okazaki [colorbar] |
||
---|---|---|---|
Line 3: | Line 3: | ||
==== colorbar ==== | ==== colorbar ==== | ||
=== 位置 === | === 位置 === | ||
+ | == 複数の図に共通のカラーバーをつける == | ||
以下のリンクが参考になる。 | 以下のリンクが参考になる。 | ||
https:// | https:// | ||
Line 13: | Line 14: | ||
clb.set_ticks(ticks) | clb.set_ticks(ticks) | ||
clb.set_ticklabels(ticklabels) | clb.set_ticklabels(ticklabels) | ||
+ | | ||
+ | ==== legend ==== | ||
+ | https:// | ||
+ | === 位置 === | ||
+ | ax.legend(bbox_to_anchor=(1, | ||
+ | === 枠線 === | ||
+ | ax.legend(frameon=False) | ||
+ | |||
===== cartopy ===== | ===== cartopy ===== | ||
+ | ==== 緯度・経度線 ==== | ||
+ | gl = ax.gridlines(crs=ccrs.PlateCarree(), | ||
+ | gl.xlocator = mticker.FixedLocator([130, | ||
+ | gl.ylocator = mticker.FixedLocator([35, | ||
+ | gl.top_labels = False | ||
+ | gl.right_labels = False | ||
+ | gl.xlabel_style = {' | ||
+ | gl.ylabel_style = {' |