How can I change the x and y-axis labels in plotly because in matplotlib, I can simply use plt.xlabel but I am unable to do that in plotly. By using this code in a dataframe: I get this output: In this X and Y axis are labeled as X and Y how can I change the name of X and
Tag: plotly-python
plotly axis labels don’t show
I am trying to plot something with plotly bt the axis labels don’t show. I can’t find what I’m doing wrong. Answer You just need to set xaxis_title and yaxis_title Using Plotly Express
Python Dash: Exclude option from one dropdown when chosing the same option in another dropdown
I am working on a Python Dash dashboard and have two dropdowns with the same options: enter image description here When I select an option in the first dropdown, how do I exclude the same option from the second dropdown? – So that I cannot choose the same material with both dropdowns. Where and how would I do this in
Display only single line on hover, hide all other lines
Is there is a way to hide all other lines on a figure, when I am hovering a single one? Example: will produce: and I want this, when I hover particular line (but without manually switching off all other lines and keeping X, Y axes dims): UPD: inside jupyter notebook Answer If you are running into issues, here is the
Plotly: How to highlight weekends without looping through the dataset?
I am trying to plot three different timeseries dataframes (each around 60000 records) using plotly, while highlighting weekends (and workhours) with a different background color. Is there a way to do it without looping through the whole dataset as mentioned in this solution. While this method might work, the performance can be poor on large datasets Answer I would consider
Is there a way to extract the current frame from a plotly figure?
Basically, I have a plotly animation which uses a slider and pause/play buttons to go through a dataset. I want to extract the number of the current frame (i.e., the current index in the ‘steps’/‘frames’ lists which the slider is on) in a Dash callback, so that I can update a table based on the main graph. For example, in
How to change the range of theta for each plotly scatterpolar category
I am currently using Plotly’s scatterpolar module to create a radar chart. I am trying to visualize the statistical categories for all 5 basketball statistics (points, assists, rebounds, steals, and blocks). The problem is that the range for every single category is set to the highest value which is points. I’d like to make the range for each category separate
Line chart not showing data on multi-page plotly dash
Weird error here. A single page plotly dash shows data on my line chart but when I created a multi page dash, the line chart doesn’t show the data anymore. just shows this. Can’t seem to find a way to show the line chart data even though my code is the same. index.js main.py New to dash so any help
create custom marked degree for plotly windrose python
Is there a way to add additional degrees in windrose(default degrees marked as every 45° )? what I want to do is, mark degrees at every 22.5° instead of every 45°(0°,22.5°,45°,67.5° and so on). I read the plotly windrose documentation, but couldn’t able to find a suitable way to fix this. code: Answer have used alternate source of data… doesn’t
Plotly: How to display a regression line for one variable against multiple other time series?
With a dataset such as time series for various stocks, how can you easily display a regression line for one variable against all others and quickly define a few aesthetic elements such as: which variable to plot against the others, theme color for the figure, colorscale for the traces type of trendline; linear or non-linear? Data: Reproducible through: Answer The