-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Axes labels/titles not appearing #539
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
Comments
Thanks for bringing this up @gkiar! |
Hi @alexcjohnson - thanks for the quick response! I actually have been printing my Any idea what would cause the property to not be rendered, despite it being in the figure object? I inspected the plot in the console and found the title elements to be blank:
|
Could it be that you somehow have an old plotly.js version, despite having updated dash? |
@alexcjohnson I think you found the issue - the layout object is correctly set, but my plotly version is |
Ah, I was using a "custom" |
Hi Guys, Not sure if this related to the issue here, but I'm finding that my plotly express plots work fine in Jupyter notebook, but I get minor issues when I generate the exact plot in Dash. For example, x and y titles do not generate, specific hover info that I set does not appear, continuous color bars do not appear from a scatter_mapbox. Furthermore sunburst and treemaps do not generate at all. All these features work within Jupyter notebook. Does anybody have any idea on where I can start to solve these problems? |
@s3630237 that sounds consistent with an old plotly.js version. dash-core-components has its own copy of plotly.js, and you'll get the latest dcc if you update dash itself. |
Thanks Alex for getting back to me so quickly. Ive already upgraded dash, by typing the following at the command prompt "easy_install --upgrade Dash". Below is a listing of my dash packages when i type 'pip list'. I'm pretty sure these are the most up to date dash packages. Is there another way I should be doing this r is there another command I should by tping to upgrade plotly.js? dash 1.19.0 |
Yes, that's up to date. What do you get if you open the JS console when viewing your dash app and type |
Great! Yeah it’s easy for pip and conda to point to complete different Python installations, and it’s best to just pick one and stick with it |
Hi!
First of all: I'm not sure whether or not this is a Dash or Plotly specific issue, but I'm using them together so figured I'd put the comment here - please redirect me if I'm mistaken.
The behaviour I'm currently getting is that titles specified for both axis and plots are not appearing in the resulting plots. Using older versions of plotly and dash these have produced the expected output. I've attached two figures below, showing the previous and current result. I've also attached a
pip freeze
of all related packages on my machine.I'm currently specifying the title as is described quite simply in the documentation, within my
layout
structure using thetitle
field and a simple string value, i.e.layout = {'title':'my title', 'yaxis': {'title':'my y title', ...}, ...}
Please let me know if there's likely a simple oversight on my part here causing this behaviour. Thanks!
plotly==3.1.1, dash==0.24.1, dash-core-components==0.27.1, dash-html-components==0.11.0, dash-renderer==0.13.0, dash-table-experiments==0.6.0
plotly==3.5.0, dash==0.35.2, dash-core-components==0.42.1, dash-html-components==0.13.5, dash-renderer==0.16.2, dash-table-experiments==0.6.0
The text was updated successfully, but these errors were encountered: