Skip to content

[Enhancement request] Direction variable for axis title #1

@hwiesmann

Description

@hwiesmann

When creating a y-axis on the right side of the plot the title's offset has to be calculated differently than the label offset in case the (major) ticks have the direction CPTSignNone. This is quite confusing.

The reason for this behavior is that the axis title has in contrast to the axis labels no own direction but the direction of the major ticks is used. In case of CPTSignNone for the ticks the API has to make a decision in which direction the title is to be placed: it chooses the negative direction (which is OK for all axes on the left or bottom side of a graph but not for an axis on the right side).

A workaround is to assign a negative title offset. But this is strange as the label offset is positive in case the labels have a positive direction.

Therefore, I suggest to add for the axis title a direction, too.

Regards,
Hartwig

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions