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

Do not crash when not providing a symbol in psternary -S #215

Merged
merged 1 commit into from
Dec 14, 2018

Conversation

joa-quim
Copy link
Member

For example if from Julia we do

ternary([0.16 0.331 0.509 3.344], R="0/100/0/100/0/100", J="X6i", B=:a, S="", show=1, Vd=1)

it crashes because no symbol was selected. This PR catch that case and errors instead of crashing. But maybe user error should be catch at a most lower level.

Copy link
Member

@PaulWessel PaulWessel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK general fix for psxy but I will also add a check to psternary later.

@PaulWessel PaulWessel merged commit d9183f0 into master Dec 14, 2018
@PaulWessel PaulWessel deleted the Ssymbol_crash branch December 14, 2018 14:42
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

Successfully merging this pull request may close these issues.

None yet

2 participants