Skip to content
Advertisement

Mixing horizontal and vertical ticks

I have the example plot shown below. How can I make the first and third x-axis tick horizontal and the second and fourth tick vertical?

JavaScript

enter image description here

Advertisement

Answer

Not sure if there is an automate way of doing it, but you can do it “manually” for each tick:

JavaScript

Graph with the horizontal labels

Every item of the ticks_labels list is a Text artist, so you can change pretty much everything (size, color, position, …)

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement