title: How to create a 3d XYZ line plot in matplotlib
body: <p>I have been trying to create 3D XYZ Line Plot in Matplotlib and I have no idea how to create the negative axes and multiple lines starting from the origin. </p>
  
  <p>I have looked through all the galleries and although there seem categories from line plots, most of them are 2-D or none showing multiple lines in the positive AND negative axis. I have done the math and here is the graph. </p>
  
  <p><a href="https://imgur.com/gallery/WZnlO8j" rel="nofollow noreferrer">3D Line Plot with Multiple Axes</a></p>
  
  <p>Here are the particular values for this one in the format(vector:[x,y]): x1: [1,1], x1':[1,-1], y1: [2,-1], y1': [-1,-2], z1: [-2,-3], z1':[-3,2]</p>
  
  <p>This is my template code so far that I got off of an online website and I have been playing around with it. </p>
  
  <pre><code>fig, ax = plt.subplots(subplot_kw={'projection': '3d'})
  
  datasets = [{"x":[1,0,0], "y":[0,1,0], "z":[0,0,-1], "colour": "red"} for _ in range(6)]
  
  for dataset in datasets:
      ax.plot(dataset["x"], dataset["y"], dataset["z"], color=dataset["colour"])
  
  plt.show()
  </code></pre>
  
  <p>For the results I am looking for I end up getting just a singular line and have no idea how to create multiple ones splitting into several directions.</p>