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

Dashed Lines #392

Closed
dcjones opened this issue Aug 11, 2014 · 7 comments · Fixed by #969
Closed

Dashed Lines #392

dcjones opened this issue Aug 11, 2014 · 7 comments · Fixed by #969

Comments

@dcjones
Copy link
Collaborator

dcjones commented Aug 11, 2014

Was #284, but GitHub wrongly thought I merged that.

@IainNZ
Copy link
Contributor

IainNZ commented Sep 7, 2014

Oh darn I just found this - so theres no real way to make plots for publication? Is there anyway to hack around this?

@dcjones
Copy link
Collaborator Author

dcjones commented Sep 7, 2014

It would be pretty easy to add an option to Theme that changes how lines are drawn, then you can use multiple layers if want dashed and non-dashed lines.

Trickier is to make a dashed aesthetic, since it would need to generate a unique pattern for an arbitrary number of categories.

@IainNZ
Copy link
Contributor

IainNZ commented Sep 7, 2014

I think Theme-per-layer would be great for me (I'm using layers rather than aesthetics). This might be a project on a scale I could handle.

@floswald
Copy link

oh just saw this. talking about the same in #455. @dcjones can i just ask, if the problem is that you want to create arbitrary different line types, i don't think it's necessary to have gazillions of those. I think ggplot gives you around 8 or so and then repeats. For most of what I need, two linetypes would be enough. It's really an issue if you want to use it for publication purposes. Some things change extremely slowly (like people printing papers).

@shashi
Copy link
Collaborator

shashi commented Dec 23, 2014

@floswald Compose already has features to draw dotted lines, and you can specify the widths of the dashes and spaces to cycle through. So you can have arbitrary dotted line styles. It's a matter of giving it an API in Gadfly, I think.

@floswald
Copy link

Hey,

Yeah I've seen that in compose actually. Feeding it to gadfly is my
problem. I would have to spend some time figuring out how compose works.

Florian

On Tuesday, 23 December 2014, Shashi Gowda notifications@github.com wrote:

@floswald https://github.com/floswald Compose already has features to
draw dotted lines, and you can specify the widths of the dashes and spaces
to cycle through. So you can have arbitrary dotted line styles. It's a
matter of giving it an API in Gadfly, I think.


Reply to this email directly or view it on GitHub
#392 (comment).

@tbreloff
Copy link
Contributor

Just curious... has there been any progress on different line styles?

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

Successfully merging a pull request may close this issue.

5 participants