Skip to content

Commit 524f9fc

Browse files
committed
refactor: bump version to v1.0 and remove deprecated
1 parent e3af5e3 commit 524f9fc

5 files changed

Lines changed: 15 additions & 45 deletions

File tree

implot.cpp

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
// SOFTWARE.
2323

24-
// ImPlot v0.18 WIP
24+
// ImPlot v1.0
2525

2626
/*
2727
@@ -32,7 +32,7 @@ Below is a change-log of API breaking changes only. If you are using one of the
3232
When you are not sure about a old symbol or function name, try using the Search/Find function of your IDE to look for comments or references in all implot files.
3333
You can read releases logs https://github.com/epezent/implot/releases for more details.
3434
35-
- 2026/02/12 (0.18) - ImPlotSpec replaces the SetNextXXX style functions. The guide below shows show to migrate from SetNextXXX to ImPlotSpec.
35+
- 2026/02/12 (1.0) - ImPlotSpec replaces the SetNextXXX style functions. The guide below shows show to migrate from SetNextXXX to ImPlotSpec.
3636
- `SetNextLineStyle` has been removed, styling should be set via ImPlotSpec.
3737
```
3838
// Before
@@ -87,7 +87,7 @@ You can read releases logs https://github.com/epezent/implot/releases for more d
8787
ImPlot::PlotErrorBars("ErrorBar", xs, ys, err, count, spec);
8888
```
8989
- Flags, Offset and Stride should also be set via ImPlotSpec now.
90-
- 2023/10/02 (0.18) - ImPlotSpec was made the default and _only_ way of styling plot items. Therefore the following features were removed:
90+
- 2023/10/02 (1.0) - ImPlotSpec was made the default and _only_ way of styling plot items. Therefore the following features were removed:
9191
- ImPlotCol_Line, ImPlotCol_Fill, ImPlotCol_MarkerOutline, ImPlotCol_MarkerFill, ImPlotCol_ErrorBar have been removed and thus are no longer supported by PushStyleColor.
9292
You can use a common ImPlotSpec instance across multiple PlotX calls to emulate PushStyleColor behavior.
9393
- ImPlotStyleVar_LineWeight, ImPlotStyleVar_Marker, ImPlotStyleVar_MarkerSize, ImPlotStyleVar_MarkerWeight, ImPlotStyleVar_FillAlpha, ImPlotStyleVar_ErrorBarSize, and ImPlotStyleVar_ErrorBarWeight
@@ -5921,20 +5921,7 @@ void StyleColorsLight(ImPlotStyle* dst) {
59215921

59225922
#ifndef IMPLOT_DISABLE_OBSOLETE_FUNCTIONS
59235923

5924-
bool BeginPlot(const char* title, const char* x_label, const char* y1_label, const ImVec2& size,
5925-
ImPlotFlags flags, ImPlotAxisFlags x_flags, ImPlotAxisFlags y1_flags, ImPlotAxisFlags y2_flags, ImPlotAxisFlags y3_flags,
5926-
const char* y2_label, const char* y3_label)
5927-
{
5928-
if (!BeginPlot(title, size, flags))
5929-
return false;
5930-
SetupAxis(ImAxis_X1, x_label, x_flags);
5931-
SetupAxis(ImAxis_Y1, y1_label, y1_flags);
5932-
if (ImHasFlag(flags, ImPlotFlags_YAxis2))
5933-
SetupAxis(ImAxis_Y2, y2_label, y2_flags);
5934-
if (ImHasFlag(flags, ImPlotFlags_YAxis3))
5935-
SetupAxis(ImAxis_Y3, y3_label, y3_flags);
5936-
return true;
5937-
}
5924+
// Deprecated method will go in here
59385925

59395926
#endif
59405927

implot.h

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
// SOFTWARE.
2323

24-
// ImPlot v0.18 WIP
24+
// ImPlot v1.0
2525

2626
// Table of Contents:
2727
//
@@ -62,9 +62,9 @@
6262
#endif
6363

6464
// ImPlot version string.
65-
#define IMPLOT_VERSION "0.18 WIP"
65+
#define IMPLOT_VERSION "1.0"
6666
// ImPlot version integer encoded as XYYZZ (X=major, YY=minor, ZZ=patch).
67-
#define IMPLOT_VERSION_NUM 1801
67+
#define IMPLOT_VERSION_NUM 10000
6868
// Macro for templated plotting functions; keeps header clean.
6969
#define IMPLOT_TMP template <typename T> IMPLOT_API
7070

@@ -1388,34 +1388,17 @@ IMPLOT_API void ShowDemoWindow(bool* p_open = nullptr);
13881388
#define IMPLOT_DEPRECATED(method) method
13891389
#endif
13901390

1391-
enum ImPlotFlagsObsolete_ {
1392-
ImPlotFlags_YAxis2 = 1 << 20,
1393-
ImPlotFlags_YAxis3 = 1 << 21,
1394-
};
1395-
13961391
namespace ImPlot {
13971392

1398-
// OBSOLETED in v0.18 (from February 2026)
1399-
// IMPLOT_API void SetNextLineStyle(const ImVec4& col = IMPLOT_AUTO_COL, float weight = IMPLOT_AUTO); // OBSOLETED IN 0.18 // Set ImPlotSpec.LineColor/LineWeight or construct ImPlotSpec with { ImPlotSpec_LineColor, color, ImPlotSpec_LineWeight, weight }.
1393+
// OBSOLETED in v1.0 (from February 2026)
1394+
// IMPLOT_API void SetNextLineStyle(const ImVec4& col = IMPLOT_AUTO_COL, float weight = IMPLOT_AUTO); // OBSOLETED IN v1.0 // Set ImPlotSpec.LineColor/LineWeight or construct ImPlotSpec with { ImPlotSpec_LineColor, color, ImPlotSpec_LineWeight, weight }.
14001395

1401-
// IMPLOT_API void SetNextFillStyle(const ImVec4& col = IMPLOT_AUTO_COL, float alpha_mod = IMPLOT_AUTO);// OBSOLETED IN 0.18 // Set ImPlotSpec.FillColor/FillAlpha or construct ImPlotSpec with { ImPlotSpec_FillColor, color, ImPlotSpec_FillAlpha, alpha }.
1396+
// IMPLOT_API void SetNextFillStyle(const ImVec4& col = IMPLOT_AUTO_COL, float alpha_mod = IMPLOT_AUTO);// OBSOLETED IN v1.0 // Set ImPlotSpec.FillColor/FillAlpha or construct ImPlotSpec with { ImPlotSpec_FillColor, color, ImPlotSpec_FillAlpha, alpha }.
14021397

1403-
// IMPLOT_API void SetNextMarkerStyle(ImPlotMarker marker = IMPLOT_AUTO, float size = IMPLOT_AUTO, const ImVec4& fill = IMPLOT_AUTO_COL, float weight = IMPLOT_AUTO, const ImVec4& outline = IMPLOT_AUTO_COL); // OBSOLETED IN 0.18 // Set ImPlotSpec.Marker/MarkerSize/MarkerFillColor/LineWeight/MarkerLineColor or construct ImPlotSpec with { ImPlotSpec_Marker, marker, ImPlotSpec_MarkerSize, size, ImPlotSpec_MarkerFillColor, fill_color, ImPlotSpec_LineWeight, weight, ImPlotSpec_MarkerLineColor, outline }.
1398+
// IMPLOT_API void SetNextMarkerStyle(ImPlotMarker marker = IMPLOT_AUTO, float size = IMPLOT_AUTO, const ImVec4& fill = IMPLOT_AUTO_COL, float weight = IMPLOT_AUTO, const ImVec4& outline = IMPLOT_AUTO_COL); // OBSOLETED IN v1.0 // Set ImPlotSpec.Marker/MarkerSize/MarkerFillColor/LineWeight/MarkerLineColor or construct ImPlotSpec with { ImPlotSpec_Marker, marker, ImPlotSpec_MarkerSize, size, ImPlotSpec_MarkerFillColor, fill_color, ImPlotSpec_LineWeight, weight, ImPlotSpec_MarkerLineColor, outline }.
14041399

1405-
// IMPLOT_API void SetNextErrorBarStyle(const ImVec4& col = IMPLOT_AUTO_COL, float size = IMPLOT_AUTO, float weight = IMPLOT_AUTO); // OBSOLETED IN 0.18 // Set ImPlotSpec.LineColor/Size/LineWeight or construct ImPlotSpec with { ImPlotSpec_LineColor, col, ImPlotSpec_Size, size, ImPlotSpec_LineWeight, weight }.
1400+
// IMPLOT_API void SetNextErrorBarStyle(const ImVec4& col = IMPLOT_AUTO_COL, float size = IMPLOT_AUTO, float weight = IMPLOT_AUTO); // OBSOLETED IN v1.0 // Set ImPlotSpec.LineColor/Size/LineWeight or construct ImPlotSpec with { ImPlotSpec_LineColor, col, ImPlotSpec_Size, size, ImPlotSpec_LineWeight, weight }.
14061401

1407-
// OBSOLETED in v0.13 -> PLANNED REMOVAL in v1.0
1408-
IMPLOT_DEPRECATED( IMPLOT_API bool BeginPlot(const char* title_id,
1409-
const char* x_label, // = nullptr,
1410-
const char* y_label, // = nullptr,
1411-
const ImVec2& size = ImVec2(-1,0),
1412-
ImPlotFlags flags = ImPlotFlags_None,
1413-
ImPlotAxisFlags x_flags = 0,
1414-
ImPlotAxisFlags y_flags = 0,
1415-
ImPlotAxisFlags y2_flags = ImPlotAxisFlags_AuxDefault,
1416-
ImPlotAxisFlags y3_flags = ImPlotAxisFlags_AuxDefault,
1417-
const char* y2_label = nullptr,
1418-
const char* y3_label = nullptr) );
14191402

14201403
} // namespace ImPlot
14211404

implot_demo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
// SOFTWARE.
2323

24-
// ImPlot v0.18 WIP
24+
// ImPlot v1.0
2525

2626
// We define this so that the demo does not accidentally use deprecated API
2727
#ifndef IMPLOT_DISABLE_OBSOLETE_FUNCTIONS

implot_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
// SOFTWARE.
2323

24-
// ImPlot v0.18 WIP
24+
// ImPlot v1.0
2525

2626
// You may use this file to debug, understand or extend ImPlot features but we
2727
// don't provide any guarantee of forward compatibility!

implot_items.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
// SOFTWARE.
2323

24-
// ImPlot v0.18 WIP
24+
// ImPlot v1.0
2525

2626
#ifndef IMGUI_DEFINE_MATH_OPERATORS
2727
#define IMGUI_DEFINE_MATH_OPERATORS

0 commit comments

Comments
 (0)