plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

How to align ticks for multiple y axis so all grid squares are equal size

Open andy1547 opened this issue 9 years ago • 34 comments

This is best explained by the screenshot: scale

As you can see the grid squares differ in size, I'd like these to remain constant. Instead I'd like the y2 axis ticks to scale to match the y axis values, i.e. the y axis would step up like 10,20,30 but the y2 axis would step up with respect to those values i.e. 12, 24, 36 etc. Is this possible with plotly?

andy1547 avatar Aug 18 '17 15:08 andy1547

I'd be happy to sponsor this feature. I've reached out via Plotly's "Contact Us" form. Is there a more preferred mode of contact from which I could get more details?

Hi @VictorBezak & @mschrader15, thanks for your interest and enthusiasm!

To clarify, we're seeking financial sponsorship for this feature (not providing it - I wish we were!)

If you, the company that you're working for, or your university lab has budget to bring this feature to life, the Contact Us form linked above is indeed the best way to get in touch about a collaboration.

jackparmer avatar Sep 10 '20 21:09 jackparmer

I'd be happy to sponsor this feature. I've reached out via Plotly's "Contact Us" form. Is there a more preferred mode of contact from which I could get more details?

Hi @VictorBezak & @mschrader15, thanks for your interest and enthusiasm!

To clarify, we're seeking financial sponsorship for this feature (not providing it - I wish we were!)

If you, the company that you're working for, or your university lab has budget to bring this feature to life, the Contact Us form linked above is indeed the best way to get in touch about a collaboration.

@jackparmer I see, thanks for the clarification! I'm not sure if you've had a chance to view my implementation, but it's successful in providing the requested functionality. I believe all it needs to be ready for a PR is to be abstracted and integrated with Plotly's schema. Not sure what all may go into that, but I've begun working on it. My goal is to submit a community PR within the next few weeks. I'd be happy to provide assistance with documentation beyond this point, but first step is to actually follow through with the PR. Glad to connect with you, I'm always very enthusiastic to promote Plotly within my circle of data scientist friends. Besides the effort described above, let me know if there's anything I can do to help or contribute. https://github.com/VictorBezak/Plotly_Multi-Axes_Gridlines

VictorBezak avatar Sep 10 '20 21:09 VictorBezak

Impressive work! We'll be on the lookout for your community PR. Integrating with Plotly's schema is indeed a necessary sticking point - we have to be careful to make sure that any schema additions can stand the test of time and we don't accidentally back ourselves into a corner. Plotly's is the first schema that can describe most scientific figures in a machine readable way. That said, it's a huge accomplishment to submit a PR that makes a mark on this schema, especially as an undergrad!

jackparmer avatar Sep 10 '20 22:09 jackparmer

@jackparmer Making solid progress on this update! The path to completion isn't crystal clear, but I certainly haven't hit a wall yet. The pull request guide mentions that it's preferred for me to have a maintainer review the code on my forked copy before submitting a PR to the main plotly repo. I'm relatively naive when it comes to open source, so the best method I can think of to initiate this would be to contact plotly support and ask if they'll share my repo with a maintainer for review.

If there is a better method, just let me know; Otherwise, I'll proceed with this plan and should be requesting a review by end of next weekend!

VictorBezak avatar Sep 26 '20 22:09 VictorBezak

@VictorBezak that's great! The preferred way to do this is:

  • Keep the master branch of your fork synchronized with the master branch of the main repo
  • Make a PR from another branch on your fork into the master branch of your fork.
  • Don't merge this PR: just @ mention a couple of the plotly.js maintainers - You can mention me and @archmoj - telling us it's ready for a review. Just including our handles in a PR comment is enough that we'll see your PR and know to look at it. You can also reply to this issue including a link to your PR.
  • Once we've looked at that PR to ensure the overall structure and concept is sound, we'll ask you to make a PR into the main repo, and we'll finish the review there.

alexcjohnson avatar Sep 28 '20 13:09 alexcjohnson

@VictorBezak and everyone...thank you so much! i'm a newbie when it comes to all of this and hope i can someday make PR to large open source projects like you

invictus2010 avatar Oct 04 '20 15:10 invictus2010

@VictorBezak that's great! The preferred way to do this is:

  • Keep the master branch of your fork synchronized with the master branch of the main repo
  • Make a PR from another branch on your fork into the master branch of your fork.
  • Don't merge this PR: just @ mention a couple of the plotly.js maintainers - You can mention me and @archmoj - telling us it's ready for a review. Just including our handles in a PR comment is enough that we'll see your PR and know to look at it. You can also reply to this issue including a link to your PR.
  • Once we've looked at that PR to ensure the overall structure and concept is sound, we'll ask you to make a PR into the main repo, and we'll finish the review there.

@alexcjohnson Hey, Alex! I stumbled through a few early mistakes, and I now feel I've gotten the additions quite close to complete. However, I'm struggling to bridge this final gap, which is resulting from a lack of understanding of how these underlying components are inheriting/importing from one another. Would it be possible to afford a few minutes of time from one of your team members? A brief conversation would most definitely be enough to get me moving in the right direction. If not possible, that's alright--I may just need a bit more time to consult with some friends whom are more experience than myself!

VictorBezak avatar Oct 08 '20 01:10 VictorBezak

@invictus2010 It's a journey, my friend. Wasn't long ago that I couldn't even visualize what a simple program might look like lol. This is a first attempt at an open source PR, and it may or may not be accepted. The attempt is what matters though, for every naive piece of code you write gets you one step closer to creating elegant and optimal code. If you ever have questions along your journey, feel free to reach out.

VictorBezak avatar Oct 08 '20 01:10 VictorBezak

@VictorBezak thanks for your effort! Hoping the plotly folks can get this reviewed and merged sometime soon so I can put it to good use! As in all projects I'm sure time is short and trello boards overflow. I just wanted to say thanks to both Victor and the Plotly team for continuing to make a great open source project even better and to express my continued interest in this feature.

It looks like the PR is already awaiting review, but if there's anything I can do to help please let me know!

gjhami avatar Sep 28 '21 04:09 gjhami

@gjhami @invictus2010 I've been having trouble prioritizing this, would you guys like to colab on getting this ready to go? I find it's a little easier for me to make time for open-source when there's a social/team aspect to it. Would be a casual, zero expectation working session that we could schedule weekly or bi-weekly! Just let me know! I'm going to make this a higher priority in the mean time, so we'll get this done either way!

VictorBezak avatar Apr 10 '22 18:04 VictorBezak

That’s awesome! It’s been some time since I’ve looked at this code and I’m not a dev in my fulltime gig, but I’m interested in helping out. I’m on vacation this week and then start my new job.

TLDR; won’t be able to help for the next 2 weeks, but could link up after that if you don’t solve it before then

On Sun, Apr 10, 2022 at 2:39 PM Victor Bezak @.***> wrote:

@gjhami https://github.com/gjhami @invictus2010 https://github.com/invictus2010 I've been having trouble prioritizing this, would you guys like to colab on getting this ready to go? I find it's a little easier for me to make time for open-source when there's a social/team aspect to it. Would be a casual, zero expectation working session that we could schedule weekly or bi-weekly! Just let me know! I'm going to make this a higher priority in the mean time, so we'll get this done either way!

— Reply to this email directly, view it on GitHub https://github.com/plotly/plotly.js/issues/1962#issuecomment-1094345767, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEGXYSKFZYOQGQ6ZDWYHS4TVEMN6HANCNFSM4DXOXFSQ . You are receiving this because you were mentioned.Message ID: @.***>

invictus2010 avatar Apr 11 '22 01:04 invictus2010

That’s awesome! It’s been some time since I’ve looked at this code and I’m not a dev in my full-time gig, but I’m interested in helping out. I’m on vacation this week and then start my new job. TLDR; won’t be able to help for the next 2 weeks, but could link up after that if you don’t solve it before then

Sounds great, man! I hope you enjoyed your vacation and have a great first week! Happy to do some casual co-lab whenever is convenient for you. Shoot me an email at [email protected] whenever you get settled with your new job and have a weekend where you feel up for it. I'll be able to catch you up to speed with where I'm at and we'll just chat and see if we can't make some progress!

VictorBezak avatar Apr 18 '22 04:04 VictorBezak

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!

https://github.com/plotly/plotly.js/pull/6356

VictorBezak avatar Nov 02 '22 19:11 VictorBezak

Resolved by #6356.

archmoj avatar Jan 19 '23 17:01 archmoj