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

Add xtick and ytick in Axis #184

Closed
jywu20 opened this issue Mar 7, 2022 · 2 comments
Closed

Add xtick and ytick in Axis #184

jywu20 opened this issue Mar 7, 2022 · 2 comments

Comments

@jywu20
Copy link

jywu20 commented Mar 7, 2022

Sometimes we need to change the xtick option, for example in this SE question. However, currently xtick is not an optional argument ( MethodError: no method matching Axis(::Array{PGFPlots.Plots.Plot,1}; xlabel=L"$k$", xticks=0:4)).
I suggest adding this as an optional argument to Axis function.

@mirkobunse
Copy link
Contributor

Just use the style argument

Axis(...; style="xtick={0,1,2,3,4}")

and see the other discussions if you need more details: #42 #88 #175

@jywu20
Copy link
Author

jywu20 commented Mar 7, 2022

Thanks for you answer!

@mykelk mykelk closed this as completed Mar 7, 2022
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

No branches or pull requests

3 participants