leonhma / obsidian-functionplot Goto Github PK
View Code? Open in Web Editor NEWA obsidian.md plugin for rendering maths graphs.
License: MIT License
A obsidian.md plugin for rendering maths graphs.
License: MIT License
Currently, changing colors in settings only works for charts created after that. It will be really cool if the plugin supports a way to have "global" color settings, so new colors are applied to all charts in the vault.
No response
No response
Would it be possible to add custom line colours and thickness in some format? For example:
y(x)=x | #005500 | 3
No response
No response
Originally posted by GavinLau15 September 11, 2022
Hi,
I recently installed this plugin you made, but when I press ctrl + p to enter my command pallete and try to type the command to create a graph, the option simply does not pop up, any help would be appreciated.
Allow configuring vertical plot size and horizontal alignment for plots.
They'd look much nicer if they were either centered or filled the horizontal space so there's no gap on the right.
It would be nice to have an option to show a legend like in this mockup.
The text in the legend should be separate from the function name / definition because that's not always helpful.
For this example the functions are
sin = sin(x*PI/180)
cos = cos(x*PI/180)
but the legend should just be sin(x)
and cos(x)
No response
No response
I would like to be able to generate a picture of the graph in order to use pdf export.
No response
No response
I tried getting a plot for f(x) = x^(1/3). Everything computed correctly... But only for positive numbers. Cubic roots (odd roots in general) are defined for negative numbers, therefore they also should be displayed.
Most likely the power operation terminates on the negative numbers by default, without checking if the value is actually computable. It's likely that the bug is within the evaluation function, precisely - in the power function.
---
bounds: [-6,6,-4,4]
disableZoom: true
grid: true
---
f(x) = x^(1/3)
Currently, if the user enters an invalid math equation, there's no way to let them know there was an error, and the chart also displays incompletely.
Maybe we can do something like what Obsidian Dataview does: showing a warning message instead of showing an incomplete element.
No response
No response
The ability to annotate points in the plot as requested by @yxsjune.
Currently not possible
Will need a PR to function-plot and a new release from them.
Add the possibility to specify discontinuous/piecewise functions and plot them as requested by @yxsjune.
Currently no way to specify discontinuous functions.
No response
I've tried to make square digital-like signal wave with this function (official function from Wikipedia):
f(x)= sign(sin(2*PI*x))
But it only contains upper and lower straight lines instead of connecting them and make square wave
I hope that i described it well.
No response
No response
Gave an error when not specifying a header at all.
Probably not checking for existence of header.
f(x) = 2
TypeError: Cannot read properties of null (reading 'match')
Hello,
I want to plot functions with same scale in x and y axis, so you get square grid.
When I plot my function with manual boundary settings and with disableZoom: true, I still get rectangular grid instead of square.
Any idea ?
Thx
No response
No response
Would it be possible to add sliders from the functionplot library? This would be a brilliant addition and allow interactive plots in obsidian!
For example:
a=slider(low,high,increment)
y(x)=a*x (or y(x,a)=a*x)
No response
No response
In the Function Plot library, there is a way to add only points without any connecting lines in the plot.
Is it possible to add this feature to the plugin?
No response
No response
Vectors
No response
No response
Inverse functions don't work, could it be that I'm doing the notation wrong?
No response
No response
When using some themes (in my case the Minimal theme) the plot preview is cut off because the modal is too small (see screenshot)
You could fix this by manually setting a style on the modal element to make sure it fits the content rather than being a fixed width.
width: min-content;
is better than width: auto;
or width: fit-content;
in my opinion even though it squishes some of the text. But you could probably fix that with a bit more work (like setting a min width on the text elements for something like that)
you can see how much better it fits when this is set:
No response
It would be nice if there was a way to ensure the aspect ratio is preserved when drawing graphs where it's important the x and y scales match. For example, when drawing circular arcs, it currently stretches/squishes it around:
The combination of a hardcoded aspect ratio of the plot window/box, and no way to auto-set the plot bounds based on that aspect ratio to ensure a 1:1 ratio, makes it really hard to guess what values you need for the bounds in order to make the x and y scale 1:1
There are many ways to solve this, but the easiest one is probably to provide an alternate bounds syntax where you specify the x and y center, as well as the height of the bounds, and then the width is auto-calculated to ensure the aspect ratio is matched so that the x and y plot scales are 1:1
For example, with a center of x=0, y=0 and a height of 2, it would auto-calculate the width like this:
No response
No response
Since we are dealing with math, I believe it's really required to be able to have math equations in the title.
For example:
title: $\lim_{x\to a}$
No response
No response
The plots, axis labels, and font sizes are relatively small and difficult to read. It would be nice to implement one or more of the following to increase readability (see discussion #25):
Thanks!
No response
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.