kakearney / boundedline-pkg

Plot line(s) with error bounds/confidence intervals/etc. in Matlab
MIT License
102 stars 25 forks source link

BUG: Disconnect outlinebounds on both ends #3

Closed scottclowe closed 8 years ago

scottclowe commented 8 years ago

Previous behavior was to have the lower and upper bound lines drawn together, in one fully connected line. This lead to a line connecting the lower and upper bound lines at one edge of the plot (the +ve end).

In this bug-fix, the two lines are still plotted at once as a single object, but are disconnected by including a NaN between the lower and upper line segments.

scottclowe commented 8 years ago

Here is an example to show the difference before and after this fix.

untitled

Note the line on the right-hand side of the plot before, which is removed afterwards.