We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Data displayed in a simple bars graph disappear if reverse is set to True at a LinearScale.
reverse
True
LinearScale
To Reproduce
from bqplot import OrdinalScale, Bars, LinearScale quintes = np.array( ["0 - 4", "5 - 9", "10 - 14", "15 - 19", "20 - 24", "25 - 29", "30 - 34", "35 - 39", "40 - 44", "45 - 49", "50 - 54", "55 - 59", "60 - 64", "65 - 69", "70 - 74", "75 - 79", "80 - 84", "85 - 89", "90 - 94", "95 - 99", "> 100"]) men = np.array( [1915887, 2100931, 2494484, 2464805, 2361297, 2529633, 2669927, 2754129, 2753282, 2552531, 2211649, 1697221, 1311024, 902675, 722246, 482686, 273915, 108639, 35867, 10965, 1238]) x_ord = OrdinalScale() y_linear = LinearScale() bars = Bars(x=quintes, y=men, scales={'x':x_ord, 'y': y_linear}, orientation="horizontal", colors=["deepskyblue"] ) # bars.scales['y'].reverse=True ax_x = Axis(scale=x_ord, orientation = 'vertical', visible=False) ax_y = Axis(scale=y_linear, tick_format="0.0f") fig = Figure(marks=[bars], axes=[ax_x, ax_y]) fig
The bars graph is displayed. However, after uncommenting this line in the code:
bars.scales['y'].reverse=True
the bars disappear even though the axes is effectively reversed.
Expected behavior The bars should be displayed in the same way of the axes, that is, from right to left.
Environment (please complete the following information): Ubuntu 21.04 Python 3.9.5 JupyterLab 3.2.4 bqplot 0.12.32
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Data displayed in a simple bars graph disappear if
reverse
is set toTrue
at aLinearScale
.To Reproduce
The bars graph is displayed. However, after uncommenting this line in the code:
the bars disappear even though the axes is effectively reversed.
Expected behavior
The bars should be displayed in the same way of the axes, that is, from right to left.
Environment (please complete the following information):
Ubuntu 21.04
Python 3.9.5
JupyterLab 3.2.4
bqplot 0.12.32
The text was updated successfully, but these errors were encountered: