[Python] Basemap memo

Now that we have moved to cartopy, we have split pages.

Basemap (ax =) to draw a Basemap on the specified Axes

map1 = Basemap(projection='ortho', lon_0 = 0, lat_0 = 40, ax=ax1)

Convenient for linking with GridSpec and subplot2grid https://basemaptutorial.readthedocs.io/en/latest/subplots.html

Drawlsmask (land_color =, ocean_color =) for land and sea fills

Drawing a Map Background

Labels for latitude and longitude lines are in the order of [left, right, top, bottom]

parallels = np.arange(0.,81,10.)
m.drawparallels(parallels,labels=[False,True,True,False])
meridians = np.arange(10.,351.,20.)
m.drawmeridians(meridians,labels=[True,False,False,True])

https://matplotlib.org/basemap/users/graticule.html

When adding a color bar below, location ='bottom'

Basemap tutorial: Basemap utility functions

The line style of the latitude and longitude line can be specified with dashes, but ...

The 'dotted' in matplotlib.pyplot is closer. linestyles =':', linewidth = 1.0, which is almost the same as the latitude and longitude line of Basemap. https://stackoverflow.com/questions/54663882/setting-the-linestyle-for-the-longitude-and-latitude-lines-in-matplotlibs-basem

Plt.title () is OK to give a title to Basemap

There is no title method in Basemap, but plt.title () is fine https://stackoverflow.com/questions/9402151/how-do-i-add-a-title-to-my-matplotlib-basemap

Recommended Posts

[Python] Basemap memo
Python memo
python memo
Python memo
python memo
Python memo
Python memo
Python memo
[Python] Memo dictionary
python beginner memo (9.2-10)
python beginner memo (9.1)
[Python] EDA memo
Python 3 operator memo
[My memo] python
Python3 metaclass memo
Python beginner memo (2)
[Python] Numpy memo
Python class (Python learning memo ⑦)
My python environment memo
python openCV installation (memo)
Python module (Python learning memo ④)
Python test package memo
[Python] Memo about functions
python regular expression memo
Binary search (python2.7) memo
[My memo] python -v / python -V
Python3 List / dictionary memo
[Memo] Python3 list sort
[Python] Memo about errors
DynamoDB Script Memo (Python)
Python basic memo --Part 2
python recipe book Memo
Basic Python command memo
Python OpenCV tutorial memo
Python basic grammar memo
TensorFlow API memo (Python)
python useful memo links
Python decorator operation memo
Python basic memo --Part 1
Effective Python Memo Item 3
Divisor enumeration Python memo
Python memo (for myself): Array
Python exception handling (Python learning memo ⑥)
Python execution time measurement memo
Python
Twitter graphing memo with Python
[Line / Python] Beacon implementation memo
Python and ruby slice memo
Python Basic Grammar Memo (Part 1)
Python code memo for yourself
Raspberry Pi + Python + OpenGL memo
Python basic grammar (miscellaneous) Memo (3)
Python immutable type int memo
Python memo using perl --join
Python data type summary memo
Python basic grammar (miscellaneous) Memo (2)
[Python] virtualenv creation procedure memo
Python basic grammar (miscellaneous) Memo (4)
Regarding speeding up python (memo)
Python control syntax, functions (Python learning memo ②)
Python environment construction memo on Windows 10