matplotlib / matplotlib/basemap
small bug in drawmapscale
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 817
- フォーク
- 395
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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')
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Start at the Basemap.drawmapscale entry point and inspect the fancy-style frame and tick plotting calls shown in the issue. Reproduce the supplied example with two axes, then verify that every part of the map scale is plotted on the ax0 axes rather than the current axes.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- matplotlib, python
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 68/100