Why is this AddFunction() func slow? #2138
Unanswered
phil100vol
asked this question in
Questions
Replies: 1 comment 2 replies
-
|
Hi @phil100vol, Sorry for the delay on this one. I'm pretty fast resolving issues but sometimes discussions slip off my radar. I think the slowness here may be related to having tons of public Form1()
{
InitializeComponent();
formsPlot1.Plot.AddFunction(Normalised_Function_F);
formsPlot1.Refresh();
}
public static double? Normalised_Function_F(double z)
{
if (z < 0)
return 0;
else if (z > 1)
return 1;
else
return z;
}Let me know if that doesn't do the trick! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I am trying to plot some own defined mathematical functions (region defined) - for example Normalised_Function_F from Norm_Gerade class.
Plotting with ScottPlots Plot.AddFunction() plots the expeted line. In case I add more and more functions to the same plot -> the performace drops immense.
In case I use multiple Math.Sin() funcitons the performace remains perfect without any issues.
Any ideas what I am doing wrong? Thanks for yor help.
Phil
Beta Was this translation helpful? Give feedback.
All reactions