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

compose fn does not count dimensions of any plot except first #260

Open
yashaka opened this issue Aug 6, 2016 · 0 comments
Open

compose fn does not count dimensions of any plot except first #260

yashaka opened this issue Aug 6, 2016 · 0 comments

Comments

@yashaka
Copy link

yashaka commented Aug 6, 2016

The following code

(plot/compose 
  (plot/list-plot '((1 1) (2 2)) :joined true)
  (plot/list-plot '((2 2) (1 3)) :joined true :color "blue")
  (plot/list-plot '((1 3) (1 1)) :joined true :color "red"))

Will not paint everything above ((1 2) (2 2)) line. It will cut both ((2 2) (1 3)) and '((1 3) (1 1)) segments

The workaround exists:

(plot/compose 
  (plot/list-plot '((1 1) (2 3)))    ;; by providing additional "normalised" plot 
  (plot/list-plot '((1 1) (2 2)) :joined true)
  (plot/list-plot '((2 2) (1 3)) :joined true :color "blue")
  (plot/list-plot '((1 3) (1 1)) :joined true :color "red"))

But it's pretty uncomfortable to do this manually each time. I believe that compose should count dimensions of all plots passed to it.

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

1 participant