1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-11-29 21:48:53 -05:00
Commit Graph

277 Commits

Author SHA1 Message Date
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
ozlb 1ea1a2664e
C++11 extension fixes
warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
for (ImTick &xt : gp.XTicks) {
for (ImTick &yt : gp.YTicks[i]) {
2020-05-13 06:45:34 +02:00
ozlb f766614db0
PlotDigital vs FitThisFrame
FitThisFrame in PlotDigital it' not necessary due to actual nature of digital plot.
2020-05-12 15:26:44 +02:00
ozlb 99319d9fa7
PlotDigital FitThisFrame issue
FitThisFrame is triggering wrong fit for analog signals. It' not necessary due to actual nature of digital plot.
2020-05-12 15:05:14 +02:00
ozlb 2be5451140
namespace ImPlot 2020-05-12 11:19:04 +02:00
ozlb 53ea6a8cd4
QueryX removed for PR merge 2020-05-11 15:57:36 +02:00
ozlb 825198495e
Merge branch 'master' into master 2020-05-11 14:33:31 +02:00
ozlb b9ce343e98
QueryX ImGuiMouseCursor_ResizeEW 2020-05-11 14:30:57 +02:00
ozlb 036b4acaab
PlotDigital updates on ImPlot v0.2 2020-05-11 13:12:22 +02:00
Evan Pezent 329ad9dd80 tidy up multi y axis support 2020-05-11 00:45:46 -05:00
Josh Pieper 5eb4b71384 Support multiple Y axes simultaneously
This allows up to 3 Y axes to be used, one on the left side, and up to
2 on the right.  To use multiple axes, one of the `ImPlotFlags_Y2Axis`
or `ImPlotFlags_Y3Axis` must be passed to `BeginPlot`.  Then, before
each Plot call, SetPlotYAxis may be used to set that plot on an
alternate axis.

An extra line and ticks are rendered off to the right if all 3 axes
are configured (although those ticks are always only 5 long,
regardless of major status).  Each of the axes, when present, has a
(possibly invisible if ticks and labels are disabled) hit target that
can be used to scroll and scale that axis independently.

Some other changes were required to make this happen:
 * Queries are now only in pixel coordinates
 * ImPlotRange has been renamed to ImPlotBounds (and correspondingly
   GetPlotRange is now GetPlotBounds)
 * All APIs which allow querying values in plot coordinates now have
   an optional "y_axis" argument, which can be -1 to use the currently
   selected axis, or non-negative to pick a specific axes.
 * BeginPlot used to lock all flags on the first call.  Now it only
   locks the axis flags, and not the primary plot flags.
 * The mouseover text now renders the 2nd and 3rd axis in parenthesis.
2020-05-10 21:27:26 -04:00
Andras Kucsma 61a3124ca9 Identify NANs with isnan()
In C/C++ NAN == NAN is false, so isnan()
must be used to identify NAN values.
2020-05-10 18:19:54 +02:00
Josh Pieper 8d15bb6c41 Remove uses of the C++11 auto feature 2020-05-10 08:38:23 -04:00
Evan Pezent 1db64ff209
Update implot.cpp 2020-05-09 09:09:05 -05:00
ozlb 494b9eb61d
PlotDigital multi level
Plot digital channels as float (only positive values)
2020-05-09 06:54:16 +02:00
Evan Pezent 762660ddcc digital signals cleanup 2020-05-05 14:24:19 -05:00
Evan Pezent 8253189fc8
Merge pull request #6 from ozlb/master
PlotDigital
2020-05-05 13:45:36 -05:00
Evan Pezent 22cf50cc44 hard code color of pie labels 2020-05-05 13:41:18 -05:00
ozlb 1d900f123b
Fix rectangles accumulated at min pos
Fix rectangles accumulated at gp.PixelRange.Min.x position
2020-05-05 14:26:20 +02:00
ozlb 5e3b283f5e
Update implot.cpp 2020-05-05 08:56:25 +02:00
ozlb 0f76571e89
Update implot.cpp 2020-05-05 06:25:01 +02:00
Evan Pezent 3bc08a946c make pie chart labels const, remove unused vars 2020-05-04 08:47:39 -05:00
ozlb d539dc9a70
Plot only one rectangle for same digital state
plot only one rectangle for same digital state, do not extend plot outside plot range
2020-05-04 15:16:04 +02:00
ozlb 52ae8ff8cd
PlotDigitalEx optimization 2020-05-04 14:17:39 +02:00
ozlb 9b157783c7
Merge branch 'master' into master 2020-05-04 11:14:44 +02:00
ozlb 33ffd8e5c6
Cleanup and pixel density optimization 2020-05-04 09:26:52 +02:00
ozlb 2338c9b4c9
Curors
Cursors query handling
2020-05-04 09:09:33 +02:00
Evan Pezent ad01a01331 optimizations, add pie plot 2020-05-03 00:24:10 -05:00
Evan Pezent d32567fe15
Merge branch 'master' into master 2020-04-30 09:09:32 -05:00
ozlb f8db7405da
resolved conflicts with latest version 2020-04-30 15:45:03 +02:00
Evan Pezent 23931c7f07 add benchmark test, update double click fit, fix demo math include 2020-04-30 08:13:44 -05:00
ozlb a13de8ec98
Update implot.cpp 2020-04-30 15:01:28 +02:00
Evan Pezent 3c1ef11525 add custom rendering utils 2020-04-29 15:39:02 -05:00
Evan Pezent 6073a4ebb5 make query ranges dragable 2020-04-29 09:55:07 -05:00
ozlb bce306bd65
PlotDigital 2020-04-29 16:32:35 +02:00
Evan Pezent 363d469122 better query 2020-04-28 20:17:26 -05:00
ozlb 9a01d29bb3
BOX-SELECTION HasFlag() missing
'warning: left operand of comma operator has no effect [-Wunused-value]
         if (plot.Selecting && (plot.Flags, ImPlotFlags_Selection)) {'
                                ~~~~~^~~~~
2020-04-28 21:58:37 +02:00
Evan Pezent 128d52dbf6 add vertical labels and updated demo with example 2020-04-28 01:06:43 -05:00
Evan Pezent 50f4e94833 add ozlb's legend highlighting 2020-04-28 00:38:52 -05:00
Evan Pezent d515493aef add plot queries, improve box selection controls with modifiers 2020-04-27 23:57:49 -05:00
Evan Pezent b4e4f1a53c commit v0.1 source code 2020-04-27 10:27:59 -05:00