开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
1 Star 0 Fork 2

TK-7/oxyplot

forked from anysharp/oxyplot
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
文件
master
分支 (12)
标签 (7)
master
develop
release/v2.2.0
codestyle
skiaupdate
release/v2.1.2
snyk-fix-9fd1aceadf2111de25175cc5fcecf926
release/v2.1.0
release/v2.1.0-Preview1
StemSeriesActualMarker
release/v2.0.0
release/v1.0.0
v2.2.0
v2.1.2
v2.1.0
v2.0.0
v1.0.0
v0.0.1
v0.20141546
master
分支 (12)
标签 (7)
master
develop
release/v2.2.0
codestyle
skiaupdate
release/v2.1.2
snyk-fix-9fd1aceadf2111de25175cc5fcecf926
release/v2.1.0
release/v2.1.0-Preview1
StemSeriesActualMarker
release/v2.0.0
release/v1.0.0
v2.2.0
v2.1.2
v2.1.0
v2.0.0
v1.0.0
v0.0.1
v0.20141546
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
master
分支 (12)
标签 (7)
master
develop
release/v2.2.0
codestyle
skiaupdate
release/v2.1.2
snyk-fix-9fd1aceadf2111de25175cc5fcecf926
release/v2.1.0
release/v2.1.0-Preview1
StemSeriesActualMarker
release/v2.0.0
release/v1.0.0
v2.2.0
v2.1.2
v2.1.0
v2.0.0
v1.0.0
v0.0.1
v0.20141546
oxyplot
/
Source
/
Examples
/
ExampleLibrary
/
Annotations
/
PointAnnotationExamples.cs
oxyplot
/
Source
/
Examples
/
ExampleLibrary
/
Annotations
/
PointAnnotationExamples.cs
PointAnnotationExamples.cs 6.04 KB
一键复制 编辑 原始数据 按行查看 历史
Oystein Bjorke 提交于 2014年10月04日 05:43 +08:00 . Add TagsAttribute to example library
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="PointAnnotationExamples.cs" company="OxyPlot">
// Copyright (c) 2014 OxyPlot contributors
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
namespace ExampleLibrary
{
using OxyPlot;
using OxyPlot.Annotations;
using OxyPlot.Axes;
[Examples("PointAnnotation"), Tags("Annotations")]
public static class PointAnnotationExamples
{
[Example("PointAnnotation")]
public static PlotModel PointAnnotation()
{
var model = new PlotModel { Title = "PointAnnotation" };
model.Axes.Add(new LinearAxis { Position = AxisPosition.Bottom });
model.Axes.Add(new LinearAxis { Position = AxisPosition.Left });
model.Annotations.Add(new PointAnnotation { X = 50, Y = 50, Text = "P1" });
return model;
}
[Example("PointAnnotation - shapes")]
public static PlotModel PointAnnotationShapes()
{
var model = new PlotModel { Title = "PointAnnotation - shapes" };
model.Axes.Add(new LinearAxis { Position = AxisPosition.Bottom, Maximum = 120 });
model.Axes.Add(new LinearAxis { Position = AxisPosition.Left });
// filled
model.Annotations.Add(
new PointAnnotation
{
X = 20,
Y = 60,
Text = "Circle",
Shape = MarkerType.Circle,
Fill = OxyColors.LightGray,
Stroke = OxyColors.DarkGray,
StrokeThickness = 1
});
model.Annotations.Add(
new PointAnnotation
{
X = 40,
Y = 60,
Text = "Square",
Shape = MarkerType.Square,
Fill = OxyColors.LightBlue,
Stroke = OxyColors.DarkBlue,
StrokeThickness = 1
});
model.Annotations.Add(
new PointAnnotation
{
X = 60,
Y = 60,
Text = "Triangle",
Shape = MarkerType.Triangle,
Fill = OxyColors.IndianRed,
Stroke = OxyColors.Black,
StrokeThickness = 1
});
model.Annotations.Add(
new PointAnnotation
{
X = 80,
Y = 60,
Text = "Diamond",
Shape = MarkerType.Diamond,
Fill = OxyColors.ForestGreen,
Stroke = OxyColors.Black,
StrokeThickness = 1
});
model.Annotations.Add(
new PointAnnotation
{
X = 100,
Y = 60,
Text = "Custom",
Shape = MarkerType.Custom,
CustomOutline =
new[]
{
new ScreenPoint(-1, -1), new ScreenPoint(1, 1), new ScreenPoint(-1, 1),
new ScreenPoint(1, -1)
},
Stroke = OxyColors.Black,
Fill = OxyColors.CadetBlue,
StrokeThickness = 1
});
// not filled
model.Annotations.Add(
new PointAnnotation
{
X = 20,
Y = 40,
Text = "Cross",
Shape = MarkerType.Cross,
Stroke = OxyColors.IndianRed,
StrokeThickness = 1
});
model.Annotations.Add(
new PointAnnotation
{
X = 40,
Y = 40,
Text = "Plus",
Shape = MarkerType.Plus,
Stroke = OxyColors.Navy,
StrokeThickness = 1
});
model.Annotations.Add(
new PointAnnotation
{
X = 60,
Y = 40,
Text = "Star",
Shape = MarkerType.Star,
Stroke = OxyColors.DarkOliveGreen,
StrokeThickness = 1
});
return model;
}
[Example("PointAnnotation - text alignments")]
public static PlotModel PointAnnotationTextAlignment()
{
var model = new PlotModel { Title = "PointAnnotation - text alignments" };
model.Axes.Add(new LinearAxis { Position = AxisPosition.Bottom, Minimum = -50, Maximum = 50 });
model.Axes.Add(new LinearAxis { Position = AxisPosition.Left, Minimum = -50, Maximum = 50 });
for (var ha = -1; ha <= 1; ha++)
{
var h = (HorizontalAlignment)ha;
for (var va = -1; va <= 1; va++)
{
var v = (VerticalAlignment)va;
model.Annotations.Add(
new PointAnnotation
{
X = ha * 20,
Y = va * 20,
Size = 10,
Text = h + "," + v,
TextHorizontalAlignment = h,
TextVerticalAlignment = v
});
}
}
return model;
}
}
}
Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

OxyPlot 是一个用于数据可视化的类库,支持多种图表类型,包括折线图、柱状图和饼图等,并具有高度可定制化的特点。 支持跨平台开发,适用于 Windows、macOS 和 Linux,并且可以与多种 C# UI 框架(如 Windows Forms 和 WPF)无缝集成。 通过使用 OxyPlot可以轻松实现数据可视化功能,帮助用户更好地理解和分析数据。
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tk-7/oxyplot.git
git@gitee.com:tk-7/oxyplot.git
tk-7
oxyplot
oxyplot
master
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /