Skip to content

Fix a function that doesn't appear

Bring a function back into view when its curve falls outside the scale of the graph axes.

How-to guide

Last reviewed: November 2024

There will be instances where you will not see the curve appear in the graphing window. It is because its range is beyond the scale of the axes.  

Here is an example: 

Modeling card warning that the linear function's range, 11 to 51.56, is outside the plot's viewing area

The linear function y = m_x_ + b is not visible in the graphing area.

When you cannot see the function, you can do the following to bring it into view: 

Step 1:

You will see several buttons on the top left in the graphing area.

Click on the minus-sign zoom-out icon button to zoom out. You should be able to see the function now.

Note: There could be instances where you may have to click the button more than once.

Zoomed-out scatter plot with the linear function now appearing, next to the zoom-out button

Step 2:

You can use the functions’s position to decide how to translate it and bring it closer to the actual data points.

In this case, we see that the slope of the linear function needs to be decreased.

Thus, decreasing the parameter m gets it in the viewing window.

Modeling card with parameter m decreased from 1 to 0.1, bringing the line closer to the data points

Step 3:

Once you have located the curve, click the plus-sign zoom-in iconsign to revert to normal view.

Zoomed-out scatter plot with an arrow pointing to the zoom-in button to return to normal view

Step 4:

Continue tweaking the parameter values until you get the best fit.

For assistance with tweaking the parameter, please reference this article.

Modeling card with the fitted line, m=0.203 and b=-0.7, closely tracking the data points

Once you are happy with the fit, you are all set to make sense of your function in the context of the data!

Was this page helpful?