unconed / MathBox.js

MathBox is a (work in progress) library for making presentation-quality math diagrams in WebGL.
MIT License
1.94k stars 126 forks source link

Bugs in axis labels display #14

Open guillaumeprevost opened 10 years ago

guillaumeprevost commented 10 years ago

The seems to be a bug in the display of the labels of the axes ticks. This first screen capture shows a viewport created in a 800x600 div, with a camera, axes and curves.

screen shot 2013-11-29 at 11 09 44 am

So far everything is normal.

But, when animating the camera's orbit to "zoom in", all the elements aren't displayed outside the div containing the viewport, except for the axes ticks labels:

screen shot 2013-11-29 at 11 10 03 am

When "zooming in" even more, some very long scrollbars are added to the entire page:

screen shot 2013-11-29 at 11 10 40 am

The same type of issue occurs when scaling the Viewport. Example passing the viewport's scale from 1 to 2:

screen shot 2013-11-29 at 11 08 34 am

This might be a trivial fix for someone knowing the code well.

guillaumeprevost commented 10 years ago

This might also be the right place to request the possibility of actually labelling the axes with simple title and eventually unit, just above each axis arrow. Most scientists consider a graph incomplete if it isn't properly labelled.

Thanks !