Reputation: 4399
I am using OxyPlot and trying to show only the plot. I have found a way to make the axis numbers, the axes, and the background transparent. But I can't seem to find a way to make the axes dashes transparent:
Here's the code that I use:
<oxy:Plot Grid.Row="1" Background="Transparent" TextColor="Transparent" PlotAreaBorderColor="Transparent">
<oxy:LineSeries ItemsSource="{Binding CoilData, RelativeSource={RelativeSource FindAncestor, AncestorType=Window}}" DataFieldX="Key" DataFieldY="Value"/>
</oxy:Plot>
Is there any way to achieve that?
Upvotes: 1
Views: 2419
Reputation: 21
Use this properties of Linear Axis :
LinearAxis eje_y=new LinearAxis();
eje_y.MinorTickSize = 0;
eje_y.MajorTickSize = 0;
Upvotes: 1
Reputation: 2412
If you don't want the axes to be visible, set their IsAxisVisible
property to false
. You still need to add them so that the default axis/value is overwritten.
Upvotes: 0
Reputation: 4399
I have solved it by using the following:
<oxy:Plot.Axes>
<oxy:LinearAxis Position="Left" TickStyle="None"/>
<oxy:LinearAxis Position="Bottom" TickStyle="None"/>
</oxy:Plot.Axes>
Upvotes: 4