small bug in drawmapscale

オープン 初心者向け
#368 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
matplotlib, python

調査の方向性

Basemap.drawmapscale のエントリポイントから始め、issue に示されている fancy スタイルのフレームと目盛りのプロット呼び出しを調べます。2 つの軸を使って提供された例を再現し、その後、地図スケールのすべての部分が現在の軸ではなく ax0 軸にプロットされていることを確認します。

索引モデルが issue の本文から書いたものです。

説明

When using fancy style, the argument ax is not passed to self.plot while plotting the frame and ticks, ex:
#plot bottom line
rets.append(self.plot([x1,x4],[ybottom,ybottom],color=fontcolor)[0])

Thus, part of the map scale may be plotted in a different axes. Ex:

import pylab as pl
from mpl_toolkits.basemap import Basemap
m = Basemap(width=3000e3,height=3000e3,resolution='l',
         projection='lcc',lat_1=50.,lat_0=47,lon_0=1.)

ax0=pl.axes()
ax1=pl.axes([.6,.5,.15,.15])
m.drawcoastlines(ax=ax0)
lon,lat=-15,47
lon0,lat0=lon,lat
scaleL=400
#pl.axes(ax0) #this will avoid the problem...
o=m.drawmapscale(ax=ax0,lon=lon,lat=lat,lon0=lon0,lat0=lat0,
                   length=scaleL,barstyle='fancy',fontcolor='r')
主要言語
Python
スター
817
フォーク
395
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

matplotlib/basemap のほかの issue

matplotlib/basemap の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。