Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for custom labels #15

Open
steren opened this issue Dec 8, 2013 · 4 comments
Open

Add support for custom labels #15

steren opened this issue Dec 8, 2013 · 4 comments

Comments

@steren
Copy link

steren commented Dec 8, 2013

Axes can have numerical labels, but there is a need to display axes names or any custom labels in space with a given style (color, size, but also left,right or centered alignment).

For example, compare this MathBox animation with this video where labels have been added on top of a screengrab of the webpage animation.

@fourplusone
Copy link
Contributor

I've added experimental label support in my branch of mathbox.js: https://github.com/fourplusone/MathBox.js/tree/feature/labels
Syntax is

.label({
    position: [x,y,z],
    text: "a^3+x"
})

@steren
Copy link
Author

steren commented Feb 3, 2014

Nice work. That will be definitively helpful.
Could you open a pull request on this repository with these changes?

@Jeegliputh
Copy link

http://lzd.kopeisk.info/math/math2/examples/Empty.html
my program is not work :( . Could you help me? please...

@yugo-ren
Copy link

Is it possible to add an 'id' field and control the position of the label dynamically?

I tried addind id: 'foo' to JSON, and I can access and change position, text, etc. fields using mathbox.set("#foo"), but nothing changes in the box. I looked at the commit and couldn't really figure out if the labels refresh upon change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants