question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In polar layout the griddash attribute for radialaxis/angularaxis (listed in reference) is not accepted/active

See original GitHub issue

By javascript and python reference for plotly.js, respectively plotly.py, there is a radialaxis attribute, griddash: https://plotly.com/javascript/reference/layout/polar/#layout-polar-radialaxis-griddash, https://plotly.com/python/reference/layout/polar/#layout-polar-radialaxis-griddash

But plotly.py throws the error

ValueError: Invalid property specified for object of type plotly.graph_objs.layout.polar.RadialAxis: 'griddash'

when in polar layout is set radialxis_griddash="dash", while PlotlyJS.jl displays the radialaxis with the default "solid" style.
It seems that plotly.js replaces the griddash read from the figure json version (created by PlotlyJS.jl) with gridash="solid". Is this the intended behaviour? I ask because on plotly community has been asked a question on how to plot a dashed radialaxis https://community.plotly.com/t/barpolar-is-it-possible-to-change-radialaxis-line-style/63872

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
nicolaskruchtencommented, May 11, 2022

You’ll have to upgrade to plotly==5.8 (released last night) for these to work 😃

image
1reaction
nicolaskruchtencommented, May 11, 2022

The graph_objects module provides python-level validation and error messages for the Plotly.js schema whereas PlotlyJS.jl doesn’t… it’s just a different design. We prefer the Python module this way so there is less confusion about which version of Plotly.js is baked in. V5.7 came with Plotly.js 2.11 which didn’t have grid dash support so it would have been weird for it to accept this attribute without complaining.

As of Plotly.js 2.9 you can mouse over the Plotly logo in the modebar to check which version of Plotly.js you have.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Layout.polar in Python - Plotly
Type: dict containing one or more of the keys listed below. Sets the angle (in degrees) from which the radial axis is drawn....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found