Desmos 3D

pending

by Eroxl

Forked from Desmos

Desmos graph renderer with support for 3D graphs.

2 starsUpdated 12d agoGPL-3.0Discovered via Obsidian Unofficial Plugins
View on GitHub

Obsidian Desmos 3D

example

A fork of Obsidian Desmos that adds 3D graphing support using Desmos 3D. Render both 2D and 3D mathematical graphs directly in your Obsidian notes.

Usage

Create a fenced codeblock with the language set to desmos-graph (2D) or desmos-graph-3d (3D). The block has two sections separated by ---: settings (optional) above the separator, and equations below it. If you have no settings, you can omit the --- and write equations directly.

Basic Structure

```desmos-graph-3d
setting1=value1; setting2=value2
---
equation1
equation2
```

Settings are key=value pairs separated by ; or newlines. Equations go one per line after the ---.

Settings

Common Settings (2D and 3D)

SettingTypeDefaultDescription
widthnumber600Graph width in pixels
heightnumber400Graph height in pixels
degreeModeradians / degreesradiansAngle mode for trig functions
defaultColorcolorDefault color applied to all equations

2D Settings (desmos-graph)

SettingTypeDefaultDescription
leftnumber-10Left boundary
rightnumber10Right boundary
bottomnumber-7Bottom boundary
topnumber7Top boundary
gridbooleantrueShow gridlines
hideAxisNumbersbooleanfalseHide axis tick labels
xAxisLabelstringLabel for x-axis
yAxisLabelstringLabel for y-axis
xAxisLogarithmicbooleanfalseLogarithmic x-axis
yAxisLogarithmicbooleanfalseLogarithmic y-axis

3D Settings (desmos-graph-3d)

SettingTypeDefaultDescription
showGridbooleantrueShow the grid
showAxisbooleantrueShow the axes
xAxisLabelstringLabel for x-axis
yAxisLabelstringLabel for y-axis
zAxisLabelstringLabel for z-axis
lockedbooleanfalseLock the graph to prevent interaction (enables caching)

Equation Syntax

Each equation line follows this format:

expression|restriction|style|color|label:text

Segments are separated by |. Only the expression is required — everything else is optional and order-flexible.

Expressions

Write any valid Desmos expression:

y=x^2
x^2+y^2=1
9<x^{2}+y^{2}+z^{2}<16

Restrictions

Add conditions to limit where an equation is drawn:

y=x^2|x>0
y=\sin(x)|-5<x<5

Styles

StyleDescription
SOLIDSolid line (default)
DASHEDDashed line
DOTTEDDotted line
NOLINENo line
POINTFilled point
OPENOpen (hollow) point
CROSSCross point

Colors

Use any named color or a hex code:

red, green, blue, yellow, magenta, cyan, purple, orange, black, white

y=x^2|blue
y=\sin(x)|#ff6600

If no color is specified, the plugin uses Obsidian's theme colors or Desmos defaults.

Labels

Add a label to an equation with the label: prefix:

(1,2)|POINT|label:Point A

Hidden Equations

Use the HIDDEN keyword to define an equation without displaying it (useful for helper expressions):

a=5|HIDDEN
y=a*x

Features

  • Interactive 3D graphs — 3D graphs with locked=false (the default) are fully interactive: rotate, zoom, and pan. Camera position is preserved between renders.
  • Cached graphs — Locked graphs and all 2D graphs are rendered as static images (SVG for 2D, PNG for 3D) and cached for performance.
  • Theme integration — Graph axes and gridlines automatically match your Obsidian theme colors.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.