Configuration Reference
DifferentialLab is configured via a .env file in the project root. Copy
.env.example to .env to get started, or use the in-app Configuration
dialog (Main Menu > Configuration) which writes the file for you.
After saving through the dialog the application restarts automatically.
UI Theme
Variable |
Type |
Default |
Description |
|---|---|---|---|
|
str |
|
Main background colour (hex). |
|
str |
|
Default text colour (hex). |
|
str |
|
Button / input background colour (hex). |
|
int |
|
Width of main-menu buttons in characters. |
|
str |
|
Primary button text colour. |
|
str |
|
Cancel / destructive button text colour. |
|
str |
|
Secondary accent button text colour. |
|
int |
|
Base font size in points. |
|
str |
|
Font family for the interface. |
|
int |
|
Padding in pixels between UI elements. |
Colours accept any Tk colour name (e.g. lime green, crimson) or a hex
code (#RRGGBB).
UI Tooltips
Variable |
Type |
Default |
Description |
|---|---|---|---|
|
int |
|
Delay in milliseconds before showing a tooltip. |
|
int |
|
Maximum width in pixels before tooltip text wraps. |
|
int |
|
Horizontal padding inside tooltip. |
|
int |
|
Vertical padding inside tooltip. |
Plot Style
Variable |
Type |
Default |
Description |
|---|---|---|---|
|
int |
|
Plot width in inches. |
|
int |
|
Plot height in inches. |
|
int |
|
Dots per inch (50–1000). |
|
bool |
|
Show a title above the plot. |
|
bool |
|
Draw a background grid. |
|
str |
|
Colour of the main solution curve. |
|
float |
|
Line thickness in points. |
|
str |
|
|
|
str |
|
Matplotlib colormap for extra derivatives. |
Plot Markers
Variable |
Type |
Default |
Description |
|---|---|---|---|
|
str |
|
|
|
int |
|
Marker size in points. |
|
str |
|
Marker fill colour. |
|
str |
|
Marker edge colour. |
Plot Phase-Space
Variable |
Type |
Default |
Description |
|---|---|---|---|
|
str |
|
Colour of the start marker in phase-space plots. |
|
str |
|
Colour of the end marker in phase-space plots. |
|
int |
|
Size of start/end markers in phase-space plots. |
Plot Fonts
Configured directly under Plot Style in the Configuration dialog.
Variable |
Type |
Default |
Description |
|---|---|---|---|
|
str |
|
Font family for matplotlib plots. Options: |
|
str |
|
Title font size (matplotlib size string). |
|
str |
|
Title font weight. Options: |
|
int |
|
Axis label font size in points. |
|
str |
|
Axis label font style. Options: |
|
int |
|
Tick label font size in points. |
Plot 3D / Contour
Variable |
Type |
Default |
Description |
|---|---|---|---|
|
str |
|
Matplotlib colormap for 3D surface and contour plots. |
|
int |
|
Number of contour levels in 2D contour plots. |
|
float |
|
Transparency of the grid lines (0–1). |
|
float |
|
Transparency of 3D surfaces (0–1). |
|
float |
|
Shrink factor for the colorbar (0–1). |
Plot Animation
Variable |
Type |
Default |
Description |
|---|---|---|---|
|
float |
|
Line width for vector animation plot. |
|
float |
|
Line width for vertical lines in animation. |
|
float |
|
Transparency of vertical lines (0–1). |
|
float |
|
Margin added to y-axis limits in animation. |
|
int |
|
Maximum frames per second for animation playback. |
Solver Defaults
The default integration method is the first in the available list (RK45). Use the
Parameters dialog to select a different method per run.
Variable |
Type |
Default |
Description |
|---|---|---|---|
|
float |
|
Maximum step size (0 = automatic). |
|
float |
|
Relative tolerance. |
|
float |
|
Absolute tolerance. |
|
int |
|
Number of evaluation points in the grid. |
Solver Methods
Method |
Description |
|---|---|
|
Runge-Kutta 4(5) – general-purpose explicit method. |
|
Runge-Kutta 2(3) – low-order, faster per step. |
|
Runge-Kutta 8(5,3) – high-order explicit method. |
|
Implicit Runge-Kutta (Radau IIA) – stiff problems. |
|
Backward Differentiation Formula – stiff problems. |
|
Adams/BDF auto-switching – stiff/non-stiff detection. |
Logging & Update
Variable |
Type |
Default |
Description |
|---|---|---|---|
|
str |
|
Verbosity: |
|
str |
|
Log file name (project root). |
|
bool |
|
Also print logs to the terminal. |
|
bool |
|
Check for updates on startup (once per week). |
|
int |
|
Days between automatic update checks. |
|
bool |
|
Force update check on every startup. |
|
str |
(main branch) |
URL to pyproject.toml for version check. |