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

331 Commits

Author SHA1 Message Date
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 7d550d350e 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 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 595d04c0c6
C++11 extensions update after enums with ImPlot 2020-05-13 17:24:11 +02:00
ozlb ff4f27175c
C++11 extensions update after enums with ImPlot 2020-05-13 17:23:27 +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 d853971668 remove gitignore file, it's not needed for now 2020-05-13 09:13:05 -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
Evan Pezent fb3c8051fb Merge branch 'sergeyn-pr_branch2' 2020-05-13 08:51:52 -05:00
Evan Pezent b11fb62f55 test negative offset, add to demo 2020-05-13 08:43:33 -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
Evan Pezent 1e627d81ce
Merge pull request #15 from ozlb/master
PlotDigital multi level
2020-05-12 07:20:35 -05:00
ozlb ceeb5b485c
Merge branch 'master' into master 2020-05-12 11:21:35 +02:00
ozlb 69021f884d
namespace ImPlot 2020-05-12 11:20:23 +02:00
ozlb c812d2e79b
namespace ImPlot 2020-05-12 11:19:34 +02:00
ozlb 2be5451140
namespace ImPlot 2020-05-12 11:19:04 +02:00
Evan Pezent be8c1ad679 Changed namespace from ImGui to ImPlot. Consequently, several API function names were shortened or changed. 2020-05-11 22:14:23 -05:00
ozlb 435440c7da
QueryX removed for PR merge 2020-05-11 16:00:05 +02:00
ozlb 9bfd3902a1
QueryX removed for PR merge 2020-05-11 15:58:12 +02:00
ozlb 53ea6a8cd4
QueryX removed for PR merge 2020-05-11 15:57:36 +02:00
Evan Pezent 218ed09289 fix clip rect mismatch 2020-05-11 08:41:43 -05:00
Evan Pezent 2c95c700c3 Merge branch 'master' of https://github.com/epezent/implot 2020-05-11 07:53:43 -05: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 676906afae
PlotDigital updates on ImPlot v0.2 WIP 2020-05-11 13:13:43 +02:00
ozlb 41ece38678
PlotDigital updates on ImPlot v0.2 2020-05-11 13:13:08 +02:00
ozlb 036b4acaab
PlotDigital updates on ImPlot v0.2 2020-05-11 13:12:22 +02:00
Evan Pezent 023f96d067
Update README.md 2020-05-11 01:10:57 -05: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 8e4e64c65d
Merge pull request #28 from epezent/dev
Integrate Multiple Y-Axis Support
2020-05-11 00:57:52 -05:00
Evan Pezent 703a72850a Merge branch 'master' of https://github.com/epezent/implot 2020-05-11 00:56:24 -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
Evan Pezent bece676929
Merge pull request #25 from jpieper/20200510-multi_y_axis
Support multiple Y axes simultaneously
2020-05-10 21:04:38 -05:00
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