Changing the y label for histogram in plotly express does not work
See original GitHub issueHi I am using plotly express to plot a histogram.
import plotly.express as px
px.histogram(
cdf,
x='diag',
histnorm='probability',
labels={'diag': 'cosine similarity'},
title='Cosine Similarity of Diagonal Samples',
color_discrete_sequence=['green'],
)
The y label is shown as count, I want the y label to be called probability.
I tried passing labels={'diag': 'cosine similarity', 'count': 'probability'}
but that doesn’t work? How do I change the y label ?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Plotly: How to manually specify the label of an aggregated ...
The x and (unaggregated) y axis labels can be manually specified via the labels dict, but what about the label of the aggregated...
Read more >Histograms in Python - Plotly
In statistics, a histogram is representation of the distribution of numerical data, where the data are binned and the count for each bin...
Read more >plotly.express.histogram — 5.11.0 documentation
In a histogram, rows of data_frame are grouped together into a rectangular mark to visualize the 1D distribution of an aggregate function histfunc...
Read more >Histograms with Plotly Express: Complete Guide
Explaining all the parameters of the Plotly.Express histogram ideal to display the distribution of variables in any Data Frame.
Read more >How to Make a Plotly Histogram - Sharp Sight
This is a great technique to use if your data has different categories, and you want to visualize those categories in the same...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Keeps happening in 4.14.3
I fixed it a little bit with
yaxis_title
but in the popup that appear when you put the mouse over the bars still shows “count”.This works fine for me for both the y axis title and the hoverlabel… I’m not sure what the problem is.