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

Introduce smith subplot and scattersmith trace type #5956

Merged
merged 140 commits into from
Oct 19, 2021
Merged

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Sep 29, 2021

Resolves #4074.
Revise & complete the work of #5615 reflected in the 60c30f4 commit.

@plotly/plotly_js
cc: @jackparmer

waxlamp added 30 commits June 28, 2021 15:22
This is just a copy of scatterpolar with a changed name.
This commit also adds a `smith` plot type, which is a copy of
polar, with minimal changes needed to host the `scattersmith` trace
type.
Also cleaned up code a little bit.
This is to eliminate some state-based errors appearing in the image
tests.
real: {
valType: 'data_array',
editType: 'calc+clearAxisTypes',
description: 'Sets the real coordinates'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we be more explicit here (and for imag) about what values these should be? Something like "Sets the real component of the data, in units of normalized impedance such that real=1, imag=0 is the center of the chart."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call. Improved by d30416d.

@alexcjohnson
Copy link
Collaborator

Alright, I think we're just about there! Aside from my comment about attribute descriptions, my one remaining question is what we want for the default tick/grid values. It's great that the user can specify explicit tickvals, though one tweak to this that I think would be helpful is if you only specify tickvals for realaxis, then imagaxis should inherit the same values, plus the same as negatives and zero.

But then as to what the default values should be: originally I think I asked for just [0.2, 0.5, 1, 2, 5] - a good deal sparser than we have right now, which I think is generally good for interactive uses, and the really cool thing about this set is on the real axis it precisely cuts the unit diameter into sixths. I don't think the imaginary lines for this set hit the unit circle at exactly 30º intervals but they're close. Can we do that?

@archmoj
Copy link
Contributor Author

archmoj commented Oct 19, 2021

Alright, I think we're just about there! Aside from my comment about attribute descriptions, my one remaining question is what we want for the default tick/grid values. It's great that the user can specify explicit tickvals, though one tweak to this that I think would be helpful is if you only specify tickvals for realaxis, then imagaxis should inherit the same values, plus the same as negatives and zero.

But then as to what the default values should be: originally I think I asked for just [0.2, 0.5, 1, 2, 5] - a good deal sparser than we have right now, which I think is generally good for interactive uses, and the really cool thing about this set is on the real axis it precisely cuts the unit diameter into sixths. I don't think the imaginary lines for this set hit the unit circle at exactly 30º intervals but they're close. Can we do that?

Addressed in cfa96e5.

 - and use 0.2, 0.5, 1, 2, 5 set for tickvals
Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

💃 Excellent! I guess we still need a changelog entry, but I think the feature has finally made it to the finish line 🏁

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.

Support plotting to Smith Charts
4 participants