惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
量子位
G
Google Developers Blog
J
Java Code Geeks
N
Netflix TechBlog - Medium
博客园 - 聂微东
宝玉的分享
宝玉的分享
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
月光博客
月光博客
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
雷峰网
雷峰网
M
MIT News - Artificial intelligence
T
Tailwind CSS Blog
V
Visual Studio Blog
阮一峰的网络日志
阮一峰的网络日志
博客园 - 三生石上(FineUI控件)
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
有赞技术团队
有赞技术团队
T
The Blog of Author Tim Ferriss

博客园 - wzwyc

FreeSql事务型提交 搜索并下载WINDOWS系统补丁 VS2019/2022/2026内网安装闪退的问题 Windows 7开发环境的问题笔记 C#颜色转换 C#把整型数值转16进制字符串 RocketMQ调研笔记 20260507随笔 在Zed中设置Xiaomi MiMo apache-iotdb-0.13.3-all-bin在WINDOWS 11系统上部署运行的问题 任务栏上的图标无法正常显示 应用启动时加载XML报错的问题处理 Prism的LoadedCommand命令没有被调用的问题 C#编译报错:可在所有平台上访问此调用站点。"xxxxxxxxxx" 仅在 "Windows" 7.0 及更高版本 上受支持。 C#系统下LINUX系统下组播数据的接收 消除只能在WINDOWS系统上使用的编译报警提示 WpfMultiStyle笔记 Kafka调研笔记 利用HtmlAgilityPack抓取网页的标题 关于Process的使用 Anaconda使用笔记 python下的plotly把图表转换成HTML 利用NAudio实现对音频设备的控制(静音、音量调节) 利用MathNet.Numerics求均方根 .NET 8以上版本,字节数组转字符串 .NET 8项目下载所有依赖到指定目录 异常的处理
OxyPlot显示Legend图例
wzwyc · 2026-04-01 · via 博客园 - wzwyc

需要设置IsLegendVisible为true,同时还要添加一个Legend。

var model = new PlotModel() { IsLegendVisible = true };
model.Legends.Add(new Legend { LegendPosition = LegendPosition.TopRight, LegendBackground = OxyColor.FromAColor(200, OxyColors.White), LegendBorder = OxyColors.Black });