-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Work-in-progress for new cartesian attribute: gridsync #5224
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
Conversation
@VictorBezak This is correct. And thanks very much for the PR. |
Good start! coerce('gridsync'); to plotly.js/src/plots/cartesian/axis_defaults.js Lines 47 to 70 in 2504f1e
you would be able to get the value. @nicolaskruchten @alexcjohnson what do you think of adding this potentially new attribute to the API? |
@archmoj Updated |
@archmoj This is good direction, I can make more progress off of this. However, I'll hold off on making any more changes until there's been time for others to give input. If you'd like me to go ahead and progress this implementation further, just let me know |
@archmoj This has been stale for quite a while. I'd like to revive this effort and get all Github tests passing against a new commit with the latest Plotly code. Do you think we could get more eyes on this if I get the PR updated and in a passing state? |
Hi @VictorBezak - thanks for the PR and apologies for not commenting on it the first time around! Linking in the issue where we all discussed some of this: #1962 Feels to me like the cleanest way to expose this is with a new As for the implementation, a couple of things I notice right away:
|
Wonderful, thank you for the feedback @alexcjohnson. I'll start chipping away at this in my free-time and we'll keep the conversation going! |
Starting from scratch! Will comment with link to new PR when it is open |
I've been receiving help for the last 5 weeks from fellow developer, Filipe Santiago @filipesantiagoAM, and together we've managed to put together an MVP solution! This still needs some tests and approvals before being merged, but sharing the PR here for public visibility! |
@archmoj @alexcjohnson I attempted to push a new branch to your repo and open a PR there instead of to Master, but I was denied access. Let me know if I need to do this another way, thanks!
This is an attempt to adapt the logic originating from https://github.com/VictorBezak/Plotly_Multi-Axes_Gridlines
in order to integrate it with the plotly schema.
This is not a complete implementation, but I am hoping that I might be able to get some feedback as to how I need to further modify and where I need to require gridsync.js in order to get it to be a recognized cartesian layout attribute which I can pass values for testing. This is my first ever open-source contribution and I have less than a year of professional experience, so I apologize for the lack of independence in this first attempt!
Data needed
For this gridsync feature to work properly it needs two pieces of information from the figure:
Attributes to be set
Once these values are received, the gridsync function then needs to override the figure's "range" and the figure's "dtick" values for each y-axis. Once this is done, the gridlines for the y-axes should be in-sync.
Question
Can you offer any insight as to how I can get "gridsync" to become a recognized cartesian layout attribute?