No description
Find a file
Iván 2f0e5cc134
Simplify badge section in README
Removed extra badge links from the README.
2025-12-15 14:20:57 -03:00
demo V0.5: 3D functions and command implemented! 2025-06-29 22:24:33 -03:00
src feat: change julia executable path setting 2025-12-12 17:30:21 -03:00
.editorconfig Initial commit 2025-06-25 10:39:46 -03:00
.eslintignore Initial commit 2025-06-25 10:39:46 -03:00
.eslintrc Initial commit 2025-06-25 10:39:46 -03:00
.gitignore Initial commit 2025-06-25 10:39:46 -03:00
.npmrc Initial commit 2025-06-25 10:39:46 -03:00
esbuild.config.mjs README and files structure 2025-06-25 19:50:12 -03:00
juliaplots.jl Allow empty colors 2025-09-22 22:41:10 +02:00
LICENSE Update LICENSE 2025-06-27 12:17:47 -03:00
manifest.json feat: change julia executable path setting 2025-12-12 17:30:21 -03:00
package-lock.json Plots generates into obsidian correctly. Also default settings tab added 2025-06-25 13:30:21 -03:00
package.json README and files structure 2025-06-25 19:50:12 -03:00
README.md Simplify badge section in README 2025-12-15 14:20:57 -03:00
tsconfig.json Initial commit 2025-06-25 10:39:46 -03:00
version-bump.mjs Initial commit 2025-06-25 10:39:46 -03:00
versions.json Plots generates into obsidian correctly. Also default settings tab added 2025-06-25 13:30:21 -03:00

JuliaPlots

Generate Julia function plots in Obsidian easily!

🌟 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

   ```juliaplots
   f(x) = x^2, red
   myfunction2(x) = cos(x)
   scatter= 2,1 ; 3,2,red,point1

   xmin = -10
   xmax = 25
   num_points = 100

   title = my graph
   x_label = time (s)
   y_label = velocity (m/s)

   color = rgb(0,255,0)
   scatter_color = black
   line_width = 2
   dark_mode = false
   ```

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.