Home > other >  ScottPlot - errorbar with different top and bottom values
ScottPlot - errorbar with different top and bottom values

Time:12-08

Unequal error bar

CodePudding user response:

This used to be supported in ScottPlot, but it looks like it was removed in 4.1. Depending on your usecase it may be worth downgrading to 4.0.49, keeping in mind that you will have less features, worse performance, and no updates or support.

You can work around this on 4.1 by using two scatter plots. You draw one scatterplot which is your data. Then you draw another, with markers invisible and symmetrical error bars. You can adjust the y-value of the invisible markers to simulate asymmetrical error bars.

For example, in your example with 20 2, -7 you would follow these steps:

  1. Plot a marker at y=20
  2. Plot an invisible marker at y=17.5 with visible errorbars of ± 4.5
  • Related