matplotlib / matplotlib/basemap
plotparallels()/plotmeridians() only support xoffset or yoffset not both and do not support horizontalalignment or verticalalignment
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 817
- フォーク
- 395
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
plotparallels() and plotmeridians() only support xoffset or yoffset not both.
plotparallels() and plotmeridians() do not support horizontalalignment or verticalalignment via kwargs as these are hard coded within Basemap.
I found both of these because I wanted the labels inside the map border with the parallels above the line at the right of the plot and the meridians to the right of the line at the bottom of the plot. I found a hack by altering the returned matplotlib objects:
meridians = bmap.drawmeridians(meridians,labels=[0,0,1,0],fontsize=10,
color='gray', yoffset=-abs(right-left)
for k, v in meridians.iteritems():
v[1][0].set_horizontalalignment('left')
This sets the label to the top but then moving them the size of the plot then setting horizontal alignment via returned matplotlib object.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
plotparallels() と plotmeridians() の実装を特定し、xoffset、yoffset、kwargs がどのように処理されるかを追跡します。マップの両側にラベルを配置した場合の動作を検証します。両方のオフセットが同時に機能し、horizontalalignment と verticalalignment が受け付けられる必要があります。呼び出し側がこの位置決めのために返された matplotlib オブジェクトを変更する必要がなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- data-visualization
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100