Trident HelpOpen the calculator

Using the app

Plot graphs and data in a notebook

Use plot cells to draw functions, 3D surfaces, scatter plots with a fitted line, and histograms.

Open in Trident

A plot cell holds one drawing command. Run it and the picture appears under the cell. Plots can be dragged to move around and zoomed.

  1. Add a Plot cell. To graph functions, type plot(sin(x), x, -2π, 2π). You can list several functions, and the numbers after x set the window. Add two more numbers for the y range.
  2. For a 3D surface type plot3d(x^2-y^2). Add ranges if you like: plot3d(f(x,y), x, a, b, y, c, d).
  3. To plot data first add a Data cell and paste CSV or TSV text (the first row holds column names). Give the table a name, such as s. You can sort it and filter it, for example height > 150.
  4. Then use a plot cell with the columns: scatter(s.hours, s.score, lin) draws points with a straight-line fit. Replace lin with quad or exp for other fits, or resid for a residual plot. hist(s.score, 4) draws a histogram with 4 bars.
  5. Run the cell. Drag the plot to pan, use the zoom in and zoom out buttons or pinch to zoom, and use Reset view to come back.
  6. If a cell shows a red message, read it, fix the command and run again.

Tips

Related guides