kivy-garden / graph

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

1) y label rotated 2) padding issue #29

Open musarra opened 4 years ago

musarra commented 4 years ago

1) When using any sort of plot, y-label is rotated, which means upside down. 2) Also, padding is not correctly set up, depending solution

for 1st issue, the simple change below fixed the problem for me - line 425 to 428

from

    if ylabel:
        ylabel.y = int(
            y_next + (yextent - y_next) / 2. - ylabel.height / 2.)
        ylabel.angle = 90

to

    if ylabel:
        ylabel.y = int(
            y_next + (yextent - y_next) / 2. - ylabel.height / 2.)
        ylabel.angle = 0 

(needs padding change)

or

    if ylabel:
        ylabel.y = int(
            y_next + (yextent - y_next) / 2. - ylabel.height / 2.)
        ylabel.angle = 45

(y label is rotated along axis)