Does anyone know how to change the color of the division markers on an oxyplot? I can't seem to find that specific property anywhere. Here is the code I am using to produce the plot below. As you can see the division markers are black. Would really like to change their color. Thanks.
<oxy:Plot PlotAreaBorderColor="White" Background="#242426" TextColor="White" Margin="5" Title="X and Y FPOS" TitleFontSize="12" Grid.Row="0" Grid.ColumnSpan="2">
<oxy:LineSeries ItemsSource="{Binding XYData}"/>
</oxy:Plot>

The property you are looking for is TicklineColor. You have to do it in both axes:
Effect:

Code:
<oxy:Plot>
...
<oxy:Plot.Axes>
<oxy:LinearAxis Position="Left" TicklineColor="White" />
<oxy:LinearAxis Position="Bottom" TicklineColor="White" />
<oxy:Plot.Axes>
</oxy:Plot>
I think, in this moment it is impossible to set color of markers. But, perhaps, you will approach the option of using PlotAreaBackground.
Example:
.xaml:
<oxy:Plot PlotAreaBorderColor="Green" Background="DarkGreen"
PlotAreaBackground="#242426" TextColor="White"
Title="X and Y FPOS" TitleFontSize="12"
Grid.Row="0" Grid.ColumnSpan="2">
<oxy:LineSeries ItemsSource="{Binding XYData}" Color="Yellow"/>
</oxy:Plot>
.fs:
type MainViewModel() =
inherit ViewModelBase()
let data = [0.0..0.1..50.0] |> List.mapi(fun i x -> DataPoint(float i, cos x))
member self.XYData with get() = data
Screenshot:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With