Skip to content

Calculate hidden minor ticks if ticklabelindex is set.#7735

Open
my-tien wants to merge 8 commits intoplotly:masterfrom
my-tien:calculate-hidden-minor-ticks
Open

Calculate hidden minor ticks if ticklabelindex is set.#7735
my-tien wants to merge 8 commits intoplotly:masterfrom
my-tien:calculate-hidden-minor-ticks

Conversation

@my-tien
Copy link
Copy Markdown
Contributor

@my-tien my-tien commented Mar 27, 2026

This PR ensures that the ticklabelindex axis property has an effect even if minor ticks are not visible. Labels are then drawn at possibly invisible minor tick labels n positions away from a major tick.
This makes it possible to draw the label for a period to the left of a major tick which was previously not always possible. See this issue for two examples where it was previously not possible: #7423

Disclaimer I am required to add that…

the software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. in no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

@emilykl
Copy link
Copy Markdown
Contributor

emilykl commented Apr 15, 2026

Thanks for the PR, @my-tien! Sorry for the delay, I'll review ASAP.

Have you looked into the failing image tests yet?

@emilykl emilykl self-assigned this Apr 15, 2026
@my-tien
Copy link
Copy Markdown
Contributor Author

my-tien commented Apr 22, 2026

Hi @emilykl, not yet! I'll try to do it next week.

my-tien added 4 commits April 27, 2026 14:40
This additional minor tick was added for ticklabel placement via ticklabelindex only. It should never be rendered.
…dden-minor-ticks

Undoes update of date_axes_period_ticklabelindex.png and date_axes_period2_ticklabelindex.png because they changed in the main branch. Have to do the update with the output of the next CI run.
…xes_period2_ticklabelindex.

This time after having merged master into this branch.
@my-tien
Copy link
Copy Markdown
Contributor Author

my-tien commented Apr 27, 2026

Failing baseline image tests are resolved. I also updated date_axe_period_ticklabelindex.png and date_axe_period2_ticklabelindex.png.
In each image, the left-most label of one of the axes is now drawn when it was previously omitted. I think this is actually more correct than before.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants