[Matplotlib-users] problem using Linecollection

A397nn annix at uw.edu
Thu Jan 5 03:40:26 EST 2017

I'm simply trying to draw a couple of lines using line collection, not sure
why it doesn't work

import matplotlib.pyplot as plt
from matplotlib import collections as mc
import numpy as np
import pylab as pl

segments = [ [(1,2),(3,4)],
				[(5,6),(7,8)] ]
lc = mc.LineCollection(segments, linestyles='solid', pickradius=5, zorder=2)
fig, ax = pl.subplots()


View this message in context: http://matplotlib.1069221.n5.nabble.com/problem-using-Linecollection-tp47687.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

More information about the Matplotlib-users mailing list