Repository navigation
Expand file tree
/
Copy pathAxes.cs
More file actions
61 lines (52 loc) · 1.68 KB
/
Copy pathAxes.cs
File metadata and controls
61 lines (52 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
using System.Collections.Generic;
using Newtonsoft.Json;
namespace MatplotlibCS
{
/// <summary></summary>
[JsonObject(Title = "axes")]
public class Axes
{
#region .ctor
/// <summary>
/// Конструктор
/// </summary>
/// <param name="index"></param>
/// <param name="xtitle">Заголовок оси x</param>
/// <param name="ytitle">Заголовок оси y</param>
public Axes(int index = 1, string xtitle = "", string ytitle = "")
{
this.Index = index;
this.XTitle = xtitle;
this.YTitle = ytitle;
PlotItems = new List<PlotItem>();
}
#endregion
#region Properties
/// <summary>
/// Заголовок осей
/// </summary>
[JsonProperty(PropertyName = "title", DefaultValueHandling = DefaultValueHandling.Include)]
public string Title { get; set; }
/// <summary>
/// Подпись к оси X
/// </summary>
[JsonProperty(PropertyName = "xtitle")]
public string XTitle { get; set; }
/// <summary>
/// Подпись к оси Y
/// </summary>
[JsonProperty(PropertyName = "ytitle")]
public string YTitle { get; set; }
/// <summary>
/// Индекс subplot-а на figure
/// </summary>
[JsonProperty(PropertyName = "index")]
public int Index { get; set; } = 1;
/// <summary>
/// Lines and other plot items
/// </summary>
[JsonProperty(PropertyName = "items")]
public List<PlotItem> PlotItems { get; set; }
#endregion
}
}