These are chat archives for oxyplot/oxyplot

17th
Dec 2015
Russ Mathis
@RussMathis
Dec 17 2015 15:57
Help, Is there a way to create a LinearColorAxis (Minimum=0,Maximum = 100) where the collors are a gradient to represent battery level? (A gradient starting with Red for 0 at the bottom and Green at the top)
Russ Mathis
@RussMathis
Dec 17 2015 17:30
Resolved LinearColorAxis question. FYI: you can set the LinearColorAxis palette with OxyPalette.Interpolate(number of colors, low color, high color... or ranges of collors.), Hmmm but what property on the object is it? :)
Ok, I was accessing the Axes via model.Axes[2] so to find the Palette property had to cast like so ((LinearColorAxis)model.Axes[2]).Palette = OxyPalette.Interpolate(32, OxyColors.Red,OxyColors.Blue,OxyColors.Green); :)
Russ Mathis
@RussMathis
Dec 17 2015 18:06
But, I added my new axes to the left but now I have two axes on the left, how do I remove the default left axes?