Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Draft: implement LayoutPolar #355

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

Draft
dustypomerleau wants to merge 1 commit into plotly:main
base: main
Choose a base branch
Loading
from dustypomerleau:layoutpolar

Conversation

Copy link

@dustypomerleau dustypomerleau commented Aug 27, 2025
edited
Loading

Happy for any feedback/advice while I work on this. Eventually closes #352.

@dustypomerleau dustypomerleau marked this pull request as draft August 27, 2025 06:56
@dustypomerleau dustypomerleau changed the title (削除) Draft: LayoutPolar (削除ここまで) (追記) Draft: implement LayoutPolar (追記ここまで) Aug 27, 2025
Copy link
Collaborator

Looks good so far.
If you could add an example in examples/, then I can expand the mdBook such that it is also included in the book.

dustypomerleau reacted with thumbs up emoji

}

// There is partial overlap with [`Axis`](crate::layout::Axis), for both
// [`PolarAxis`] and [`PolarAxisTicks`] so it may be possible to factor that
Copy link
Collaborator

@andrei-ng andrei-ng Aug 29, 2025

Choose a reason for hiding this comment

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

I prefer we keep them separate for now. I have done similar for other properties. Eventually, I might look into using a macro to generate these.

@dustypomerleau dustypomerleau force-pushed the layoutpolar branch 4 times, most recently from e8fa562 to 3d76518 Compare August 31, 2025 07:50
let mut plot = Plot::new();
plot.set_layout(layout);
plot.add_traces(vec![first_trace, second_trace]);
plot.show();
Copy link
Collaborator

@andrei-ng andrei-ng Aug 31, 2025

Choose a reason for hiding this comment

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

@dustypomerleau don't run plot.show() in tests as this will open the plot in the system browser. For testte we usually check if the serialization to JSON is correct. If you were doing that to check your implementation, better build a simple example in examples ...

Copy link
Author

@dustypomerleau dustypomerleau Aug 31, 2025

Choose a reason for hiding this comment

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

Apologies, that's not really the test I plan to have in that location. I was just using it to check my work. Once I get everything working, I'll move what I've got into a (simpler) example and put a serialization test in the module. I can push to another branch so you're not seeing all this noise.

Copy link
Collaborator

@andrei-ng andrei-ng Aug 31, 2025

Choose a reason for hiding this comment

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

Sure, no worries. Makes sense. Just wanted to point that out since in the CI calling plot.show() will hang

dustypomerleau reacted with thumbs up emoji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@andrei-ng andrei-ng andrei-ng left review comments

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Changing the range of the angular axis in ScatterPolar

AltStyle によって変換されたページ (->オリジナル) /