Skip to content

Unable to create x and y axis of same spacing. #3051

Answered by nnkrishnan
nnkrishnan asked this question in Q&A
Discussion options

You must be logged in to vote

Finally found the issue thanks to the users Geometry and uwezi from discord.
I had to specify x_length and y_length for the axes

axes = Axes(
            x_range=[-1, 1, 0.5],
            y_range=[-1, 1, 0.5],
            x_length=6,
            y_length=6,
            x_axis_config={
                "include_tip": False,
                "tick_size": 0.05,
                "numbers_with_elongated_ticks": [-1, 1],
                # "unit_size":2.5,
                "include_numbers": True,
            },
            y_axis_config={
                "include_tip": False,
                "tick_size": 0.05,
                "numbers_with_elongated_ticks": [-1, 1],
                # "unit_size":2.…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nnkrishnan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant