-
Notifications
You must be signed in to change notification settings - Fork 0
/
indexDemo.nim
156 lines (144 loc) · 4.78 KB
/
indexDemo.nim
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
import imgui
# Plots
import LinePlots
import FilledLinePlots
import ShadedPlots
import ScatterPlots
import RealtimePlots
import StairstepPlots
import BarStacks
import BarPlots
import BarGroups
import ErrorBars
import StemPlots
import InfiniteLines
#import PieCharts
import HeatMaps
#import Histogram
import DigitalPlots
#import Images
import MarkersAndText
import NaNValues
#
import SimplePlots
import SimpleImGui
# SubPlots
import Sizing
import ItemSharing
import AxisLinking
import Tables
# Axes
import LogScale
import SymmetricLogScale
import CustomScale
import MultipleAxes
import EqualAxes
import AutoFittingData
import LinkedAxes
#import AxisConstraints
import TimeScale
import TickLabels
# Tools
import DragPoints
import DragLines
import DragRects
import Tags
#import ColormapWidgets
#import LegendPopups
#import LegendOptions
import Annotations
import OffsetAndStride
import Querying
import DragAndDrop
# Custom
import CustomStyles
import CustomDataAndGetters
#import CustomPlottersAndTooltips
import CustomRendering
# Config
import Config
# Help
import Help
#---------------
# demoHeaeder()
#---------------
proc demoHeader(label: string, demo: proc()) =
if igTreeNodeEx(label.cstring):
demo()
igTreePop()
#------------------
# imPlotDemoTabs()
#------------------
proc imPlotDemoTabs*() =
if igBeginTabBar("ImPlotDemoTabs"):
defer: igEndTabBar()
if (igBeginTabItem("Plots")):
defer: igEndTabItem()
demoHeader("Line Plots", demo_LinePlots)
demoHeader("Filled Line Plots", demo_FilledLinePlots)
demoHeader("Shaded Plots", demo_ShadedPlots)
demoHeader("Scatter Plots", demo_ScatterPlots)
demoHeader("RealTime Plots",demo_RealtimePlots)
demoHeader("Stairstep Plots",demo_StairstepPlots)
demoHeader("Bar Plots", demo_BarPlots)
demoHeader("Bar Groups", demo_BarGroups)
demoHeader("Bar Stacks",demo_BarStacks)
demoHeader("Error Bars", demo_ErrorBars)
demoHeader("Stem Plots##", demo_StemPlots)
demoHeader("Infinite Lines" , demo_InfiniteLines)
#demoHeader("Pie Charts", demo_PieCharts)
demoHeader("HeatMaps", demo_Heatmaps)
#demoHeader("Histogram", demo_Histogram)
#demoHeader("Histogram2D", demo_Histogram2D)
demoHeader("Digital Plots", demo_DigitalPlots)
#demoHeader("Images" , demo_Images)
demoHeader("Markers and Text" , demo_MarkersAndText)
demoHeader("Nan Values" , demo_NaNValues)
#
demoHeader("Simple Plots", demo_SimplePlot)
if igBeginTabItem("Subplots"):
defer: igEndTabItem()
demoHeader("Sizing", demo_Subplots_Sizing)
demoHeader("Item Sharing", demo_Subplots_ItemSharing)
demoHeader("Axis Linking", demo_Subplots_AxisLinking)
demoHeader("Tables", demo_Subplots_Tables)
if igBeginTabItem("Axes"):
defer: igEndTabItem()
demoHeader("Log Scale", demo_Axes_LogScale)
demoHeader("Symmetric Log Scale", demo_Axes_SymmetricLogScale)
demoHeader("Time Scale", demo_Axes_TimeScale)
demoHeader("Custom Scale", demo_Axes_CustomScale)
demoHeader("Multiple Axes", demo_Axes_MultipleAxes)
demoHeader("Tick Labels", demo_Axes_TickLabels)
demoHeader("Linked Axes", demo_Axes_LinkedAxes)
#demoHeader("Axis Constraints", demo_Axes_AxisConstraints)
demoHeader("Equal Axes", demo_Axes_EqualAxes)
demoHeader("Auto-Fitting Data", demo_Axes_AutoFittingData)
if igBeginTabItem("Tools"):
defer: igEndTabItem()
demoHeader("Offset and Stride", demo_Tools_OffsetAndStride)
demoHeader("Drag Points", demo_Tools_DragPoints)
demoHeader("Drag Lines", demo_Tools_DragLines)
demoHeader("Drag Rects", demo_Tools_DragRects)
demoHeader("Querying", demo_Tools_Querying)
demoHeader("Annotations", demo_Tools_Annotations)
demoHeader("Tags", demo_Tools_Tags)
demoHeader("Drag and Drop", demo_Tools_DragAndDrop)
#demoHeader("Legend Options", demo_Tools_LegendOptions)
#demoHeader("Legend Popups", demo_Tools_LegendPopups)
#demoHeader("Colormap Widgets", demo_Tools_ColormapWidgets)
if igBeginTabItem("Custom"):
defer: igEndTabItem()
demoHeader("Custom Styles", demo_Custom_CustomStyles)
demoHeader("Custom Data and Getters", demo_Custom_CustomDataAndGetters)
demoHeader("Custom Rendering", demo_Custom_CustomRendering)
#demoHeader("Custom Plotters and Tooltips", demo_Custom_CustomPlottersAndTooltips)
if igBeginTabItem("Config"):
defer: igEndTabItem()
demo_Config_Config()
if igBeginTabItem("Help"):
defer: igEndTabItem()
demo_Help_Help()
if igBeginTabItem("ImGui"):
defer: igEndTabItem()
demoHeader("Simple demo", demo_SimpleImGui)