Category : plot

While trying to understand the pbPlots library i wrote a piece of code: #include "pbPlots.hpp" #include "supportLib.hpp" #include <vector> #include<iostream> using namespace std; void print(std::vector<double> const &input) { for (int i = 0; i < input.size(); i++) { std::cout << input.at(i) << ‘ ‘; } } int main(){ RGBABitmapImageReference *imageRef = CreateRGBABitmapImageReference(); vector<double> x = ..

Read more

I’ve just started trying to use gnuplot. I’ve installed it. I’m running Windows 10. When I try to plot something, a new window comes up and then disappears. I understand that I should be able to make that window remain visible if I use the command -persist but when I try that I get a ..

Read more

In my small, small and humble c++ Win32 GUI application, I got to the point of being able to draw a grid : This is in preparation for displaying spectral data, the 36 (floats) measurement points returned from my device. I still have to get the axis labeled… This is my code for drawing the ..

Read more

Is it possible to create a real-time plot like this using C++/Qt library like Qwt with horizontal zoom support? It is used to show signal strength (in %). What is a correct name for such plot? Similar plots are used in audio editors. Source: Windows Que..

Read more

I need to plot graphs in window aplication. I tried to use sciplot. It works fine in console application, but in window application, i am getting errors. VStudio 19 ISO C++17 Standard (/std:c++17) #include <windows.h> #include <sciplotsciplot.hpp> // Just include header and getting error int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int CmdShow) { ..

Read more

Guy’s, I need help… I have to plot a sine wave on the console for my university class. But i struggle a bit with the if’s.. Why does the second if statement not take the new "y_1" from the first if/else statement? Maybe someone can explain me, what’s my mistake in thinking ^^ Thanks a ..

Read more