title: How to angle individual sized lines in matplotlib
body: <p>I have a bunch of points and within those points, I associated them with horizontal lines based on their line widths shown in blue.</p>
  <p><a href="https://i.stack.imgur.com/OIq0a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OIq0a.png" alt="enter image description here" /></a></p>
  <p>In the image above, you will notice a bunch of points and different sized horizontal lines associated with those points. The code that I have implemented for those horizontal lines is shown below. But now I want to angle those lines based off another dataset so that the horizontal lines will still remain but some will be angled at some degree but I am not sure how to do that?</p>
  <p>For example, suppose I want to angle the horizontal line at coordinates (~180 degrees, ~55 degrees) at a 60 degree angle?</p>
  <pre><code>plt.rcParams.update({'font.size': 22})
  df = pd.read_fwf('diffusedata.txt')
  df2 = pd.read_fwf('detection.txt')
  long = np.array(df[df.columns[0]])
  lat = np.array(df[df.columns[1]])
  long2 = np.array(df2[df2.columns[0]])
  lat2 = np.array(df2[df2.columns[1]])
  fig = plt.figure(figsize=(75,55))
  ax = fig.add_subplot(111, aspect='equal')
  ax.scatter(long, lat, s=3, color='black')
  ax.set_xlim(360., 0.)
  ax.set_ylim(-90., 90.)
  ax.set_xlabel(&quot;Galactic Longitude&quot;)
  ax.set_ylabel(&quot;Galactic Latitude&quot;)
  vel = pd.read_fwf('velocitynorth.txt')
  velo = np.array(vel[vel.columns[0]])
  ax.errorbar(long2, lat2, fmt='bo', xerr=velo)
  </code></pre>