Lumiwealth / quantstats_lumi

Apache License 2.0
53 stars 20 forks source link

Respect boolean parameter ylabel (disable when False) #5

Closed alexcalligraphy closed 5 months ago

alexcalligraphy commented 5 months ago

Currently, the parameter =ylabel= is ignored and the hard-coded ylable is written regardless of the =ylabel= parameter is truthy or falsy.

This change will not set an ylable for the chart if the =ylabel= parameter is set to a falsy value.

In a next step one could check if =ylable= is a String and if so, set the actual ylable string to that string.