- 
 
- 
  Notifications
 You must be signed in to change notification settings 
- Fork 2.7k
Fix tick marker mirroring (matplotlib conversion) #5310
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
Fix tick marker mirroring (matplotlib conversion) #5310
Conversation
3fafa67 to
 daf0327  
 Compare
 
 860b8b0 to
 001ff53  
 Compare
 
 Hi @robertoffmoura, thank you for the fix! Same question here, could you provide some side-by-side comparisons to show the difference this PR introduces and why this is the correct behavior? I'm not very familiar with axis mirroring in matplotlib (or Plotly for that matter) so just trying to sanity check that these changes make sense.
I took a quick look at the images of the plots in the tests you added, and the only one where I see a difference between your branch and main is in the axis_mirror_false_with_one_sided_ticks function, is that expected?
001ff53 to
 60cd4f7  
 Compare
 
 
Hi,
This fixes the issue where a matplotlib figure with only bottom and left tick markers would be converted to a plotly figure with markers on all sides.
Code PR
plotly.graph_objects, my modifications concern the code generator and not the generated files.