You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is bit of a weird limitation with the bar plots. The bars are at the moment drawn with respect to the first value in the domain - but this causes some usability issues
If you have bar plots that have mostly negative values - for instance:
Adding a Y axis that spans the full range is impossible b/c the domain range must start with a zero (otherwise the zero point of the bar will be some negative value)
.An alternative that almost works - that will give you just a negative Y axis - is to give it a decreasing :domain and a modified :range
(b/c if the first argument to range is smaller than the second, then the incrementor need to be negative)
However this didn't seem to fix the issue. My guess is that thi.ng.math.core/in-range? isn't meant to handle d2 > d1. I didn't want to go deeper and change things in math.core b/c it might break something else in the larger project
In any case, maybe decreasing domain ranges shouldn't be supported :)
Ideally some alternate solution would allow the axis to go from negative to positive in whatever domain the user wants (by setting some sort of :zero-point for the bar plots maybe?).
The text was updated successfully, but these errors were encountered:
There is bit of a weird limitation with the bar plots. The bars are at the moment drawn with respect to the first value in the domain - but this causes some usability issues
If you have bar plots that have mostly negative values - for instance:
Adding a Y axis that spans the full range is impossible b/c the domain range must start with a zero (otherwise the zero point of the bar will be some negative value)
.An alternative that almost works - that will give you just a negative Y axis - is to give it a decreasing
:domain
and a modified:range
This however clobbers the axis labels.
It looks like an issue in
thi.ng.geom.viz.core/lin-tick-marks
I tried changing the code to look like
(b/c if the first argument to
range
is smaller than the second, then the incrementor need to be negative)However this didn't seem to fix the issue. My guess is that
thi.ng.math.core/in-range?
isn't meant to handled2 > d1
. I didn't want to go deeper and change things inmath.core
b/c it might break something else in the larger projectIn any case, maybe decreasing domain ranges shouldn't be supported :)
Ideally some alternate solution would allow the axis to go from negative to positive in whatever domain the user wants (by setting some sort of
:zero-point
for the bar plots maybe?).The text was updated successfully, but these errors were encountered: