Settings
A file’s config { … } block sets up the calculator: the viewport, the grid, what the reader may change. It is written once, at the top level, one key: value to an entry.
config { showGrid: false xmin: -10; xmax: 10}y = sin(x)Switches
Section titled “Switches”degreeMode
Section titled “degreeMode”Use degrees instead of radians [default: false]
Takes true or false, or the name alone for true.
config { degreeMode: true }y = sin(x)showGrid
Section titled “showGrid”Show coordinate grid [default: true]
Takes true or false, or the name alone for true.
config { showGrid: false }y = sin(x)showXAxis
Section titled “showXAxis”Show x-axis [default: true]
Takes true or false, or the name alone for true.
config { showXAxis: false }y = sin(x)showYAxis
Section titled “showYAxis”Show y-axis [default: true]
Takes true or false, or the name alone for true.
config { showYAxis: false }y = sin(x)xAxisNumbers
Section titled “xAxisNumbers”Show numbers on x-axis [default: true]
Takes true or false, or the name alone for true.
config { xAxisNumbers: false }y = sin(x)yAxisNumbers
Section titled “yAxisNumbers”Show numbers on y-axis [default: true]
Takes true or false, or the name alone for true.
config { yAxisNumbers: false }y = sin(x)polarMode
Section titled “polarMode”Use polar coordinates [default: false]
Takes true or false, or the name alone for true.
config { polarMode: true }r = 2 + sin(3theta)lockViewport
Section titled “lockViewport”Lock viewport from panning/zooming [default: false]
Takes true or false, or the name alone for true.
config { lockViewport: true }y = sin(x)squareAxes
Section titled “squareAxes”Keep one x unit the same length as one y unit [default: true]
Takes true or false, or the name alone for true.
config { squareAxes: false; ymin: -1; ymax: 1 }y = sin(x)userLockedViewport
Section titled “userLockedViewport”Lock the viewport the way the graph’s own settings menu does, so nobody can pan or zoom [default: false]
Takes true or false, or the name alone for true.
config { userLockedViewport: true }y = sin(x)expressionsCollapsed
Section titled “expressionsCollapsed”Collapse expressions list [default: true]
Takes true or false, or the name alone for true.
config { expressionsCollapsed: false }y = sin(x)capExpressionSize
Section titled “capExpressionSize”Limit expression complexity [default: true]
Takes true or false, or the name alone for true.
config { capExpressionSize: false }y = sin(x)pointsOfInterest
Section titled “pointsOfInterest”Show points of interest [default: true]
Takes true or false, or the name alone for true.
config { pointsOfInterest: false }y = sin(x)Enable trace mode [default: false]
Takes true or false, or the name alone for true.
config { trace: false }y = sin(x)border
Section titled “border”Show calculator border [default: false]
Takes true or false, or the name alone for true.
config { border: true }y = sin(x)keypad
Section titled “keypad”Show on-screen keypad [default: true]
Takes true or false, or the name alone for true.
config { keypad: false }y = sin(x)graphpaper
Section titled “graphpaper”Show graph paper background [default: true]
Takes true or false, or the name alone for true.
config { graphpaper: true }y = sin(x)calculus
Section titled “calculus”Allow derivatives and integrals [default: true] (Desmos v1.12)
Takes true or false, or the name alone for true.
config { calculus: false }y = sin(x)clearIntoDegreeMode
Section titled “clearIntoDegreeMode”Clearing the graph keeps degree mode [default: matches degreeMode] (Desmos v1.12)
Takes true or false, or the name alone for true.
config { clearIntoDegreeMode: true }y = sin(x)invertedColors
Section titled “invertedColors”Invert every displayed color [default: false]
Takes true or false, or the name alone for true.
config { invertedColors: true }y = sin(x)invertedColorsControl
Section titled “invertedColorsControl”Show the “Reverse Contrast” checkbox [default: true] (Desmos v1.12)
Takes true or false, or the name alone for true.
config { invertedColorsControl: false }y = sin(x)showReducedMotionCover
Section titled “showReducedMotionCover”Pause animations for prefers-reduced-motion [default: false]
Takes true or false, or the name alone for true.
config { showReducedMotionCover: true }y = sin(x)projectorMode
Section titled “projectorMode”Larger fonts and thicker lines [default: false]
Takes true or false, or the name alone for true.
config { projectorMode: true }y = sin(x)zoomFit
Section titled “zoomFit”Allow expressions to specify a viewport [default: true]
Takes true or false, or the name alone for true.
config { zoomFit: false }y = sin(x)includeFunctionParametersInRandomSeed
Section titled “includeFunctionParametersInRandomSeed”Vary random() by a function’s arguments [default: true]
Takes true or false, or the name alone for true.
config { includeFunctionParametersInRandomSeed: false }f(a) = random()b = f(1)expressions
Section titled “expressions”Show the expressions list [default: true]
Takes true or false, or the name alone for true.
config { expressions: false }y = sin(x)expressionsTopbar
Section titled “expressionsTopbar”Show the toolbar above the expressions list [default: true]
Takes true or false, or the name alone for true.
config { expressionsTopbar: false }y = sin(x)zoomButtons
Section titled “zoomButtons”Show the zoom buttons [default: false]
Takes true or false, or the name alone for true.
config { zoomButtons: true }y = sin(x)keypadActivated
Section titled “keypadActivated”Open the keypad on load [default: false]
Takes true or false, or the name alone for true.
config { keypadActivated: true }y = sin(x)showResetButtonOnGraphpaper
Section titled “showResetButtonOnGraphpaper”Show a reset button on the graph paper [default: false]
Takes true or false, or the name alone for true.
config { showResetButtonOnGraphpaper: true }y = sin(x)settingsMenu
Section titled “settingsMenu”Show the graph settings menu [default: false]
Takes true or false, or the name alone for true.
config { settingsMenu: true }y = sin(x)authorFeatures
Section titled “authorFeatures”Enable author features such as secret folders [default: false]
Takes true or false, or the name alone for true.
config { authorFeatures: true }k = 3 @ secrety = k sin(x)administerSecretFolders
Section titled “administerSecretFolders”Reveal the contents of secret folders [default: false]
Takes true or false, or the name alone for true.
config { administerSecretFolders: true }k = 3 @ secrety = k sin(x)images
Section titled “images”Allow images [default: true]
Takes true or false, or the name alone for true.
config { images: false }y = sin(x)folders
Section titled “folders”Allow folders [default: true]
Takes true or false, or the name alone for true.
config { folders: false }y = sin(x)Allow notes [default: true]
Takes true or false, or the name alone for true.
config { notes: false }y = sin(x)sliders
Section titled “sliders”Allow sliders [default: true]
Takes true or false, or the name alone for true.
config { sliders: false }y = sin(x)substitutions
Section titled “substitutions”Allow “with” substitutions [default: true]
Takes true or false, or the name alone for true.
config { substitutions: true }y = a x ^ 2 with a = 0.5qwertyKeyboard
Section titled “qwertyKeyboard”Show the QWERTY keyboard on the keypad [default: true]
Takes true or false, or the name alone for true.
config { qwertyKeyboard: false }y = sin(x)distributions
Section titled “distributions”Allow statistical distributions [default: true]
Takes true or false, or the name alone for true.
config { distributions: false }y = sin(x)restrictedFunctions
Section titled “restrictedFunctions”Limit the available functions to a basic set [default: false]
Takes true or false, or the name alone for true.
config { restrictedFunctions: true }y = sin(x)forceEnableGeometryFunctions
Section titled “forceEnableGeometryFunctions”Enable geometry functions [default: false]
Takes true or false, or the name alone for true.
config { forceEnableGeometryFunctions: true }y = sin(x)pasteGraphLink
Section titled “pasteGraphLink”Allow pasting a graph link to import it [default: false]
Takes true or false, or the name alone for true.
config { pasteGraphLink: true }y = sin(x)pasteTableData
Section titled “pasteTableData”Allow pasting tabular data into a table [default: true]
Takes true or false, or the name alone for true.
config { pasteTableData: false }y = sin(x)autosize
Section titled “autosize”Resize the calculator with its container [default: true]
Takes true or false, or the name alone for true.
config { autosize: false }y = sin(x)plotInequalities
Section titled “plotInequalities”Shade inequalities [default: true]
Takes true or false, or the name alone for true.
config { plotInequalities: false }y = sin(x)plotImplicits
Section titled “plotImplicits”Plot implicit equations and inequalities [default: true]
Takes true or false, or the name alone for true.
config { plotImplicits: false }y = sin(x)plotSingleVariableImplicitEquations
Section titled “plotSingleVariableImplicitEquations”Plot single-variable implicit equations [default: true]
Takes true or false, or the name alone for true.
config { plotSingleVariableImplicitEquations: false }y = sin(x)brailleControls
Section titled “brailleControls”Show braille controls [default: true]
Takes true or false, or the name alone for true.
config { brailleControls: false }y = sin(x)Enable audio trace [default: true]
Takes true or false, or the name alone for true.
config { audio: false }y = sin(x)Allow the tone() function [default: true]
Takes true or false, or the name alone for true.
config { tone: false }y = sin(x)Mute audio output [default: false]
Takes true or false, or the name alone for true.
config { muted: true }y = sin(x)forceLogModeRegressions
Section titled “forceLogModeRegressions”Force regressions into log mode [default: false]
Takes true or false, or the name alone for true.
config { forceLogModeRegressions: true }y = sin(x)defaultLogModeRegressions
Section titled “defaultLogModeRegressions”Default new regressions to log mode [default: false]
Takes true or false, or the name alone for true.
config { defaultLogModeRegressions: true }y = sin(x)customRegressions
Section titled “customRegressions”Allow custom regressions [default: true]
Takes true or false, or the name alone for true.
config { customRegressions: false }y = sin(x)regressionTemplates
Section titled “regressionTemplates”Offer regression templates [default: true]
Takes true or false, or the name alone for true.
config { regressionTemplates: false }y = sin(x)logScales
Section titled “logScales”Allow logarithmic axis scales [default: true]
Takes true or false, or the name alone for true.
config { logScales: false }y = sin(x)intervalComprehensions
Section titled “intervalComprehensions”Allow interval comprehensions [default: true]
Takes true or false, or the name alone for true.
config { intervalComprehensions: false }y = sin(x)allowComplex
Section titled “allowComplex”Put the graph in complex mode [default: false]
Takes true or false, or the name alone for true.
In complex mode i is the imaginary unit, sqrt(-1) is i rather than undefined, a complex number is drawn as a point, and real, imag, conj and arg exist.
config { allowComplex: true }z = 3 + 4iw = conj(z)recursion
Section titled “recursion”Allow recursive definitions [default: false]
Takes true or false, or the name alone for true.
config { recursion: true }f(n) = {n <= 1: 1, n f(n - 1)}a = f(5)showEvaluationCopyButtons
Section titled “showEvaluationCopyButtons”Show copy buttons beside evaluations [default: false]
Takes true or false, or the name alone for true.
config { showEvaluationCopyButtons: true }a = 2 ^ 10decimalToFraction
Section titled “decimalToFraction”Offer decimal/fraction toggling [default: true]
Takes true or false, or the name alone for true.
config { decimalToFraction: false }a = 1 / 3sixKeyInput
Section titled “sixKeyInput”Enable six-key braille input [default: false]
Takes true or false, or the name alone for true.
config { sixKeyInput: true }y = sin(x)polarNumbers
Section titled “polarNumbers”Show numbers on the polar grid [default: true]
Takes true or false, or the name alone for true.
config { polarMode: true; polarNumbers: false }r = 2Numbers
Section titled “Numbers”Left edge of the viewport [default: -10]
Takes a number.
config { xmin: -2; xmax: 2 }y = x ^ 3Right edge of the viewport [default: 10]
Takes a number.
config { xmin: -2; xmax: 2 }y = x ^ 3Bottom edge of the viewport [default: fits the aspect ratio]
Takes a number.
config { ymin: -1; ymax: 8 }y = x ^ 2Top edge of the viewport [default: fits the aspect ratio]
Takes a number.
config { ymin: -1; ymax: 8 }y = x ^ 2fontSize
Section titled “fontSize”Base font size [default: 16]
Takes a number.
config { fontSize: 20 }y = sin(x)xAxisStep
Section titled “xAxisStep”Spacing between x-axis labels, 0 for automatic [default: 0]
Takes a number.
config { xAxisStep: 3.14159 }y = sin(x)yAxisStep
Section titled “yAxisStep”Spacing between y-axis labels, 0 for automatic [default: 0]
Takes a number.
config { yAxisStep: 0.5 }y = sin(x)xAxisMinorSubdivisions
Section titled “xAxisMinorSubdivisions”Minor grid lines per x-axis step, 0 for automatic [default: 0]
Takes a number.
config { xAxisMinorSubdivisions: 2 }y = sin(x)yAxisMinorSubdivisions
Section titled “yAxisMinorSubdivisions”Minor grid lines per y-axis step, 0 for automatic [default: 0]
Takes a number.
config { yAxisMinorSubdivisions: 2 }y = sin(x)Colours
Section titled “Colours”backgroundColor
Section titled “backgroundColor”Calculator background colour, #hex or a palette name [beta, Desmos v1.12]
Takes a colour: a #hex, a palette name, or an expression.
A hex literal or a palette name only: Desmos wants a hex string here, not an expression.
config { backgroundColor: #1e1e2e }y = sin(x)textColor
Section titled “textColor”Calculator text colour, #hex or a palette name [beta, Desmos v1.12]
Takes a colour: a #hex, a palette name, or an expression.
A hex literal or a palette name only: Desmos wants a hex string here, not an expression.
config { textColor: #444444 }y = sin(x)accentColor
Section titled “accentColor”Accent colour for buttons and focus outlines, #hex or a palette name [beta, Desmos v1.12]
Takes a colour: a #hex, a palette name, or an expression.
A hex literal or a palette name only: Desmos wants a hex string here, not an expression.
config { accentColor: PURPLE }y = sin(x)xAxisLabel
Section titled “xAxisLabel”Label for the x-axis [default: empty]
Takes a string.
config { xAxisLabel: "time"; yAxisLabel: "height" }y = sin(x)yAxisLabel
Section titled “yAxisLabel”Label for the y-axis [default: empty]
Takes a string.
config { xAxisLabel: "time"; yAxisLabel: "height" }y = sin(x)randomSeed
Section titled “randomSeed”Seed for random() [default: generated]
Takes a string.
The same seed gives the same numbers every time the graph opens.
config { randomSeed: "axis" }L = random(5)language
Section titled “language”UI language [default: en]
Takes a string.
config { language: "fr" }y = sin(x)graphDescription
Section titled “graphDescription”Screen-reader description of the whole graph [default: empty]
Takes a string.
config { graphDescription: "One period of a sine wave" }y = sin(x)Choices
Section titled “Choices”calculator
Section titled “calculator”Which Desmos calculator draws the graph [default: GRAPHING]
Takes one of its values. Values GRAPHING, GEOMETRY, GRAPHING_3D.
The geometry and 3D calculators draw the same expressions the graphing calculator does; their own tools are not in Axis yet.
config { calculator: GEOMETRY }P = (1, 2)y = xxAxisScale
Section titled “xAxisScale”x-axis scale [default: linear]
Takes one of its values. Values linear, logarithmic.
Needs logScales, which is on by default: with it off, the scale is linear whatever this says.
config { xAxisScale: logarithmic; xmin: 0.1; xmax: 1000 }y = log(x)yAxisScale
Section titled “yAxisScale”y-axis scale [default: linear]
Takes one of its values. Values linear, logarithmic.
Needs logScales, which is on by default: with it off, the scale is linear whatever this says.
config { yAxisScale: logarithmic; ymin: 0.1; ymax: 1000 }y = 2 ^ xxAxisArrowMode
Section titled “xAxisArrowMode”Arrowheads on the x-axis [default: NONE]
Takes one of its values. Values NONE, POSITIVE, BOTH.
config { xAxisArrowMode: POSITIVE }y = sin(x)yAxisArrowMode
Section titled “yAxisArrowMode”Arrowheads on the y-axis [default: NONE]
Takes one of its values. Values NONE, POSITIVE, BOTH.
config { yAxisArrowMode: BOTH }y = sin(x)actions
Section titled “actions”Allow action expressions [default: auto]
Takes one of its values. Values true, false, auto.
auto decides from the expression list, which cannot see a ticker - so the compiler switches actions on for any file with one.
config { actions: true }n = 0ticker n -> n + 1 @ playingreportPosition
Section titled “reportPosition”Position readout for screen readers [default: default]
Takes one of its values. Values default, coordinates, percents.
config { reportPosition: coordinates }y = sin(x)brailleMode
Section titled “brailleMode”Braille code [default: none]
Takes one of its values. Values none, nemeth, ueb.
config { brailleMode: nemeth }y = sin(x)