How to Create a Log Log Plot Using SageMath in Jupyter with CoCalc

Apr 21,2025

CoCalc by SageMath, Inc.

2014-01-31T19:38:42Z

What You'll Learn:
Discover how to create a log-log plot using SageMath within a Jupyter notebook on the CoCalc platform. Learn to visualize functions with both standard and logarithmic scales.

Code: https://cocalc.com/share/public_paths/f63c96f05ae6d0cc1df0bfb1c50cb8e7feed6ee5

Discover More:
📄 CoCalc Documentation: https://doc.cocalc.com/index.html
🌐 CoCalc Website: https://cocalc.com/
🛍 CoCalc Store: https://cocalc.com/store

Stay Connected:
Facebook: https://www.facebook.com/CoCalcOnline
Twitter: https://x.com/cocalc_com
LinkedIn: https://www.linkedin.com/company/sagemath-inc./

Transcription:

Hello everyone, my name is Blaec Bejarano. Today, I'll show you how to create a log-log plot using SageMath in a Jupyter notebook within the CoCalc platform.

1. Visit cocalc.com and open your project. I'm using my "First Project" for this tutorial.

2. Create a new Jupyter notebook by clicking on the "+New" button. Name your file (e.g., "log_log") and select the "SageMath 10.6" kernel.

3. Let's start by creating a standard plot of the function $x^5$ over the domain $x \in [1, 16]$:

plot(x^5, (x, 1, 16), gridlines='minor')

4. Now, we'll create a log-log plot of the same function:

plot_loglog(x^5, (x, 1, 16), gridlines='minor')

The log-log plot displays both the x and y axes on logarithmic scales, which can help visualize certain characteristics of the function.

This quick tip demonstrates how to effectively use CoCalc to create log-log plots with SageMath. Please like, subscribe, and follow for more content. See you next time. Thanks again!

#SageMath #LogLogPlot #Jupyter #CoCalc #Plotting

cocalc