You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I include more than one function in the animation? And is it necessary to use binary here, or could I also use other functions like add_plot1d?
Thank you for your help,
Thomas
The text was updated successfully, but these errors were encountered:
And yes, you can use add_plot1d. Though it's not an animation, example-data-1d.cc gives an example of plotting many functions at once. To animate, you'd just have to call it in a loop.
Hello,
I wanted to ask if it's possible to animate two functions? I tried to expand the "demo_animation" in example-misc.cc, but that didn't work.
I tried the following code, among others:
#include
#include
#include
#include
#include
#include
#include "gnuplot-iostream.h"
#define M_PI 3.14159265358979323846
#include <unistd.h>
inline void mysleep(unsigned millis)
{
::usleep(millis * 1000);
}
void animation()
{
Gnuplot gp;
}
int main(int argc, char *argv[])
{
animation();
}
How can I include more than one function in the animation? And is it necessary to use binary here, or could I also use other functions like add_plot1d?
Thank you for your help,
Thomas
The text was updated successfully, but these errors were encountered: