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

297 Commits

Author SHA1 Message Date
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
epezent 13927c608d add public API for horizontal and vertical guide lines 2020-09-17 09:58:33 -05:00
Max Thrun 2ac10e73b0 check for HoveredIdPreviousFrame incase there is another widget on top of us added via SetItemAllowOverlap, if the previously hovered id does not match our id set our hover flags to false 2020-09-16 21:47:49 -07:00
epezent 04cc84ece0 add HideNextItem 2020-09-15 09:48:46 -05:00
epezent 117816d4e1 add option for 24 hour clock 2020-09-12 10:25:47 -05:00
epezent 5e0e60b969 test xscale and x0 2020-09-10 15:59:08 -05:00
epezent 04dc2c6be9 fix bugs in date picker 2020-09-09 19:17:19 -05:00
epezent 3cdf7add04 finish date/time picker 2020-09-09 09:00:50 -05:00
epezent 729bd762cc date picker finished, time picker working 2020-09-08 23:47:02 -05:00
epezent 0154c02a37 prototyping date picker widget 2020-09-08 00:56:00 -05:00
epezent c0409ff4ff fix compiler warnings on macos 2020-09-07 21:30:57 -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 3206209777 add more benchmarks 2020-09-07 10:17:44 -05:00
epezent 902cf44234 rev up to 0.8 2020-09-06 21:20:38 -05:00
epezent d8610c33c7 trim white space 2020-09-06 21:08:25 -05:00
epezent 2b46c3eac3 fix axis constraints 2020-09-06 21:04:36 -05:00
epezent 2206af8c1e merge linked axes 2020-09-06 16:09:00 -05:00
epezent 901f0558b1 fix up time format demo 2020-09-06 14:48:16 -05:00
epezent 6f3f43c815 ImPlotAxisFlags_NoDecorations 2020-09-06 01:38:18 -05:00
epezent be6e1c2d2e invert ImPlotAxisFlags 2020-09-06 01:32:15 -05:00
epezent 2dcdfc519a invert ImPlotFlags 2020-09-06 00:42:03 -05:00
epezent defc529219 time-axes complete 2020-09-06 00:06:51 -05:00
epezent d3ea373cc7 convert to ImPlotTime usage 2020-09-05 12:25:44 -05:00
epezent f92625a462 add ImPlotTime struct 2020-09-05 09:38:08 -05:00
epezent 61e6b5118e tidy up time-axes so far 2020-09-04 23:30:45 -05:00
epezent e0450d00af improve axis constraining 2020-09-04 19:33:10 -05:00
epezent fe552f25f0 make time override log 2020-09-04 13:36:56 -05:00
epezent c70eee5701 make time override log 2020-09-04 13:28:55 -05:00
epezent 8d74440765 time axes nearly finished except for a few bugs and oddities 2020-09-04 13:13:45 -05:00
epezent 0c76ffe81e time-axes almost working! 2020-09-03 23:27:56 -05:00
epezent fc1962cdef linked axes prototype 2020-09-03 09:19:34 -05:00
epezent e5f1cf4bdf fix bug in FormatTime 2020-09-03 08:00:36 -05:00
epezent 5f77a9bb58 first pass at time formatted axes 2020-09-02 23:30:32 -05:00
epezent 071503b43a extend previous commit based on #50 for vertical lines (e.g. for x-axis) 2020-09-02 16:09:57 -05:00
epezent 70f56d8a40 add quick fix for fitting data when data is a flat line (see #50) 2020-09-02 16:02:51 -05:00
epezent bb2ff2aea7 increment version, add GetMarkerName 2020-09-02 15:55:35 -05:00
epezent c8b21a6d36 add stems and fix bug with marker size 2020-09-02 09:17:18 -05:00
epezent 9d9b145548 tidy up implot_internal.h 2020-09-01 21:01:00 -05:00
epezent 9e82be5bff tidy up legend context menus 2020-09-01 01:14:09 -05:00
Peter Johnson 8cbbfc241f
Add BeginPopupContextLegend and EndPopup
EndPopup is just a wrapper around ImGui::EndPopup.

BeginPopupContextLegend provides easy-to-use context menus for legend
entries along the lines of ImGui::BeginPopupContextItem.
2020-08-31 22:08:52 -07:00
epezent fb19e76443 tidy up legend DND 2020-08-31 23:58:15 -05:00
epezent fa2c704bb2 Merge branch 'legend-dnd' of https://github.com/PeterJohnson/implot into PeterJohnson-legend-dnd 2020-08-31 23:28:40 -05:00
epezent 71bf19b4c4 finish up item styling changes 2020-08-31 23:23:48 -05:00
Peter Johnson e783825e4b
Add BeginLegendDragDropSource
This uses pieces of the ImGui BeginDragDropSource implementation to
provide a method to drag from a legend entry.

EndDragDropSource is just a wrapper around ImGui::EndDragDropSource.
2020-08-31 20:38:14 -07:00
epezent 3e21d841a2 migrate PlotEx functinos to use Begin/EndItem 2020-08-30 21:03:11 -05:00
epezent dfc77f2ba4 add item styling API 2020-08-30 17:12:36 -05:00
epezent fce58ee075 add ImPlotScale, ImPlotNextItemData, BeginItem EndItem, and more 2020-08-30 11:03:25 -05:00
epezent 02e3226e51 more fixes for box selection and key modifiers 2020-08-29 08:31:34 -05:00
epezent b198a8b2bc fix plot selection, remove ability to combine marker styles 2020-08-28 17:11:36 -05:00
epezent b84e74b885 add global AA variable to ImPlotStyle 2020-08-25 22:47:03 -05:00
epezent 2880ae8414 Merge branch 'master' of https://github.com/epezent/implot 2020-08-25 21:59:45 -05:00
epezent cac7a61235 tick abstraction 2020-08-25 21:59:43 -05:00
epezent 0111edcd76 fix aux y axes for Light style 2020-08-24 13:59:57 -05:00
epezent acb69ab410 add Configuration section to demo 2020-08-24 11:48:00 -05:00
epezent 2f139f8a99 add StyleColorsX 2020-08-24 11:06:43 -05:00
epezent 30ffe79d1d add StyleColorsX 2020-08-24 11:06:29 -05:00
epezent 044ac47f51 fix context menu axis drag 2020-08-24 09:04:45 -05:00
epezent 9f851e700b Merge branch 'RecoverAxesLimits' of https://github.com/jaswantp/implot into jaswantp-RecoverAxesLimits 2020-08-24 08:59:52 -05:00
epezent 1b4a2049a7 fix vertical text scaling and offset 2020-08-24 08:51:03 -05:00
jaswantp b2db7d11ec
Recover from almost equal axis limits.
When state.Axis->Range.Size() == DBL_EPSILON, the 'speed' to DragFloat is about 1.0e-14 which makes it virtually impossible to recover from that state!
The fix proposes to detect and adjust the drag_speed accordingly.
2020-08-24 15:18:29 +02:00
epezent 1884d3d7d5 overhaul styling 2020-08-23 23:45:42 -05:00
epezent db16011e73 reorganize header 2020-08-22 23:26:49 -05:00
epezent 9b8270d939 overhaul log plots - improve zoom, labels, and fit 2020-08-22 22:55:37 -05:00
epezent 63e2ce3ddd fix bug in IsPlotHovered, add more data to candlestick demo 2020-08-22 01:44:19 -05:00
epezent 5039315122 add custom getters to demo 2020-08-22 00:16:37 -05:00
epezent 0afa53059e add Push/PopColormap, custom PlotShaded 2020-08-21 22:13:11 -05:00
epezent 9deca4e422 add overloads for PlotShaded, ImPlotStyleVar_PlotPadding, and ImGui Tables API demo section 2020-08-20 23:01:21 -05:00
epezent 7da6ed69f3 add FitNextPlotAxes 2020-08-19 23:50:12 -05:00
epezent 8c125ccd6b small fix to query 2020-08-19 11:43:00 -05:00
Evan Pezent c1daaab8ea
Merge pull request #96 from jaswantp/SkipDrawQuery
Draw query rect only when query enabled.
2020-08-19 11:37:45 -05:00
epezent 59aa912e73 fix bugs in axis hit box detection 2020-08-19 11:34:52 -05:00
jaswantp 36a86cf955
Draw query rect only when query enabled. 2020-08-19 14:31:26 +02:00