ef90233e8a378c3049cb6955ba88f6598dc545d0,examples/plotting/file/texas.py,,,#,7

Before Change


from bokeh.plotting import figure, show, output_file, ColumnDataSource
from bokeh.models import HoverTool

state = "tx"

county_xs=[
    us_counties.data[code]["lons"] for code in us_counties.data
    if us_counties.data[code]["state"] == state
]
county_ys=[
    us_counties.data[code]["lats"] for code in us_counties.data
    if us_counties.data[code]["state"] == state
]

colors = ["//F1EEF6", "//D4B9DA", "//C994C7", "//DF65B0", "//DD1C77", "/�"]

county_colors = []
county_names = []
county_rates = []
for county_id in us_counties.data:
    if us_counties.data[county_id]["state"] != state:
        continue
    rate = unemployment.data[county_id]
    idx = min(int(rate/2), 5)
    county_colors.append(colors[idx])
    county_names.append(us_counties.data[county_id]["name"])

After Change


}

county_xs = [county["lons"] for county in counties.values()]
county_ys = [county["lats"] for county in counties.values()]

colors = ["//F1EEF6", "//D4B9DA", "//C994C7", "//DF65B0", "//DD1C77", "/�"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: bokeh/bokeh
Commit Name: ef90233e8a378c3049cb6955ba88f6598dc545d0
Time: 2015-12-22
Author: bryanv@continuum.io
File Name: examples/plotting/file/texas.py
Class Name:
Method Name:


Project Name: home-assistant/home-assistant
Commit Name: c6f5a5443f18d11dce3d1ebc64d0662c67001426
Time: 2016-11-15
Author: turbokongen@hotmail.com
File Name: homeassistant/components/climate/zwave.py
Class Name: ZWaveClimate
Method Name: update_properties


Project Name: matplotlib/matplotlib
Commit Name: d520128e9440274835e92efabfce2c87996b0d45
Time: 2018-03-04
Author: anntzer.lee@gmail.com
File Name: lib/mpl_toolkits/axisartist/axislines.py
Class Name: Axes
Method Name: get_tightbbox