Giter VIP home page Giter VIP logo

obsidian-functionplot's Introduction

๐Ÿ‘‹ Hi there!

obsidian-functionplot's People

Contributors

cdricms avatar deepsourcebot avatar dependabot[bot] avatar leonhma avatar shahriarkh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

obsidian-functionplot's Issues

Set colors for all charts in the vault

What's your feature?

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.

Any related problems?

No response

Additional context?

No response

Line customisation

What's your feature?

Would it be possible to add custom line colours and thickness in some format? For example:
y(x)=x | #005500 | 3

Any related problems?

No response

Additional context?

No response

Help setting up

Discussed in #35

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.

Plot placement settings

What's your feature?

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.

Function Legend

What's your feature?

It would be nice to have an option to show a legend like in this mockup.
image

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)

Any related problems?

No response

Additional context?

No response

The ability to generate pictures for exports

What's your feature?

I would like to be able to generate a picture of the graph in order to use pdf export.

Any related problems?

No response

Additional context?

No response

Odd roots don't evaluate for negative numbers

What happened?

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.

Please confirm

  • I have checked that I am using the latest version of the plugin released.
  • I have searched for similar issues, but found none.

Any ideas?

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.

Additional info

obraz

---
bounds: [-6,6,-4,4]
disableZoom: true
grid: true
---
f(x) = x^(1/3)

Show warning when math equation is invalid

What's your feature?

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.

Any related problems?

No response

Additional context?

No response

Annotate points in the plot

What's your feature?

The ability to annotate points in the plot as requested by @yxsjune.

Any related problems?

Currently not possible

Additional context?

Will need a PR to function-plot and a new release from them.

Discontinuous functions

What's your feature?

Add the possibility to specify discontinuous/piecewise functions and plot them as requested by @yxsjune.

Any related problems?

Currently no way to specify discontinuous functions.

Additional context?

No response

Square wave amplitude line not visible

What happened?

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

image

I hope that i described it well.

Please confirm

  • I have checked that I am using the latest version of the plugin released.
  • I have searched for similar issues, but found none.

Any ideas?

No response

Additional info

No response

[Bug]: Error on missing header

What happened?

Gave an error when not specifying a header at all.

Any ideas?

Probably not checking for existence of header.

Additional info

f(x) = 2

TypeError: Cannot read properties of null (reading 'match')

Disable zoom ?

What happened?

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

Please confirm

  • I have checked that I am using the latest version of the plugin released.
  • I have searched for similar issues, but found none.

Any ideas?

No response

Additional info

No response

Variable Sliders

What's your feature?

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)

Any related problems?

No response

Additional context?

No response

Way to plot (x,y) point.

What's your feature?

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?

A screenshot from Function Plot documentation

Any related problems?

No response

Additional context?

No response

Vectors

What's your feature?

Vectors

Any related problems?

No response

Additional context?

No response

Inverse fuction like arcsin, arcos are not running

What happened?

Inverse functions don't work, could it be that I'm doing the notation wrong?

Please confirm

  • I have checked that I am using the latest version of the plugin released.
  • I have searched for similar issues, but found none.

Any ideas?

No response

Additional info

No response

[Bug]: Plot not showing

What happened?

I tried installing the plugin (mac OS 10.15.7) in a brand new vault and the plot isn't showing. I'm using your example code. Appreciate any help you can provide. Thanks!

image

s20220601_213439

Any ideas?

No response

Additional info

No response

Add inequalities.

What's your feature?

Color area that is covered by solution of inequaility eg:
image

Any related problems?

No.

Additional context?

Is this project still supported anyway? Maybe you could allow someone to improve this really nice project if you do not want to.

Plot preview cut off when using certain themes

What happened?

When using some themes (in my case the Minimal theme) the plot preview is cut off because the modal is too small (see screenshot)

image

Please confirm

  • I have checked that I am using the latest version of the plugin released.
  • I have searched for similar issues, but found none.

Any ideas?

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:
image

Additional info

No response

Enforcing 1:1 Aspect Ratio

What's your feature?

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:

image

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:

image

Any related problems?

No response

Additional context?

No response

Allow titles with math notation

What's your feature?

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}$

Any related problems?

No response

Additional context?

No response

[Bug]: Exponential Graph not displaying line

What happened?

when using the following configuration the graph doesn't show the line.
when I hover over the graph it does show the coordinates.

Any ideas?

No response

Additional info

---
title: log Graph
disableZoom: true
bounds: [-4, 4, -4, 4]
grid: false
xLabel: x
yLabel: y
---
f(x) = 2^x

image

[FR]: Increase readabilty

What's your feature?

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):

  • increase default font size (or option to change size)
  • increase default line thickness (or option to change line thickness)
  • option to change color of lines

Thanks!

Any related problems?

No response

Additional context?

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.