Skip to content

tick direction #165

Open
Open

Description

@louisKingdom

how to make tick direction inside the triangle,not outside?
for example ,I can adjust tick direction in matplotlib easily with sentence “plt.rcParams['xtick.direction'] = 'in'
plt.rcParams['ytick.direction'] = 'in'”
But, I do not know how to make it in ternary.
I would be very grateful if anyone could provide relevant suggestions

Activity

  1. marcharper commented on Feb 23, 2021

    @marcharper
    Owner

    There is currently no built-in way to do this. Ternary draws the ticks explicitly rather than using matplotlib's axes, so this would have to be added to the library. Take a look at the tick drawing functions in the library, basically one of the tick line endpoints would need to change to be on the inside of the plot and the ticks would need to be drawn above the other plot elements (a small or negative zorder should suffice).

  2. louisKingdom commented on Feb 23, 2021

    @louisKingdom
    Author

    There is currently no built-in way to do this. Ternary draws the ticks explicitly rather than using matplotlib's axes, so this would have to be added to the library. Take a look at the tick drawing functions in the library, basically one of the tick line endpoints would need to change to be on the inside of the plot and the ticks would need to be drawn above the other plot elements (a small or negative zorder should suffice).

    Thank you very much for your detailed reply, thank you for giving me ideas

  3. zodiac911 commented on May 28, 2021

    @zodiac911

    Looking forward to your custom method, maybe post a gist?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions