1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-11-13 22:48:50 -05:00
Commit Graph

269 Commits

Author SHA1 Message Date
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 3109940b46 handle equal axis edge case when user sets x limits 2021-06-06 21:13:40 -07:00
Evan Pezent 4edb1c75b6 fix GetColormapSize 2021-06-06 17:42:00 -07:00
omar 450e5b80df
Fix for ImPool change in Dear ImGui version 18303+ (#239) 2021-06-03 11:45:25 -07:00
Jann 555ff688a8
add appropriate space for X tick labels with newlines (#214)
When painting a graph with densely labeled ticks on the X axis, it may be
necessary to add newlines in the labels to avoid label text overlap.

Reserve appropriate padding space for that.
2021-04-10 09:31:12 -07:00
epezent 04ae3728f8 fix smaplecolormapu32 2021-04-07 20:02:35 -07:00
epezent 27bc59eb43 fix linked axis and auto fitting issue #205 2021-03-30 16:23:21 -07:00
Evan Pezent 41a0e2c9fe
add ImPlotAxisFlags_RangeFit and ImPlotAxisFlags_Foreground (#200) 2021-03-28 12:59:25 -07:00
Evan Pezent ed1baf471a
Adds SetNextPlotFormatX/Y for custom tick label formatting (#198)
* add SetNextPlotFormat

* work on pruning

* finish up fmt
2021-03-25 09:19:00 -06:00
epezent 4b0f9c9495 fix debug build error 2021-03-24 22:28:35 -06:00
epezent ab110ceec8 misc refactors/improvements 2021-03-24 16:35:44 -06:00
epezent e5c457b326 tidy up selection/query code, add new methods 2021-03-23 23:50:02 -06:00
epezent ef6c55cd00 tidy up selection/query code, add new methods 2021-03-23 23:42:26 -06:00
epezent 5db2ba3b22 make plots initially fit to plotted data on first frame 2021-03-20 22:56:47 -06:00
epezent ccd29a646f rev up to v0.10 2021-03-20 20:45:31 -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
epezent 46ea9abab4 improve ShowColormapScale 2021-03-07 12:36:01 -06:00
epezent b958abf459 bandaid for zero formatting issues 2021-03-03 09:10:33 -06:00
Evan Pezent 67e0876f89
Improved Drag and Drop Support (#172)
* prototyping enhanced dnd features

* improve dnd demo using new utils

* dnd stuff

* finish up dnd improvements

* remove unused code, fix timestamps
2021-02-28 18:10:23 -06:00
Preston Cothren 413fb083ad
[#174] DatePicker separate disabled color
Separate disabled color from the selected date to the truly disabled dates in another month. Move setting col/styles after we are done getting them.
2021-01-31 14:51:16 -06:00
Philippe Kehl e64df657b2
render x-axis drag/drop hover (#149)
Co-authored-by: Philippe Kehl <philippe.kehl@fixposition.com>
2021-01-19 19:52:34 -06:00
epezent 6e2499093b add PrimUnreserve to AddTextVertical when the render characters is less than the expected characters (fixes utf8 issues) 2021-01-19 19:42:22 -06:00
Evan Pezent c73509d6d1
make context menus open on single right click, move ImPlotInputMap out of public API (see implot_internal.h) (#170) 2021-01-18 21:49:23 -06:00
Evan Pezent 6f7bf5f38b
adds PlotVLines and PlotHLines for plotting infinite reference lines (#166) 2021-01-15 01:52:37 -06:00
Yan 5b59b47bae
Allow second and third axes to have labels (#163)
* Allow second and third axes to have labels

* Handle both axes in one loop

* fix compiler warnings, add ImPlotAxisFlags_NoLabel

* fix bug when y2 label hidden

Co-authored-by: epezent <epezent@rice.edu>
2021-01-06 09:34:03 -06:00
Yan 9b5adca5f1
Center constant data when fitting. (#154)
Co-authored-by: Yan Zaretskiy <yzaretskiy@stoneridgetechnology.com>
2020-12-04 13:33:44 -06:00
Philippe Kehl 4af202a988
fix compiler warning re. 'if does not guard...' (#152)
Co-authored-by: Philippe Kehl <philippe.kehl@fixposition.com>
2020-12-04 06:46:34 -06:00
epezent b369d62f86 remove inline on LabelTickTime 2020-12-03 23:47:27 -06:00
epezent fa10a03a53 add ImPlotStyleVar_FitPadding 2020-12-03 23:27:38 -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
Nick Postma ad29c9a046
Option for not rendering the title of the graph. (#140)
* Update implot.h

* Update implot.cpp

Added the flag implementation of NoTitle. I needed a smal form factor barchart.

* Update implot.cpp

Same codestyle as original.

* Update implot.h
2020-11-10 07:45:25 -06:00
epezent 96e0fd9c57 fix crashing caused by legend refactors, add ShowMetricsWindow (WIP) 2020-10-21 10:08:41 -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
Evan Pezent f9a15a7147
Add Option for ISO 8601 Date Formatting (#132)
* add support for ISO 8601 timestamps

* clean up work on ISO 8601
2020-10-14 22:07:27 -05:00
Victor Bombi b5cf8b8431 Addition of va_list V versions of Annotate and AnnotateClamped 2020-10-11 09:53:28 +02:00
epezent 8a3ccf0a44 remove BustItemCache from SetColormap and add ShowColormapSelector 2020-10-11 00:38:18 -05:00
Evan Pezent da5b4ab8d3 fix compile issue with latest ImGui 2020-09-28 16:38:27 -05:00
epezent 28fedd01f9 handle time/log formatting for drag lines and points 2020-09-21 07:09:14 -05:00
epezent 1911116b3b remove ImPlotStyleVar_AnnotationOffset 2020-09-19 21:25:44 -05:00
epezent 13e430a9e5 add annotation API 2020-09-19 20:54:19 -05:00
epezent a7ae1bca53 rename and refine draglines and dragpoints 2020-09-19 12:33:33 -05:00
epezent 9c4ef16696 change function names, fix issues with scroll 2020-09-18 22:05:43 -05:00
epezent bbbf4e2a42 anchor point prototype 2020-09-18 13:37:55 -05:00
epezent 297c69dae8 fix selection over guides 2020-09-18 08:22:06 -05:00
epezent 0e9ceb6bc0 prevent guides drag outside plot 2020-09-18 00:07:26 -05:00
epezent 4ed7d01637 finish guides 2020-09-17 23:31:16 -05:00
epezent c6aff1362c Merge branch 'master' into guides 2020-09-17 21:02:19 -05:00
ozlb 9e927df91e
ImPlotTimeFmt_HrMinSMs time format
ImPlotTimeFmt_HrMinSMs,        // 7:21:29.428pm (19:21:29.428)
2020-09-18 00:35:14 +02:00