一、PlotModel

1、构造函数中设置的属性

public PlotModel()
{
this.Axes = new ElementCollection(this); //坐标轴集合;
this.Series = new ElementCollection(this); //线条集合;
this.Annotations = new ElementCollection(this); //注解;
this.Legends = new ElementCollection(this); //图例;
this.PlotType = PlotType.XY; //坐标系类型; this.PlotMargins = new OxyThickness(double.NaN); //外边距
this.Padding = new OxyThickness(8); //内边距 this.Background = OxyColors.Undefined; //图表背景
this.PlotAreaBackground = OxyColors.Undefined; //图表区域背景 this.TextColor = OxyColors.Black; //图表内的字体颜色(标题、图例、注解、坐标轴)
this.TitleColor = OxyColors.Automatic; //标题字体颜色
this.SubtitleColor = OxyColors.Automatic; //子标题字体颜色 this.DefaultFont = "Segoe UI"; //默认字体
this.DefaultFontSize = 12; //默认字体大小 this.TitleToolTip = null; //标题提示
this.TitleFont = null; //标题字体
this.TitleFontSize = 18; //标题字体大小
this.TitleFontWeight = FontWeights.Bold; //标题字重
this.SubtitleFont = null; //子标题字体
this.SubtitleFontSize = 14; //子标题字体大小
this.SubtitleFontWeight = FontWeights.Normal; //子标题字重
this.TitlePadding = 6; //标题内边距
this.ClipTitle = true; //是否裁剪标题
this.TitleClippingLength = 0.9; //标题裁剪矩形长度 this.PlotAreaBorderColor = OxyColors.Black; //图表区域边框颜色
this.PlotAreaBorderThickness = new OxyThickness(1); //图表区域边框大小
this.EdgeRenderingMode = EdgeRenderingMode.Automatic; //边角渲染模式 this.AssignColorsToInvisibleSeries = true; //是否自动分配颜色给不可见的线条
this.IsLegendVisible = true; //图例是否可见(要使用图例则必须设置线条标题)
//默认颜色集合
this.DefaultColors = new List
{
OxyColor.FromRgb(0x4E, 0x9A, 0x06),
OxyColor.FromRgb(0xC8, 0x8D, 0x00),
OxyColor.FromRgb(0xCC, 0x00, 0x00),
OxyColor.FromRgb(0x20, 0x4A, 0x87),
OxyColors.Red,
OxyColors.Orange,
OxyColors.Yellow,
OxyColors.Green,
OxyColors.Blue,
OxyColors.Indigo,
OxyColors.Violet
}; this.AxisTierDistance = 4.0; //坐标轴刻度距离
}

其他属性

RenderingDecorator  //渲染装饰器
Subtitle //子标题
Title //标题
TitleHorizontalAlignment //标题和子标题的水平对齐方式

只读属性

ActualPlotMargins   //实际图表边距
PlotView //图表视图
PlotBounds //图表边界
Width ​ //图表宽
Height //图表高
PlotAndAxisArea //包含图表和坐标轴的区域
PlotArea //图表区(不包含坐标轴和图例)
TitleArea //标题区域
DefaultAngleAxis //默认角轴
DefaultMagnitudeAxis //默认级轴
DefaultXAxis //默认X轴
DefaultYAxis //默认Y轴
DefaultColorAxis //默认颜色轴

二、Axis

1、构造函数中设置的属性

protected Axis()
{
this.Position = AxisPosition.Left; //坐标轴位置
this.PositionTier = 0; //坐标轴离图表的距离
this.IsAxisVisible = true; //坐标轴是否显示
this.Layer = AxisLayer.BelowSeries; //坐标轴层级 this.ViewMaximum = double.NaN; //视图最大值(用于缩放和平移时)
this.ViewMinimum = double.NaN; //视图最小值 this.AbsoluteMaximum = double.MaxValue; //坐标轴绝对最大值(数据值范围)(不可缩放和平移超出此限制)
this.AbsoluteMinimum = double.MinValue; //坐标轴绝对最小值 this.Minimum = double.NaN; //坐标轴固定范围最小值
this.Maximum = double.NaN; //坐标轴固定范围最大值
this.MinorStep = double.NaN; //辅刻度线间隔
this.MajorStep = double.NaN; //主刻度线间隔
this.MinimumMinorStep = 0; //辅刻度线间隔最小值
this.MinimumMajorStep = 0; //主刻度线间隔最小值 this.MinimumPadding = 0.01; //最小值额外空间(0.01表示1%)(设置了Minimum则此处无效)
this.MaximumPadding = 0.01; //最大值额外空间
this.MinimumRange = 0; //最小范围(ActualMaximum-ActualMinimum > MinimumRange)
this.MaximumRange = double.PositiveInfinity; //最大范围(ActualMaximum-ActualMinimum < MinimumRange)
this.MinimumDataMargin = 0; //最小值的屏幕空间数据边距
this.MaximumDataMargin = 0; //最大值的屏幕空间数据边距
this.MinimumMargin = 0; //最小值的屏幕空间边距
this.MaximumMargin = 0; //最大值的屏幕空间边距 this.TickStyle = TickStyle.Outside; //刻度样式
this.TicklineColor = OxyColors.Black; //刻度线颜色
this.MinorTicklineColor = OxyColors.Automatic; //辅刻度线颜色 this.AxislineStyle = LineStyle.None; //坐标轴线样式
this.AxislineColor = OxyColors.Black; //坐标轴线颜色
this.AxislineThickness = 1.0; //坐标轴线粗细 this.MajorGridlineStyle = LineStyle.None; //主网格线样式
this.MajorGridlineColor = OxyColor.FromArgb(0x40, 0, 0, 0); //主网格线颜色
this.MajorGridlineThickness = 1; //主网格线粗细 this.MinorGridlineStyle = LineStyle.None; //辅网格线样式
this.MinorGridlineColor = OxyColor.FromArgb(0x20, 0, 0, 0x00); //辅网格线颜色
this.MinorGridlineThickness = 1; //辅网格线粗细 this.ExtraGridlineStyle = LineStyle.Solid; //额外网格线样式
this.ExtraGridlineColor = OxyColors.Black; //额外网格线颜色
this.ExtraGridlineThickness = 1; //额外网格线粗细 this.MinorTickSize = 4; //辅刻度大小
this.MajorTickSize = 7; //主刻度大小 this.StartPosition = 0; //坐标轴在图表区的起点(0-1)
this.EndPosition = 1; //坐标轴在图表区的终点(0-1) this.TitlePosition = 0.5; //标题位置(0-1)
this.TitleFormatString = "{0} [{1}]"; //标题格式化字符串(0代表Title,1代表Unit)
this.TitleClippingLength = 0.9; //标题长度(0-1)
this.TitleColor = OxyColors.Automatic; //标题颜色
this.TitleFontSize = double.NaN; //标题字体大小
this.TitleFontWeight = FontWeights.Normal; //标题字重
this.ClipTitle = true; //是否截断标题 this.Angle = 0; //坐标轴标签角度 this.IsZoomEnabled = true; //是否允许缩放
this.IsPanEnabled = true; //是否允许平移 this.FilterMinValue = double.MinValue; //可显示的最小值(小等于该值将不会显示)
this.FilterMaxValue = double.MaxValue; //可显示的最大值(大等于该值将不会显示)
this.FilterFunction = null; //过滤方法 this.IntervalLength = 60; //主刻度划分份数 this.AxisDistance = 0; //坐标轴和图表的距离
this.AxisTitleDistance = 4; //坐标轴标题和标签的距离
this.AxisTickToLabelDistance = 4; //坐标轴刻度和标签的距离 this.DataMaximum = double.NaN; //数据最大值
this.DataMinimum = double.NaN; //数据最小值
}

2、其它属性

CropGridlines           //是否在开始和结束位置裁切与坐标轴垂直的网格线
ExtraGridlines //额外的网格线
Key //坐标轴的键
LabelFormatter //标签格式化方法
PositionAtZeroCrossing //是否放置在相关坐标的零交点
StringFormat //格式化字符串
Title //坐标轴标题
TitleFont //标题字体
Unit //单位
UseSuperExponentialFormat //是否使用上标指数格式

3、只读属性

ActualMajorStep         //实际主步长
ActualMaximum //实际最大值
ActualMinimum //实际最小值
ClipMaximum //已显示的最大值(由ActualMaximum和MaximumDataMargin决定)
ClipMinimum //已显示的最小值(由ActualMinimum和MinimumDataMargin决定)
ActualMinorStep //实际辅步长
ActualStringFormat //实际被使用的格式字符串
ActualTitle //实际标题
IsReversed //是否被反转(StartPosition > EndPosition)
Offset //偏移(用于在数据和屏幕坐标间转换)
Scale //比例因子(用于在数据和屏幕坐标间转换的换算系数)
ScreenMax //最大端的屏幕坐标
ScreenMin //最小端的屏幕坐标
DesiredMargin //期望边距

三、Series

Background          //背景色
IsVisible //是否可见
Title //标题
LegendKey //对应的图例的键
SeriesGroupName //分组名称
RenderInLegend //是否在图例中显示
TrackerFormatString //Tracker格式化字符串
TrackerKey //对应的Tracker的键

四、LegendBase

Key                 //键
IsLegendVisible //是否可见
LegendOrientation //图例的方向(如果图例被放在图表的左边或者右边,水平方向会转为垂直方向)
LegendPadding //图例内边距
LegendSymbolLength //图例标志的长度(默认16)
LegendSymbolMargin //图例标志外边距(标志和文字的距离)
LegendSymbolPlacement //图例标志位置
LegendTitle //图例标题
LegendTitleColor //图例标题颜色
LegendTitleFont //图例标题字体
LegendTitleFontSize //图例标题字体大小
LegendTitleFontWeight //图例标题字重
LegendArea //图例区域
LegendSize //图例尺寸
LegendBackground //图例背景色
LegendBorder //图例边框色
LegendBorderThickness //图例边框粗细
LegendColumnSpacing //图例列的间距(只针对垂直方向)
LegendFont //图例字体
LegendFontSize //图例字体大小
LegendTextColor //图例字体颜色
LegendFontWeight //图例字体字重
LegendItemAlignment //图例项对齐方式
LegendItemOrder //图例项排序
LegendItemSpacing //水平排列时图例项的空间
LegendLineSpacing //图例项垂直间距
LegendMargin //图例外边距
LegendMaxWidth //图例最大宽度
LegendMaxHeight //图例最大高度
LegendPlacement //图例摆放位置(内和外)
LegendPosition //图例位置
AllowUseFullExtent //图例放在外面时是否允许使用图表的完整extent
ShowInvisibleSeries //是否显示不可见的序列数据的图例

五、Annotation

Layer               //注解渲染层(默认为AboveSeries)
XAxis //X轴
XAxisKey //X轴的键
YAxis //Y轴
YAxisKey //Y轴的键
ClipByXAxis //是否由X轴范围裁剪
ClipByYAxis //是否由Y轴范围裁剪

原文

OxyPlot公共属性一览的更多相关文章

  1. 【转】使用Web墨卡托辅助球体切片方案的地图公共属性

    原文链接:https://doc.arcgis.com/en/data-appliance/6.1/reference/common-attributes.htm 使用Web墨卡托辅助球体切片方案的地 ...

  2. 解决类型“System.Web.UI.UpdatePanel”不具有名为“Gridview”的公共属性,

    类型“system.web.ui.updatepanel” 不具有名为“XXX”的公共属性,其实原因很简单.就是少了一个<ContentTemplate></ContentTempl ...

  3. AJAX - 类型“System.Web.UI.UpdatePanel”不具有名为“FileUpload”的公共属性。

    类型“system.web.ui.updatepanel” 不具有名为“***”的公共属性,其实原因很简单.就是少了一个<ContentTemplate></ContentTempl ...

  4. Effective Java 第三版——16.在公共类中使用访问方法而不是公共属性

    Tips <Effective Java, Third Edition>一书英文版已经出版,这本书的第二版想必很多人都读过,号称Java四大名著之一,不过第二版2009年出版,到现在已经将 ...

  5. 【Android】7.1 布局控件常用的公共属性

    分类:C#.Android.VS2015: 创建日期:2016-02-10 一.简介 Android应用程序中的布局控件都是容器控件,用于控制子元素的排列和放置方式.Android提供的布局控件有: ...

  6. javascript 私有化属性,和公共属性

    function TestClassA(name, number) { this.name = name; //public this.number = number; //public var ac ...

  7. Mybatis自动生成的BO对象继承公共父类(BO中过滤掉公共属性)

    使用mybatis的代码生成工具:mybatis-generator,如果自动生成的BO都有公共的属性,则可以指定这些BO继承父类(父类中定义公共属性) 1.定义父类 注意:属性public,不要使用 ...

  8. Xamarin.Forms XAML控件的公共属性

    Xamarin.Forms XAML控件的公共属性   Xamarin.Forms XAML控件有很多.通过官网API,可以查看每个控件的属性.但是官网只给出了控件的特有属性,而公共属性没有列出.所以 ...

  9. 根据数据库记录动态生成C#类及其公共属性并动态执行的解决方案

    原文:根据数据库记录动态生成C#类及其公共属性并动态执行的解决方案 问题: C#中,想动态产生这么一个类: public class StatisticsData    {        public ...

  10. layui常用的公共属性

    这个是今天看官网是觉得应该很有用的东西,记录在此.位置位于官网页面元素下的HTML规范:常用公共属性中.解释如下: lay-skin=" " 定义相同元素的不同风格,如checkb ...

随机推荐

  1. 最强AI语音克隆和文本配音工具!与真人无异,CosyVoice下载介绍

    CosyVoice是一个大规模预训练语言模型,深度融合文本理解和语音生成的一项新型语音合成技术,能够精准解析并诠释各类文本内容,将其转化为宛如真人般的自然语音 CosyVoice采用了总共超15万小时 ...

  2. C# RSA加密解密及RSA签名和验证

    1.RSA加密解密 (1)获取密钥,这里是产生密钥,实际应用中可以从各种存储介质上读取密钥 (2)加密 (3)解密 2.RSA签名和验证 (1)获取密钥,这里是产生密钥,实际应用中可以从各种存储介质上 ...

  3. 亚马逊 vpc 子网 路由表 互联网网关 弹性ip

    创建vpc,子网,路由表,互联网网关,弹性ip等网络资源 vpc和子网 创建互联网网关 附加到vpc 创建路由表 路由表编辑路由 此路由通过这个网关出去 编辑子网关联 保存关联 有关云主机 创建属于那 ...

  4. Jmeter函数助手22-V

    V函数用于执行变量名.嵌套函数.类似eval函数 Name of variable (may include variable and function references):必填,填入变量名称或者 ...

  5. Python的GDAL库绘制多波段、长时序遥感影像时间曲线图

      本文介绍基于Python中的gdal模块,对大量长时间序列的栅格遥感影像文件,绘制其每一个波段中.若干随机指定的像元的时间序列曲线图的方法.   在之前的文章中,我们就已经介绍过基于gdal模块, ...

  6. 2024年是否是人形机器人的元年 —— 继OpenAI/Google/特斯拉之后黄仁勋也宣布NVIDIA公司的人形机器人项目 —— Groot项目 —— 英伟达公布了人形机器人项目 GR00T

    相关: https://www.youtube.com/watch?v=bMIRhOXAjYk 参考: https://www.thepaper.cn/newsDetail_forward_26730 ...

  7. 智能工业化的关键一环:sim2real的仿真环境设计

    智能工业化,不论是智能机器人技术还是数字孪生技术,都不可避免的要使用的一个技术就是仿真环境技术. 在智能工业化还停留在学术阶段的时候,大家都可以使用一些开源的免费的仿真环境做research,但是到了 ...

  8. 2024 睿抗机器人开发者大赛CAIP-编程技能赛-本科组(省赛)

    2024 睿抗机器人开发者大赛CAIP-编程技能赛-本科组(省赛) RC-u1 热҈热҈热҈ #include<bits/stdc++.h> using namespace std; us ...

  9. springcloud集成grpc(二)

    码云地址:https://gitee.com/lpxs/lp-springcloud.git 有问题可以多沟通:136358344@qq.com. 上一章内容介绍了springboot2集成net.d ...

  10. 瑞芯微 | I2S-音频基础 -1

    最近调试音频驱动,顺便整理学习了一下i2s.alsa相关知识,整理成了几篇文章,后续会陆续更新. 喜欢嵌入式.Li怒晓得老铁可以关注一口君账号. 1. 音频常用术语 名称 含义 ADC(Analog ...