1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-11-23 02:38:53 -05:00
Commit Graph

80 Commits

Author SHA1 Message Date
Evan Pezent 63d5ed94b7
Features/item flags (#319)
* add PlotBarGroups and layout some plans for flags

* exprimentin

* item flags added to each plotter

* rendering templates

* rendering templates

* item flags and axis scales

* item flags

* template markers

* markers

* benching

* buffer

* inline adjust

* inline fix

* dunno

* fix some todos

* tickers

* clean up

* update TODO

* update breaking changes

* demo cleanup

* remove TODO label

* header cleanup
2022-06-18 22:59:32 -05:00
Evan Pezent 86f4dd6e5c use ImFormatString instead of sprintf/snprintf 2022-01-30 10:19:29 -08:00
Evan Pezent 168244e422 replace sprintf with snprintf 2022-01-30 09:54:49 -08:00
Sergey Nenakhov 6659b164fe intel compiler warning fixes (and fastmath in general) 2022-01-23 00:50:18 +01:00
Evan Pezent 4fcc6e01ac fix sizeof(T) in IndexData 2021-12-02 20:54:54 -08:00
Evan Pezent c0da6fea04 add PlotBarGroups 2021-10-24 00:25:46 -07:00
Evan Pezent 6ee1559715
Setup API (#294)
* add new padding algo

* opposite working for y and x

* remove name axis colors

* move title label rendering

* axis dev

* clean up

* pre formatter

* formatter

* changing over to multi x axes

* more multi x changes

* more multi x changes

* more multi x changes

* setup 75% there

* 85% there

* 85% there

* remove query

* update input handling

* input and dnd tweaking

* input testing

* update demo

* setup debug

* setup debug

* bug fixes

* bug fixes

* more debug

* input

* more setup

* setup api almost complete

* setup api almost complete

* more clean up

* cleanup

* final commit before merge
2021-10-19 20:01:06 -07:00
Evan Pezent 5ed9e78676 add #include <immintrin.h> fallback 2021-09-07 20:20:12 -07:00
Evan Pezent 3e96fd7c02
improve indexing, line rendering performance by 45% (#270)
* add IndexData and Indexers

* simplify transformers

* 30% improvement

* moving around

* add TODO.md

* fix bar plot aliasing

* finishup indexing

* remove debug bools
2021-07-30 20:27:02 -07:00
Evan Pezent c8601ac0d5 rev version, fix unused lines 2021-07-29 19:14:13 -07:00
Jeslas Pravin 864ebb90b6
fix: PlotShaded Opposite triangle winding (#269) 2021-07-29 19:09:01 -07:00
Evan Pezent 51930a5ae6 fix imgui backward compat, YAxis[3], and add new demo benchmark option for LineG 2021-07-09 17:39:12 -07:00
Evan Pezent eb40cc908d Merge branch 'master' of https://github.com/epezent/implot 2021-07-07 22:18:51 -07:00
Evan Pezent 389781c31c v0.11 WIP 2021-07-07 22:18:38 -07:00
Evan Pezent 8c1bbf4d8d
Subplots (#203)
* 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

https://github.com/epezent/implot/pull/144#issuecomment-725849368

* 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>
2021-07-07 21:06:15 -07:00
Evan Pezent ab24f756fa make pie plots respond to fits 2021-06-09 11:26:54 -07:00
Evan Pezent e9469cf347 constrain values <= 0 to DBL_MIN for log axes, fix div by zero 2021-06-08 20:31:30 -07:00
Evan Pezent da1bf57136 fix scatter plot non-inclusive culling 2021-06-06 17:16:20 -07:00
omar 450e5b80df
Fix for ImPool change in Dear ImGui version 18303+ (#239) 2021-06-03 11:45:25 -07:00
Evan Pezent 41a0e2c9fe
add ImPlotAxisFlags_RangeFit and ImPlotAxisFlags_Foreground (#200) 2021-03-28 12:59:25 -07:00
epezent 7aab224742 make inline funcs static, add culling to PlotShaded 2021-03-20 21:22:18 -06:00
epezent ccd29a646f rev up to v0.10 2021-03-20 20:45:31 -06:00
epezent eea12d6b4c make PlotHeatmap autoscaling by default 2021-03-19 22:43:03 -06:00
Evan Pezent 1d9381a004
Adds PlotHistogram and PlotHistogram2D, Improves Colormaps and Heatmap (#148) 2021-03-17 07:38:45 -05:00
omar b85a2c0800
Fix for changes in imgui master + fix misuse of ImGui::Value() (#186) 2021-03-16 06:37:45 -05:00
Evan Pezent 6f7bf5f38b
adds PlotVLines and PlotHLines for plotting infinite reference lines (#166) 2021-01-15 01:52:37 -06:00
epezent 5fd1ecdfd7 add ability to fill shaded plot to +/- INFINITY 2021-01-11 13:22:52 -06:00
epezent 24b543839b fix addtickstime definition and heatmap labels 2020-12-03 07:20:55 -06:00
Evan Pezent 40cbe88673
Add ImPlotFlags_Equal and simplify axis-related structs in implot_internal.h (#147)
* prototyping equal axes

* equal proto

* more refactors

* euqal axes almost perfect

* fitting axis equal working

* fitting axis equal working

* finish equal axis
2020-11-15 21:47:06 -06:00
epezent 48c0d6fe38 add legend ctx menu, rev up to 0.9 2020-11-10 08:27:28 -06:00
Edvard Thörnros c942a400e4
IM_NORMALIZE2F_OVER_ZERO -> IMPLOT_NORMALIZE2F_OVER_ZERO (#142)
Avoids warnings when compiling with certain compilers.
2020-11-10 07:42:51 -06:00
epezent 96e0fd9c57 fix crashing caused by legend refactors, add ShowMetricsWindow (WIP) 2020-10-21 10:08:41 -05:00
Evan Pezent 42d93bcdbc
add stairstep plots (#136) 2020-10-19 10:00:03 -05:00
Evan Pezent 587c8b6221
Configurable Legend Locations (#135)
* add support for ISO 8601 timestamps

* clean up work on ISO 8601

* legend location proto

* location docs

* add horizontal legends, and ability to position mouse location

* add ShowAltLegend

* add ShowAltLegend

* default sizing for ShowAltLegend

* finish up legend locations
2020-10-18 23:26:34 -05:00
epezent 28fedd01f9 handle time/log formatting for drag lines and points 2020-09-21 07:09:14 -05:00
epezent 13e430a9e5 add annotation API 2020-09-19 20:54:19 -05:00
epezent fd746c3776 plot image demo 2020-09-17 20:34:37 -05:00
epezent ec8e87561f PlotImage 2020-09-17 11:58:58 -05:00
epezent 04cc84ece0 add HideNextItem 2020-09-15 09:48:46 -05:00
epezent f348c15fde clean up getters 2020-09-15 08:56:58 -05:00
epezent eff5cee895 remove imvec2 and implotpoint getters 2020-09-15 08:38:40 -05:00
epezent 5e0e60b969 test xscale and x0 2020-09-10 15:59:08 -05:00
epezent 4f0a09f14d add xscale and x0 to values* functions 2020-09-09 23:29:29 -05:00
epezent 700a7bab56 add IMPLOT_API macro, confirm DLL linkage working 2020-09-07 20:59:43 -05:00
epezent 75e779c931 finish templetizing API, several optimizations to plotting pipeline, remmove t_float etc from demo 2020-09-07 16:08:59 -05:00
epezent 48cc6e15d6 Merge branch 'master' into templates 2020-09-07 10:54:49 -05:00
epezent 3206209777 add more benchmarks 2020-09-07 10:17:44 -05:00
epezent 8fdeacac54 use different types in demo 2020-09-07 00:33:47 -05:00
epezent 2eeceb3e22 templetize PlotLine, PlotScatter, PlotShaded, PlotBars, PlotBarsH 2020-09-07 00:16:47 -05:00
epezent 930c4b2eb4 initial testing of templates 2020-09-06 22:34:58 -05:00