Show all data within a graph

These examples show how the member function showEverything() of a graph works. The member function showEverything() of axes works similarly.

Example 1

In this example showEverything() is called just after the point plot was added.

Example 2

In this example points can be dynamically added and removed.

Example 3

If there are data points that would map to invalid values on a certain axis these values are ignored. In the example below, the values for the horizontal axis are [-2, -1, 0, 1, 2]. However, since the axis is logarithmic, showEverything() only accounts for the values 1 and 2 when the axis mapping is log10.

You can test this logic below: First, select the linear mapping using the radio button below, then click within the graph to focus it and then you can press the key 1 (on your main keyboard, not the number pad) to call showEverything on the abscissa.

Mapping of horizontal axis: