wpf - 在 OxyPlot 中设置 X 轴的 Y 位置
问题描述
我正在用优秀的 OxyPlot 库绘制一个基本的 LineSeries:
我找不到如何将 X 轴设置为以 0 Y 值为中心,而不是在 PlotArea 的底部。
我的代码隐藏如下:
Model = new PlotModel();
LineSeries RightingLever = new LineSeries();
RightingLever.Title = "Righting Lever";
// adding points
Model.Series.Add(RightingLever);
PlotView.Model = Model;
解决方案
推荐阅读
- c# - 页面无法加载,我收到“Newtown.json”警告消息
- python-3.x - 如何从回溯中提取最后一条消息并保留原始堆栈跟踪
- kotlin - java.lang.LinkageError:方法 void GameHistoryViewModel.a() 覆盖类 Landroidx/lifecycle/ViewModel 中的最终方法;出现在 base.apk 中)
- python - 使用 psutil.Process.memory_info 内存使用与 Pandas.memory_usage 不同
- android - 错误:找不到 com.android.location.build:gradle:3.5.0
- php - 如何在 laravel 中创建一个全局变量
- c++ - 指向成员复合的指针
- hyperlink - 无法使用 Protractor 在“IBM Navigator for i”浏览器中单击 wpsToolBarLink 链接
- windows - 如何在 Powershell 中为特定命令设置别名?
- c# - 在一个命名空间下的多个子文件夹中重新组合 razor 组件 - Blazor