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

290 Commits

Author SHA1 Message Date
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
epezent b409aecd30 add per axis context menus 2020-08-19 01:18:05 -05:00
epezent 53c867f414 code cleanup, define magic numbers, add minimum plot size constraint, misc improvements to tick mark labels 2020-08-19 00:04:05 -05:00
epezent 7763b9cf43 add example for custom plotters 2020-08-17 20:20:15 -05:00
epezent 2bc716d2b6 misc clean up, experimental rect rendering, center PlotText 2020-08-17 18:31:30 -05:00
epezent 803d250bb6 bug in debug mode 2020-08-16 18:48:09 -05:00
epezent 4463fa107a clean up refactors, organize implot_internal.h 2020-08-16 18:46:59 -05:00
epezent d9ae47bf2b finish refactoring implot for v0.5 2020-08-16 15:38:51 -05:00
epezent 862f96c560 add implot_internal.h 2020-08-16 11:36:20 -05:00
epezent 86a9e51f9d add explicit context creation/destruction 2020-08-16 10:25:06 -05:00
epezent 96dc5b5a28 expose NextColormapColor 2020-08-16 00:49:34 -05:00
Evan Pezent df0a159391
Merge pull request #84 from ozlb/patch-1
PlotText color
2020-08-16 00:18:12 -05:00
Evan Pezent c09d160d19
Merge pull request #88 from bear24rw/imdrawidx_32bit
Fix overflow when using 32-bit ImDrawIdx
2020-08-15 23:25:11 -05:00
Peter Johnson 214504a20e
Fix yaxis setting updates not working
The new values were being stored in PreviousFlags instead of Flags.
2020-08-15 21:05:03 -07:00
Max Thrun 1ec47915d3 Fix overflow when using 32-bit ImDrawIdx 2020-08-13 16:04:21 -07:00
Evan Pezent 6a5e9401f7 rev up to v0.5 2020-08-07 13:04:31 -05:00
ozlb ab9217049a
PlotText color
PlotText color properties inherited from ImGuiCol_Text, so it can be customized by `ImGui::PushStyleColor(ImGuiCol_Text, <myColor>);`
2020-08-05 04:59:05 +02:00
Evan Pezent 7d0d2d1e65 rename IsPlotItemHighlighted to IsLegendEntryHovered 2020-07-26 21:49:31 -05:00
Evan Pezent 397fc05ca8 fix bug in IsPlotYAxisHovered 2020-07-26 21:39:17 -05:00
Evan Pezent 9815d64691 tidy up ozlb axis hovering work 2020-07-26 21:28:22 -05:00
Evan Pezent db38039e97 Merge branch 'master' of https://github.com/ozlb/implot into ozlb-master 2020-07-26 20:10:24 -05:00
Evan Pezent e847aa786d bug fix: calculate adaptive divisions after canvas bounding box is calculated 2020-07-25 07:59:47 -05:00
Evan Pezent 0a3442f389 fix issue with heatmap bounds not working correctly 2020-07-25 07:52:15 -05:00
Joel Linn e43be28452 Fix divison by zero when plotting 0 data lenght. 2020-07-20 00:09:35 +02:00
ozlb 9df6f22555
IsPlotXAxisHovered, IsPlotYAxisHovered
Returns true if the XAxis plot area or YAxis[n] plot area in the current or most recent plot is hovered.
2020-07-14 23:43:57 +02:00
ozlb 140dd2bd8a
IsPlotItemHighlight
Returns true if plot item is highlight
2020-07-13 06:44:51 +02:00
Evan Pezent 4d4cac629b always show items without a legend entry 2020-06-23 22:02:22 -05:00
Josh Pieper 0b3bf9bc9f Only display non-empty legends 2020-06-22 13:56:38 -04:00
Evan Pezent 9894df4934
Update implot.cpp 2020-06-18 17:26:30 -05:00
Evan Pezent 37ee2d4c54 fix compiler warnings for plot digital 2020-06-15 21:35:09 -05:00
Evan Pezent a3defa4881 Merge branch 'master' of https://github.com/epezent/implot 2020-06-15 21:18:27 -05:00
Evan Pezent 307205bb7f
Merge pull request #64 from ozlb/patch-2
Fix circular buffer rollover (issue #60)
2020-06-15 21:21:55 -05:00
Evan Pezent 8d205530cd Merge branch 'master' of https://github.com/epezent/implot 2020-06-15 21:00:45 -05:00
Evan Pezent 70a044ee17 improve mouse pos label precision 2020-06-15 21:00:42 -05:00
Evan Pezent c6ad6e9c7f clean up and debug input mappings 2020-06-15 19:54:58 -05:00
Jaap Suter ce79420146 Switched from in-class initialization to setting the default input mapping in a constructor in the .cpp file. 2020-06-15 09:55:30 -07:00
Jaap Suter f02088fef1 Changed from SetInputMap(ImPlotInputMap) to ImPlotInputMap& GetInputMap() per Evan's suggestion. 2020-06-15 08:54:53 -07:00
ozlb 4cf06cf52c
PlotDigitalEx fix NAN values and fix circular buffer rollover (issue #60)
Fixes issue #60 (circular buffer rollover)
2020-06-14 22:28:01 +02:00
Evan Pezent 504b1ea155 Merge branch 'shaded' 2020-06-14 08:28:28 -05:00
Evan Pezent 11ba96f088 Merge branch 'master' of https://github.com/epezent/implot 2020-06-14 08:28:14 -05:00
Evan Pezent 07aed7d079 general reorginzation to plot item rendering 2020-06-14 08:27:58 -05:00
Evan Pezent e2fd883224 remove adaptive divisions flag, not really used 2020-06-13 13:25:38 -05:00
Evan Pezent 1934bdfd47 remove culling flag, enabled by default now 2020-06-13 13:18:29 -05:00
Evan Pezent fee873d74a shaded plots complete 2020-06-13 12:42:47 -05:00
Evan Pezent 61bc4d1426 working prototype for shaded plots 2020-06-12 22:02:43 -05:00
Evan Pezent 218e7bc5f1 Merge branch 'master' into shaded 2020-06-12 16:15:19 -05:00
Evan Pezent 7a53c2058f remove garbage 2020-06-12 16:15:11 -05:00
ozlb be8b6e0b18
Fix compile under MacOs
implot.cpp:3382:26: error: definition of variable with array type needs an explicit size or an initializer

Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
2020-06-12 23:09:58 +02:00
Evan Pezent 7d02374665 hide piechart labels when legend entry is hidden 2020-06-12 12:32:13 -05:00
Jaap Suter 7f4f3ecd21 Added prototype/rough-attempt to allow remapping input (mouse-buttons/modifiers-keys). 2020-06-10 13:50:00 -07:00
Evan Pezent 0b3617668b tidy up error bars h, add sliders for misc styling variables to demo 2020-06-08 20:26:15 -05:00
Adriano Parisi 7e4e683ce6 Update assert 2020-06-08 20:49:22 +01:00
Adriano Parisi 1d11b1a1a3 Refactored to only draw the horizontal bars, updated demo 2020-06-08 20:45:31 +01:00
Evan Pezent 0dea5f8bb7 prototyping renderer change 2020-06-07 20:44:37 -05:00
Adriano Parisi ef549d1ab5 Added whiskers for H error bars, now showing desired feature 2020-06-08 00:16:50 +01:00
Adriano Parisi 3f84f43919 Building and showing in demo, now for adding horizontal errors 2020-06-08 00:05:56 +01:00
Evan Pezent 09ef003a81 clean up primitive rendering work, test new offset/stride and improve demo 2020-06-07 13:13:11 -05:00
SergeyN 723122211e made static data static
minor cleanup
2020-06-07 13:10:42 +02:00
Evan Pezent 8251e17eef moving offsetting into getters, abstract rendering into RenderPrimitives 2020-06-06 23:40:03 -05:00
Evan Pezent 861935de27 merge master 2020-06-06 21:29:43 -05:00
SergeyN 126a4201a0 minimal change commit (got transformers back) 2020-06-07 01:08:48 +02:00
Evan Pezent 523ae3aef4 fixed dragging issue where plots that were not mouse-clicked would be dragged 2020-06-06 17:54:46 -05:00
Evan Pezent 2a5a78565b internal refactors and misc improvements 2020-06-04 09:56:50 -05:00
Evan Pezent a70bbe5cff internal refactors and demo improvements 2020-06-04 00:11:43 -05:00
Evan Pezent 43f78f62b9 add formats to PieChart and Heatmap, fix compiler warnings 2020-06-03 22:18:47 -05:00
Evan Pezent 2d30283821 refactoring and abstrating 2020-06-03 16:58:05 -05:00
Evan Pezent f59913b8e0 finish custom ticks 2020-06-03 14:37:01 -05:00
Evan Pezent b497e7f72d rename ImTick to ImPlotTick 2020-06-03 09:54:25 -05:00
Evan Pezent 6c9a720d2c ensure next plot data is initialized 2020-06-03 09:50:06 -05:00
Evan Pezent 6ea8b45d75 remove <limits> 2020-06-03 09:06:16 -05:00
Evan Pezent ea51c41b4a finish heatmaps 2020-06-02 22:07:27 -05:00
Evan Pezent 356e604bd2 colormaps 2020-06-02 12:34:14 -05:00
Evan Pezent 468ffe9ead initial heatmap prototype working 2020-06-01 22:14:22 -05:00
Evan Pezent 01f033bd8a Merge branch 'master' into heatmap 2020-06-01 17:33:29 -05:00
Evan Pezent 71e38ad770 start heatmap dev 2020-06-01 17:33:01 -05:00
SergeyN 7423636e16 minimal change commit (got transformers back) 2020-06-02 00:26:32 +02:00
ozlb f1cb4ea273
Assert messages, PlotDigital gap and data extents
. Fix assert messages for "Needs to be called between BeginPlot() and EndPlot()"
. PlotDigital gap initialization
. PlotDigital data extents disabled (digital channels are "pixel based")
2020-06-01 22:31:26 +02:00
Evan Pezent 3faaa5d25d add ability to render filled lines 2020-05-31 16:32:32 -05:00
Evan Pezent c7b10464a3 header cleanup 2020-05-31 09:28:34 -05:00
Evan Pezent a4d1d03456 reorganize header 2020-05-31 09:17:07 -05:00
Evan Pezent 0aa21d4b3f removed ImVec2* custom getters, use ImPlotPoint* getter functions 2020-05-31 09:07:24 -05:00
ozlb 519a2b68b0
v0.3 C++11 extension warnings
ImVec2() markers vector initialization
2020-05-29 23:31:50 +02:00
Evan Pezent 43625257b0 double precision work complete 2020-05-29 12:39:30 -05:00
Evan Pezent 5e82afdbdd change transformers names 2020-05-29 08:40:04 -05:00
Evan Pezent b62aeeb2ab double precision dev 2020-05-16 23:25:15 -05:00
Evan Pezent 2fd9d3f756 checkpoint 2020-05-16 21:53:59 -05:00
Evan Pezent 226ae4c10b checkpoint 2020-05-16 21:09:36 -05:00
Evan Pezent 3421c26270 change PlotBar to PlotBars 2020-05-16 09:14:48 -05:00
Evan Pezent 95aeba415e make default size arguments work 2020-05-16 09:11:29 -05:00
Evan Pezent c4e9d64600 rename plotting functions, add PlotScatter 2020-05-16 08:43:24 -05:00
Evan Pezent b783185acc rename plotting functions, add PlotScatter 2020-05-16 08:39:43 -05:00
Evan Pezent 0412b12e11 tidy up warnings fixes 2020-05-15 08:05:02 -05:00
Evan Pezent f383f8a914 merge pr 2020-05-15 08:01:00 -05:00
Evan Pezent daa689beb5 Merge branch 'master' of https://github.com/ozlb/implot into ozlb-master 2020-05-14 07:15:25 -05:00
SergeyN 17dba653a9 bbox overlap test to avoid disappearing lines when two ends end up outside culling area 2020-05-14 01:52:47 +02:00
SergeyN 1c1b5f965d rearrangement of bools to take less space in a struct 2020-05-13 23:33:36 +02:00
SergeyN ff5d61756f protection against buffer overruns in BufferWriter 2020-05-13 23:33:36 +02:00
SergeyN ea05677a7c warning fixes, removed conversions from float to double and back. removed static text buffers, use of secure sprintf functions on windows 2020-05-13 23:33:36 +02:00
SergeyN c6cc4082ab warning fixes, removed conversions from float to double and back. removed static text buffers, use of secure sprintf functions on windows 2020-05-13 23:33:35 +02:00
ozlb c71f893aeb
Merge branch 'master' into master 2020-05-13 17:25:26 +02:00
ozlb 36e0aa3ce1
C++11 extensions update after enums with ImPlot 2020-05-13 17:23:01 +02:00
Evan Pezent 9b098b816c
Merge pull request #31 from ozlb/patch-1
PlotDigital vs FitThisFrame
2020-05-13 09:21:00 -05:00
Evan Pezent a0c9dc120c trim trailing whitespace 2020-05-13 09:11:25 -05:00
Evan Pezent 8e25aec9f5 prefix all public facing structs and enums with ImPlot 2020-05-13 09:08:12 -05:00
ozlb 2a7430dae8
FitPoint on x 2020-05-13 11:10:14 +02:00
SergeyN e6003e3029 obvious optimization: call getter, transformer and cull test once per point instead of twice 2020-05-13 07:32:49 +02:00
ozlb 280cbf5cd4
Removed all C++11 extensions
src/implot.cpp:1270:25: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
        for (ImTick& xt : gp.XTicks)
2020-05-13 06:57:27 +02:00
ozlb d0e3f80506
Col_QryX unused 2020-05-13 06:48:48 +02:00