Desmos.jl

Generate Desmos script (JSON) with Julia language.

Stable Dev Build Status codecov Aqua QA

First example

using Desmos

state = @desmos begin
    @text "First example"
    @expression cos(x) color=RGB(0, 0.5, 1) color="#f0f"
    @expression (cosh(t), sinh(t)) parametric_domain=-2..3
end

On vscode, the output plot will be shown in the plot pane.

On Pluto.jl, the output plot will be shown above the code.

On Jupyter, the output plot will be shown in the output cell.

Overview of the document

  • Home
    • This page introduces Desmos.jl and shows a first example of creating Desmos graphs.
  • Working with Desmos Text I/O
    • Desmos Text I/O browser extension enables importing and exporting Desmos graphs as text/JSON.
    • clipboard_desmos_state function allows transferring graphs between Julia and the Desmos web interface.
  • Display Configuration
    • Configuration options to customize how graphs are displayed in plot panes.
    • Options include width, height, clipboard export button, API version, and API key.
  • Function Compatibility
    • How Julia expressions are translated to Desmos LaTeX format.
    • Design principles, function mappings, and common pitfalls.
  • Example Gallery
    • Examples including basic functions, variable definitions, and Newton's method visualization.
  • Desmos.jl API
    • Complete API reference for public and private functions, macros, etc.
  • License
    • MIT License for Desmos.jl and notes about Desmos API usage terms.