<s> from matplotlib . collections import LineCollection <EOL> import matplotlib . pyplot as plt <EOL> import numpy as np <EOL> from bokeh import mpl <EOL> from bokeh . plotting import output_file , show <EOL> N = <NUM_LIT:50> <EOL> x = np . arange ( N ) <EOL> ys = [ x + i for i in x ] <EOL> colors = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> line_segments = LineCollection ( [ list ( zip ( x , y ) ) for y in ys ] , <EOL> color = colors , <EOL> linewidth = ( <NUM_LIT:0.5> , <NUM_LIT:1> , <NUM_LIT> , <NUM_LIT:2> ) , <EOL> linestyle = '<STR_LIT>' ) <EOL> ax = plt . axes ( ) <EOL> ax . add_collection ( line_segments ) <EOL> ax . set_title ( '<STR_LIT>' ) <EOL> output_file ( "<STR_LIT>" , title = "<STR_LIT>" ) <EOL> show ( mpl . to_bokeh ( ) ) </s>
