kivy-garden / graph

Displays plots on a graph.
MIT License
50 stars 18 forks source link

Feature Request: Turning axis displays on and off #5

Open OlyDLG opened 9 years ago

OlyDLG commented 9 years ago

One should be able to turn off/on the display of everything "labeling" an axis, i.e., the label, ticks, grid-lines, even the axis itself, via one API. Example use-case: stacking multiple graphs in existing Layout objects in such a way that they share one common (e.g., time) axis (I see this as potentially a quicker way to achieve the same end result as my other request for a single Graph object to support it's own multi-plot presentation, but feel that it should have a "life of its own" as well). Suggested API: Graph([x|y|z]axis={'line'=[T|F], 'label'=[T|F], 'Mticks'=[T|F], 'mticks'=[T|F], etc.}) with corresponding get & set methods, and a convenience kwarg [x|y|z]axis=[T|F] that would "broadcast" the value to all the axis properties (again w/ a corresponding set method). (The individual properties API would still be necessary because a frequent use case would be to turn everything off EXCEPT the axis line itself; one might even argue that this too should have its own convenience kwarg and set method, although I guess one could easily do that by turning everything off and then turning just the line back on.) Thanks!