title: Clickable transparent lines are impossible in MATLAB?
body: <p>So I have 3 lines (technically patches) that have some transparency enabled. These lines were generated by the patchline FEX submission. The FEX entry works great by making patches seem like lines by adding a NaN to the end of the data so it doesn't create a big black patch between the end points of my line.</p>
  
  <p>My lines looks like this</p>
  
  <pre><code>__        __
    \      /
  _  \    /  _
   \  \__/  /
    \______/
  </code></pre>
  
  <p>The patch extends from the left end point to the right end point in a straight line across the top and then follows the line on the bottom. The actual patch is hidden (not drawn) though so all the user sees is the lines</p>
  
  <p>The problem is if I wanted to click the bottom hump of the top line, it acts like I clicked the bottom line because it is part of that patch.</p>
  
  <p>I have thought of a couple of workarounds and was hoping you guys could point out flaws or add ideas I might have missed with my workarounds.</p>
  
  <p>Workaround #1</p>
  
  <p>Ideally, I would create an actual line (line series obj.) over the transparent lines. I would turn hittest off on the patches and I would make the actual line invisible, but turn hittest on. The problem I am 99% sure exists is that if visibilty is off, you can't click the object. If anybody has a work around to that issue (documented or otherwise), that would be great.</p>
  
  <p>Workaround #2</p>
  
  <p>Turn the patchline hittest property to off. Make mock line objs. that follow the patchline coords. and have a line width very very small so as to make the line ideally pretty much invisible and have hit test clicks point to these lines instead. Has anybody tried something like this before? (I'm at work and can't try it now)</p>
  
  <p>Workaround #3</p>
  
  <p>NOTE THAT I REALLY DONT WANT TO DO THIS It is of course possible to turn off hittest for the patch/line objs and use the axes buttondown to figure out what patch obj (just the line part) it was closest to.</p>
  
  <p>Once again, any insight would be much appreciated either about my possible work arounds, the situation in general, etc.</p>
  
  <p>Thanks, Shaun</p>