nullscreen / squid

A Ruby library to plot charts in PDF files
http://nullscreen.github.io/squid/
MIT License
220 stars 42 forks source link

Support negative axes #58

Open rwrrll opened 7 years ago

rwrrll commented 7 years ago

I had an issue where rendering a series of values <= 0 would still produce an axis label at +4 (or more accurately, whatever steps was set to). This change results in a maximum axis label of 0 if all values are <= 0.

Thanks for the library, please let me know if there's anything you'd like me to look at here!

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 4ef085e27b48eec782c291dee7ac53a8fa6193a4 on skinnyfit:support-negative-axes into c8fa02c185d41b880219bc72707b9d72a54b374b on Fullscreen:master.