-
Notifications
You must be signed in to change notification settings - Fork 15
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
Can't hide legend #71
Comments
hmm. looks like it only sees showlegend if legend is set: https://github.com/brentp/nim-plotly/blob/master/src/plotly/api.nim#L210 |
Yes, I vaguely remember this. I think the reason for this was something along the lines of providing a toggle to show / hide a legend independent of whether a legend would be created. I don't remember the details anymore though. |
Looking into this right now again, I realize what the issue was.
So yes, I don't know a good solution that isn't a breaking change. Any ideas? |
For this case, can't we just do something like this:
|
Ah, I misunderstood the OP's problem. I didn't realize it's about But your proposal has the problem that then |
yeah, it's not ideal, but if a legend is specified, presumably, it's desirable to show it. one can just not specify the legend if they don't want to show it. do I miss something? |
showlegend doesn't seem to get set in the output.
The text was updated successfully, but these errors were encountered: