Comments (4)
Try:
ImPlot::PushStyleColor(ImPlotCol_FrameBg, {0,0,0,0});
ImPlot::PushStyleColor(ImPlotCol_PlotBg, {0,0,0,0});
if (ImPlot::BeginPlot(...)) {
...
ImPlot::EndPlot();
}
ImPlot::PopStyleColor(2);
Of course, you won't be able to make it any more transparent than the ImGui window that it is drawn over, so you'll have to push the appropriate styling variables there as well.
from implot.
The legend color is controlled by ImGuiCol_PopupBg
, so use:
ImGui::PushStyleColor(ImGuiCol_PopupBg,{0,0,0,0});
from implot.
Great, it works!
Thank you very much!
One more question, legend area such as "Data 1" and "Data 2" in the plot can be also transparent?
https://github.com/epezent/implot/blob/master/implot_demo.cpp#L289
from implot.
Very nice, it also works fine!
Thank you very much again.
from implot.
Related Issues (20)
- save figure HOT 2
- Question: undeclared identifiers and executable configuration.
- Crash when rendering shaded plots with no data point [v0.16] HOT 1
- `Constrains` should scroll rather than zoom if possible. HOT 3
- Show custom label format only for cursor position in plot
- Implot demo error: MSVCRTD.lib(exe_main.obj) : error LNK2019: unresolved external symbol main referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ) 1>C:\Users\PvPSwagHD\source\repos\imgui\x64\Debug\imgui.exe
- PlotBarGroups show exact values of items
- New release to work with ImGui v1.90
- Cannot scroll/zoom primary axis when linked to secondary
- Constructors and Functions of structs don't have the IMPLOT_API macro
- IsAnnotationHovered() or equivalent
- LNK2019: unresolved external symbol "void __cdecl ImPlot::PlotBarGroups<double [1]>(...
- PlotStems index problem?
- ImPlotAxisFlags_Time to ImPlotScale_Time
- range_select branch example HOT 1
- implot run with webassembly occur some errors in browser console
- Zooming with scroll wheel not working correctly with ImPlotFlags_Equal
- Data points that match the exact maximum value set for the axis are not displayed
- Is there a way for avoid empty quotation in Stock demo ?
- Overlayings elements
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from implot.