You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* SubPlots: Y axis padding over multiple plots
* Align Plots Group
new signature ID, ImPool to store padding data, demo
* Align plots orientation (vertically, horizontally)
vertical will align Y axis, horizontal will align X axis.
*signature changed
* ImPlotOrientation used as flag for 2D grids of aligned plots
#144 (comment)
* AlignPlots updates to merge with v.0.9
* Sync to v0.9 20210127
* subplots proto
* make link flags work
* stuff
* add multi-line centered titles
* subplots work
* flag ideas
* better subplot positioning
* resizable subplots
* subplot shared items
* subplot ratios
* some cleanup and refactor
* some cleanup and refactor
* refactors and demo reorganization
* context menus...almost done!
* context menus, bug fixes
* active id
* make implot use ButtonBehavior throughout
* bug fixes
* more bug fixes
* tweaks
* fix id issue
* finish work on subplots
Co-authored-by: ozlb <ozlb@users.noreply.github.com>
ImPlotSubplotFlags_NoTitle = 1 << 0, // the subplot title will not be displayed (titles are also hidden if preceeded by double hashes, e.g. "##MySubplot")
110
+
ImPlotSubplotFlags_NoLegend = 1 << 1, // the legend will not be displayed (only applicable if ImPlotSubplotFlags_ShareItems is enabled)
111
+
ImPlotSubplotFlags_NoMenus = 1 << 2, // the user will not be able to open context menus with right-click
112
+
ImPlotSubplotFlags_NoResize = 1 << 3, // resize splitters between subplot cells will be not be provided
113
+
ImPlotSubplotFlags_NoAlign = 1 << 4, // subplot edges will not be aligned vertically or horizontally
114
+
ImPlotSubplotFlags_ShareItems = 1 << 5, // items across all subplots will be shared and rendered into a single legend entry
115
+
ImPlotSubplotFlags_LinkRows = 1 << 6, // link the y-axis limits of all plots in each row (does not apply auxiliary y-axes)
116
+
ImPlotSubplotFlags_LinkCols = 1 << 7, // link the x-axis limits of all plots in each column
117
+
ImPlotSubplotFlags_LinkAllX = 1 << 8, // link the x-axis limits in every plot in the subplot
118
+
ImPlotSubplotFlags_LinkAllY = 1 << 9 , // link the y-axis limits in every plot in the subplot (does not apply to auxiliary y-axes)
119
+
ImPlotSubplotFlags_ColMajor = 1 << 10// subplots are added in column major order instead of the default row major order
120
+
};
121
+
105
122
// Plot styling colors.
106
123
enum ImPlotCol_ {
107
124
// item styling colors
@@ -301,7 +318,7 @@ struct ImPlotStyle {
301
318
ImVec2 AnnotationPadding; // = 2,2 text padding around annotation labels
302
319
ImVec2 FitPadding; // = 0,0 additional fit padding as a percentage of the fit extents (e.g. ImVec2(0.1f,0.1f) adds 10% to the fit extents of X and Y)
303
320
ImVec2 PlotDefaultSize; // = 400,300 default size used when ImVec2(0,0) is passed to BeginPlot
304
-
ImVec2 PlotMinSize; // = 300,225 minimum size plot frame can be when shrunk
321
+
ImVec2 PlotMinSize; // = 200,150 minimum size plot frame can be when shrunk
305
322
// style colors
306
323
ImVec4 Colors[ImPlotCol_COUNT]; // Array of styling colors. Indexable with ImPlotCol_ enums.
// Consider using Begin/EndSubplots first. They are more feature rich and
659
+
// accomplish the same behaviour by default. The functions below offer lower
660
+
// level control of plot alignment.
661
+
662
+
// Align axis padding over multiple plots in a single row or column. If this function returns true, EndAlignedPlots() must be called. #group_id must be unique.
0 commit comments