2d1f675df687e88c0f4366cbc3984332361561f4,examples/plotting/file/interactive_legend.py,,,#,6
 
Before Change
p.title.text = "Click on legend entries to hide lines"
for name, color in zip(["AAPL", "IBM", "MSFT", "GOOG"], Spectral4):
    df = pd.read_csv(
        "http://ichart.yahoo.com/table.csv?s=%s&a=0&b=1&c=2005&d=0&e=1&f=2014" % name,
        parse_dates=["Date"]
    )
    p.line(df["Date"], df["Close"], line_width=2, color=color, alpha=0.8, legend=name)
p.legend.location = "top_left"
p.legend.click_policy = "hide"
After Change
p = figure(plot_width=800, plot_height=250, x_axis_type="datetime")
p.title.text = "Click on legend entries to hide lines"
for data, name, color in zip([AAPL, IBM, MSFT, GOOG], ["AAPL", "IBM", "MSFT", "GOOG"], Spectral4):
    df = pd.DataFrame(data)
    df["date"] = pd.to_datetime(df["date"])
    p.line(df["date"], df["close"], line_width=2, color=color, alpha=0.8, legend=name)
p.legend.location = "top_left"
p.legend.click_policy = "hide"

In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances
 Project Name: bokeh/bokeh
 Commit Name: 2d1f675df687e88c0f4366cbc3984332361561f4
 Time: 2017-05-17
 Author: lcanavan@continuum.io
 File Name: examples/plotting/file/interactive_legend.py
 Class Name: 
 Method Name: 
 Project Name: bokeh/bokeh
 Commit Name: 2d1f675df687e88c0f4366cbc3984332361561f4
 Time: 2017-05-17
 Author: lcanavan@continuum.io
 File Name: sphinx/source/docs/user_guide/examples/interaction_legend_hide.py
 Class Name: 
 Method Name: 
 Project Name: bokeh/bokeh
 Commit Name: 2d1f675df687e88c0f4366cbc3984332361561f4
 Time: 2017-05-17
 Author: lcanavan@continuum.io
 File Name: sphinx/source/docs/user_guide/examples/interaction_legend_mute.py
 Class Name: 
 Method Name: