-
Notifications
You must be signed in to change notification settings - Fork 250
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
Layering two sound plots causes an unexpected error #1421
Comments
The above plot will work by doing: p = plot(l1, l2, Scale.color_discrete) If you do For the above example, the question that needs investigation is: can a continuous color scale be allowed for plotting functions e.g. |
|
@Mattriks I solved my problem after posting the issue, but I think it violates the API expectation that layering plots should just work without additional workarounds. The error messages are unhelpful, as well. |
What was your solution? I'm unclear what you mean by "the API expectation that layering plots should work without additional workarounds" e..g specifying |
@Mattriks I don’t remember too well, but I think I just made the second layer’s data similar to the first (using a dataframe with similar columns and rows). I think the naive expectation is that plot(l1,l2) should just overlay the two plots, without further settings. For example, in this case, the colors should automatically be switched to a setting that allows the overlay to happen, instead of producing an error. Also, the solution that you are proposing is not at all hinted by the API; You know the problem is a clash of color scales, but this is because you know the internals of the system. A user who only knows the external API will not know the problem is a clash of colors. So what I am trying to say is, there needs to be either be an internal clash-breaker, or the clash and a possible avenue of trying to fix it need to be delivered to the end user as part if the error message. Of course, I am aware that this is easier said than done, so just close the issue if it’s hard to do. |
I think a helpful error message would be nice, so I'll investigate. |
Here is the code:
And here is the error:
The text was updated successfully, but these errors were encountered: