Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

YouTube Tutorial: https://youtu.be/TRbWjocJ2ZI

What You'll Learn: How to create visually appealing plots with grid lines using SageMath in a Jupyter notebook on the CoCalc platform. Learn to specify functions, define domains, and customize your plots with a few simple lines of code.

Transcription:

Hello everyone, my name is Blaec Bejarano. Today, I'll show you how to create plots with grid lines using SageMath in a Jupyter notebook on the CoCalc platform.

  1. Log in to your account at cocalc.com and open your desired project.

  2. Create a new Jupyter notebook by clicking on the "+New" button and selecting "Jupyter Notebook". Name your notebook and choose the SageMath kernel.

  3. In a code cell, use the plot() function to define your desired function. In this example, we'll plot x5x^5:

    • Specify the function you want to plot, e.g., x^5.

    • Define the domain using tuple notation (x, start, end), e.g., (x, 1, 16).

    • Add the gridlines parameter and set it to 'minor' to display grid lines on the plot.

  4. Click the run button or press Shift+Enter to execute the code cell and view your plot with grid lines.

52 views
ubuntu2204
Kernel: SageMath 10.6
plot(x^5, (x, 1, 16), gridlines='minor')
Image in a Jupyter notebook