1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-11-14 06:58:50 -05:00
Commit Graph

135 Commits

Author SHA1 Message Date
Evan Pezent 8e25aec9f5 prefix all public facing structs and enums with ImPlot 2020-05-13 09:08:12 -05:00
Evan Pezent b11fb62f55 test negative offset, add to demo 2020-05-13 08:43:33 -05: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 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 69021f884d
namespace ImPlot 2020-05-12 11:20:23 +02:00
ozlb 435440c7da
QueryX removed for PR merge 2020-05-11 16:00:05 +02:00
ozlb 825198495e
Merge branch 'master' into master 2020-05-11 14:33:31 +02:00
ozlb 676906afae
PlotDigital updates on ImPlot v0.2 WIP 2020-05-11 13:13:43 +02:00
Evan Pezent 4e9b265c14
Merge pull request #27 from sayan1an/master
Add stdlib.h - fixes rand(), srand() and RAND_MAX on VC
2020-05-11 00:58:20 -05:00
Evan Pezent 329ad9dd80 tidy up multi y axis support 2020-05-11 00:45:46 -05:00
Sayantan Datta 7c0121dae2 Add stdlib.h - fixes rand(), srand() and RAND_MAX on VC 2020-05-10 23:35:34 -04: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 9c19c20aae
Update implot_demo.cpp 2020-05-09 09:09:30 -05:00
Evan Pezent e7d0b182be
Update implot_demo.cpp 2020-05-09 09:08:38 -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
ozlb f98cda45bd
Update implot_demo.cpp 2020-05-05 06:25:47 +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
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
Evan Pezent 23931c7f07 add benchmark test, update double click fit, fix demo math include 2020-04-30 08:13:44 -05: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
ozlb 3ba6dfa204
Update implot_demo.cpp 2020-04-29 17:00:19 +02:00
Evan Pezent 6073a4ebb5 make query ranges dragable 2020-04-29 09:55:07 -05:00
Evan Pezent 363d469122 better query 2020-04-28 20:17:26 -05:00
Evan Pezent 128d52dbf6 add vertical labels and updated demo with example 2020-04-28 01:06:43 -05:00
Evan Pezent d515493aef add plot queries, improve box selection controls with modifiers 2020-04-27 23:57:49 -05:00
Evan Pezent fee519b3e9 fix bug in demo 2020-04-27 17:18:12 -05:00
Evan Pezent b4e4f1a53c commit v0.1 source code 2020-04-27 10:27:59 -05:00