Answer the question
In order to leave comments, you need to log in
How to set a dynamic step when plotting graphs?
I am writing a charting program as a learning c++ and qt.
https://gitlab.com/perevozchikov/graphic-plotter/t...
Faced the following problems:
1. When scaling graphs, it is necessary to add points dynamically when approaching or remove points when moving away so that the graph is not distorted.
2. When plotting, for example, a 1/x graph, the graph must have a much smaller step at points from 0 to 1 than from 1 to infinity. It turns out the step should be different in some parts of the graph.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question