Dear all,
It is still the same problem. Actually my code like below :
import os
import netCDF4 as nc
import numpy as np
import matplotlib.pylab as pl
base_dir = 'C:/DATA2011/' # Note PC
nc_file1 = '20110301.faifb1p16m2.nc' # Single beam data
nc_file2 = '20110301.faifb1p16m3.nc' # Single
In v1.3, we added the ability to provide a list of axes objects to
pyplot.colorbar() (and maybe fig.colorbar()?). All of the axes objects in
that list would then get resized similarly to make room for the colorbar.
http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.colorbar
The AxesGrid
I am a newbie in python and I try to plot data like below :
base_dir = 'C:/DATA2013/Day_E/'
nc_fnames = ['20130203.faieb3p4g.nc',
'20130203.faieb3p4g.nc','20130203.faieb3p4g.nc']
# beams
ibeams = [0,1,2]
# Change directory
os.chdir(base_dir)
for i, fname in enumerate(nc_fnames):
# Open file
I would consider using the AxesGrid toolkit [1], which makes it very easy
to have a single colorbar for multiple plots.
[1] - http://matplotlib.org/1.3.1/mpl_toolkits/axes_grid/users/overview.html
Thanks,
Alex
On Tue, May 20, 2014 at 8:04 PM, Alex Goodman alex.good...@colostate.eduwrote:
I