Skip to content

Add ability to specify the color of the axis tick labels #154

@TommiKabelitz

Description

@TommiKabelitz

Hello, I need to plot data on two axes simultaneously, a left and right axis. egui_plot supports multiple axes being rendered, but as far as I can tell, you have to manually map the data onto the primary axis and then scale the other axis appropriately. That's fine, if a little awkward. I am aware it would be quite a lot of work to change the API to support distinct axes natively.

That's not why I'm here though. What I genuinely need is the ability to change the color of the tick labels to distinguish between the axes. This is currently not possible through the public API. I have forked and will implement a workaround for my usecase. I am perfectly happy to merge back here once I am done, but wanted to check whether anyone had any recommendations about how the API should be tweaked to allow this or if there is anything that should be done in conjunction.

Cheers

Edit: Something like this, but such that each of the axes can be controlled and colored separately

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions