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

How to shows the axis ticks little line? #1047

Open
ehdiix opened this issue Oct 24, 2017 · 6 comments
Open

How to shows the axis ticks little line? #1047

ehdiix opened this issue Oct 24, 2017 · 6 comments

Comments

@ehdiix
Copy link

ehdiix commented Oct 24, 2017

So, basically I want to make plot that shows the axis ticks little line but doesn't show the grid lines inside the panel. Is it possible?

image

image

@bjarthur
Copy link
Member

wow, what an omission.

i was hoping grid_color or grid_line_width in Theme could be used as a hack, but those both effect the axis ticks as well.

relevant code is here.

need to think about the user interface. perhaps adding a boolean grid keyword argument to Guide.{x,y}ticks.

@frankwswang
Copy link

I encountered same problem recently.
I used the following code to make a plot that has a border and no grids inside the polt, which is quite common in a lot of academic papers. However, I don't know how to add ticks on the x-axis and y-axis without having grids. Is this possible? If not, will it be added as a feature in the future? I think it would be a useful one. Thank you!

using Compose, DataFrames, Gadfly, RDatasets
D = dataset("datasets", "iris")
p = plot(D, 
              x=:SepalLength, y=:SepalWidth, 
              color=:Species, 
              Theme(panel_stroke=colorant"black", 
                          grid_line_width=0mm))

@Mattriks
Copy link
Member

Adding tick marks is not on my current Roadmap #1385, but there is PR #792 which appears abandoned, so someone could modify/update.

@wilburtownsend
Copy link

For what it's worth, I would also find this very helpful

@rawinan-soma
Copy link

@frankwswang
Thanks for the solution but,
I do not need the upper and right panel stroke.
Is it possible?

@frankwswang
Copy link

I don't know how to resolve that issue. Sorry!

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

6 participants