title: Plot multiple figures from dictionary
body: <p>I have a dictionary that has stored monthly temperature data for 10 years for 20+ lat,lon locations. I want to loop through this dictionary and plot 20+ different line plots. Here I have provided where the data comes from (a netcdf file), sliced a single decade in time, and then outputted the dictionary entry value.</p>
  
  <pre><code>data=xr.open_dataset('E:/Riskpulse_HD/Jon climate study/adaptor.mars.internal-1583855532.1432714-8122-5-ace27afd-90c0-4a7d-b9ca-f3d5528c5ea1.nc')    
  time = data['time']
  start_date1 = dt.datetime(1990,1,1)
  end_date1 = dt.datetime(1999,12,31)
  times1=time.sel(time=slice(start_date1,end_date1))
  cities['Shanghai']['1990s']
  
  &lt;xarray.DataArray 't2m' (time: 120)&gt;
  array([13.714203 , 13.964508 , 15.832062 , 19.553162 , 21.987793 ,
         25.075317 , 26.624298 , 26.381012 , 24.993042 , 23.088745 ,...
  </code></pre>
  
  <p>Now I try to set up a loop to loop through all of the keys in the dictionary where the only thing that changes in the name of the city.</p>
  
  <pre><code>for i in len(cities.keys()):
      plt.plot(times1['time'],cities[i]['1990s'])
  </code></pre>
  
  <p>Ideally I would get out 20+ different line plots corresponding to all the cities in the dictionary, but I get this error.</p>
  
  <pre><code>TypeError: 'int' object is not iterable
  </code></pre>