1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-11-23 10:48:52 -05:00
Commit Graph

485 Commits

Author SHA1 Message Date
Evan Pezent dc55cf9951 Merge branch 'master' of https://github.com/epezent/implot 2020-05-10 20:48:13 -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
Evan Pezent ef712c1ea8 add _CRT_SECURE_NO_WARNINGS check 2020-05-10 13:04:34 -05:00
Evan Pezent 59bc426aad
Merge pull request #23 from r0mai/nans
Identify NANs with isnan()
2020-05-10 11:47:10 -05: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
Evan Pezent c6e840d998
Merge pull request #22 from jpieper/20200510-remove_cpp11_auto
Remove uses of the C++11 auto feature
2020-05-10 07:40:36 -05:00
Josh Pieper 8d15bb6c41 Remove uses of the C++11 auto feature 2020-05-10 08:38:23 -04:00
Evan Pezent 9c19c20aae
Update implot_demo.cpp 2020-05-09 09:09:30 -05:00
Evan Pezent 1db64ff209
Update implot.cpp 2020-05-09 09:09:05 -05:00
Evan Pezent e7d0b182be
Update implot_demo.cpp 2020-05-09 09:08:38 -05:00
Evan Pezent c227265210
Merge pull request #16 from jpieper/20200509-doc-copy-paste
Fix a trivial documentation copy-paste-o
2020-05-09 08:40:30 -05:00
Josh Pieper d432920439 Fix a trivial documentation copy-paste-o 2020-05-09 09:13:37 -04:00
ozlb 01e9545d25
Merge branch 'master' into master 2020-05-09 07:03:07 +02:00
ozlb 494b9eb61d
PlotDigital multi level
Plot digital channels as float (only positive values)
2020-05-09 06:54:16 +02:00
Evan Pezent 997bf15584
Update implot.h 2020-05-05 14:40:04 -05: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 f98cda45bd
Update implot_demo.cpp 2020-05-05 06:25:47 +02:00
ozlb a956e9849d
Update implot.h 2020-05-05 06:25:24 +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 f31ffaae9e
Update README.md 2020-05-03 00:46:20 -05:00
Evan Pezent a7303fd994 fix typos in readme 2020-05-03 00:37:48 -05:00
Evan Pezent 2ce88f0da7
Update README.md 2020-05-03 00:31:45 -05:00
Evan Pezent ad01a01331 optimizations, add pie plot 2020-05-03 00:24:10 -05:00
Evan Pezent 8c622625cd
Update README.md 2020-05-01 08:50:08 -05:00
Evan Pezent 413639bce2
Update README.md 2020-04-30 09:25:28 -05:00
Evan Pezent 9948813674
Update README.md 2020-04-30 09:25:16 -05:00
Evan Pezent 5a2d5c1504
Update README.md 2020-04-30 09:18:59 -05:00
Evan Pezent d32567fe15
Merge branch 'master' into master 2020-04-30 09:09:32 -05:00
Evan Pezent 8adde097e7
Update implot_demo.cpp 2020-04-30 09:02:02 -05:00
Evan Pezent 20a54e78ea
Update implot_demo.cpp 2020-04-30 09:01:14 -05:00
ozlb 4596a10183
resolved conflicts with latest version 2020-04-30 15:47:14 +02:00
ozlb 0043525bd1
resolved conflicts with latest version 2020-04-30 15:46:18 +02: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
ozlb 6e860842e1
Update implot_demo.cpp 2020-04-30 15:00:08 +02:00
Evan Pezent 3c1ef11525 add custom rendering utils 2020-04-29 15:39:02 -05:00
Evan Pezent dd5390f433
Update README.md 2020-04-29 14:41:39 -05:00
Evan Pezent 7929b17f0c
Update README.md 2020-04-29 14:39:46 -05:00
Evan Pezent cab489a9b7
Update README.md 2020-04-29 14:27:23 -05:00