Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent naming convention for keys/options? #474

Open
user202729 opened this issue Apr 28, 2024 · 3 comments
Open

Inconsistent naming convention for keys/options? #474

user202729 opened this issue Apr 28, 2024 · 3 comments

Comments

@user202729
Copy link

e.g.

image

There are spaces in enlarge x limits, but not in clip xlimits or enlargelimits.

(Initially pointed out in https://tex.stackexchange.com/a/64236/250119 .)

@Mo-Gul
Copy link
Contributor

Mo-Gul commented Apr 29, 2024

It's true that some key names are inconsistent. But I'll argument that these appeared over time when most likely the development of the package was done by a single person. In the meantime there is too much code out there that uses this inconsistent naming scheme, so changing the names is not an option until v2 (where breaking changes would be allowed).

So for now the only option would be to add keys with consistent names. For that (i.e. aliases) you'll find already some in the manual, e.g. (x|y|z)ticklabel style and (x|y|z) tick label style`.

Feel free to provide a PR.

@hmenke
Copy link
Member

hmenke commented Apr 29, 2024

This issue is well known, but unfortunately due to the age and spread of pgfplots it has become essentially unfixable. We could provide aliases for all the keys with maybe more sensible/consistent names, but I think pgfplots already has more than enough keys as it is.

@user202729
Copy link
Author

user202729 commented Apr 29, 2024

I think having lots of deprecated key is not really a problem as long as they don't appear in the manual (except possibly in "Deprecated keys" section)?

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

No branches or pull requests

3 participants