【问题标题】:How to plot the empirical distribution function in oxyplot?如何在 oxyplot 中绘制经验分布函数?
【发布时间】:2021-01-30 16:00:00
【问题描述】:

我的数据是经验分布函数的点

ICollection<DataModelXY> data {get; set;}

class DataModelXY
{
  public double X {get; set;}
  public double Y {get; set;}
}

我需要做这样的绘图功能

或者那个

唉,在 oxyplot 中只有 StairStepSeries 构建了错误的东西

需要没有红叉下的线:

【问题讨论】:

    标签: c# wpf mvvm oxyplot


    【解决方案1】:

    StairStepSeriesVerticalLineStyleVerticalStrokeThickness 上有两个属性。

    尝试设置VerticalLineStyle="None"(由于某种原因None 对我不起作用),如果不起作用,您可以设置VerticalStrokeThickness="0"

    <oxy:Plot>
        <oxy:Plot.Series>
            <oxy:StairStepSeries ItemsSource="{Binding Points}" 
                 VerticalLineStyle="None" VerticalStrokeThickness="0">
            </oxy:StairStepSeries>
        </oxy:Plot.Series>
    </oxy:Plot>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-07-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多