JuliaPlots

by Iván Mansilla
5
4
3
2
1
Score: 45/100

Description

Category: Coding & Technical Tools

The JuliaPlots plugin lets you render mathematical graphs directly in your notes using the Julia programming language and the Plots.jl package. It supports both 2D and 3D functions with simple syntax, allowing you to plot multiple equations, overlay scatter points, and control ranges on each axis. Users can customise colours, line width, labels, titles, and even adapt plots for dark mode vaults. The plugin also provides default parameters that can be overridden per plot, making it flexible for quick sketches or detailed visualisations. Because everything is generated through Julia, you get smooth and precise rendering of functions, though large datasets may take longer to process.

Reviews

No reviews yet.

Stats

25
stars
842
downloads
2
forks
245
days
144
days
147
days
1
total PRs
0
open PRs
0
closed PRs
1
merged PRs
3
total issues
1
open issues
2
closed issues
0
commits

RequirementsExperimental

  • Julia installed on your system

  • Plots package installed in Julia

Latest Version

5 months ago

Changelog

  • Added setting for changing the Julia executable path, fixing MacOS issues

README file from

Github

🌟 Features

  • Easily generate graphs of 2D and 3D functions directly in Obsidian using Julia
  • Straightforward and fast syntax
  • Customizable default parameters
  • Graph customization (Colors, line width, title, labels, dark mode)
  • Multiple functions rendering support
  • 2D Points rendering support

📋 Demo

Demo gif Demo 3D gif

🖥️ Installation

⚠️ This plugin only works for the desktop Obsidian app

  1. Install Julia on your system, and install the Plots package in it.

  2. Download the plugin from Settings > Community plugins > Browse and enable it

  3. Download juliaplots.jl from the latest release and put the file in .obsidian/plugins/juliaplots/ on your vault

⚡ Usage

Parameter Description
<name_of_function>(x)=<math_equation>, <color>, <label> Function to plot in terms of x. It can have any name, as long as it ends with (x). Color and label can be omitted. You can add as many as you want.
<name_of_function>(x,y)=<math_equation>, <color> 3D Function to plot in terms of x and y. It can have any name, as long as it ends with (x,y). Color can be omitted. You can add as many as you want.
scatter=<x>,<y>,<color>,<label> ; <x2>,<y2>... Points to render on the graph. Multiple points must be separated with a ;. Color and label can be omitted, but if not, they have to be in the specified order
xmin=<number> Start of the range on the x-axis that will be plotted
xmax=<number> End of the range on the x-axis that will be plotted
ymin=<number> Start of the range on the y-axis that will be plotted (for 3D functions)
ymax=<number> End of the range on the y-axis that will be plotted (for 3D functions)
num_points=<number> Number of points of the function that will be plotted on the range (warning: a small number will result in a non-smooth graph)
title=<graph_title> Title that will be displayed at the top of the graph
x_label=<label> Label that will be displayed on the x-axis
y_label=<label> Label that will be displayed on the y-axis
z_label=<label> Label that will be displayed on the z-axis (for 3D functions)
color=<color> Color that the functions on the graph will use if not specified
scatter_color=<color> Color that the points on the graph will use if not specified
line_width=<number> Width of the function lines
dark_mode=<true/false> Renders the graph with a suitable view for vaults with dark themes

☑️ If any of these parameters is omitted, the configured default value will be used! You can change them in the plugin's settings tab

Example

❗ Known issues

  • 🕒 Long waiting time: The plugin can take a long time to generate the graph depending on the user. If you have this problem, it is recommended to use a lower number of plot points.
  • 📁 'juliaplots.jl: No such file or directory': This means that the juliaplots.jl file wasn't downloaded and/or isn't in the right directory. Be sure of following the installation steps!
  • 🧩 'Please make sure that Julia is installed on your system and that it is included on your PATH': If you already have Julia installed and on your PATH, but it still doesn't work, you can fix this by specifying the full path to the Julia executable in the plugin settings.

🤝 Contributing

Feel free to open an issue or a pull request if you have suggestions, improvements, or bug reports. This plugin is in a very early development stage; every contribution is appreciated.