Category "plotly"

How to make legend items bold in plotly

I am able to bold the axis title and ticks using update_xaxes,but is there a way to do the same for the items in the legend? import plotly.express as px df = p

Plotly screenshot for big graph screenshots

actual output which is cluttered But When I click on the camera icon of plotly , I get the whole screenshot which I wanted . I have attached the screenshot of i

multiple drop down buttons for a plotly graph

I am wanting to know how to add multiple drop down buttons for a plotly graph or if it is even possible. The code that I am working with is thanks to r-beginner

How to split legend of a plotly chart when using to two y axes

I am creating a grouped bar plot using plotly. As level of my values differ I am using two y axes. I would like to split a legend (idea presented on a picture

python plotly smith chart function behaviour is different from scikit-rf

Can someone explain why this two smith chart plot function for exactly same circle of plotly and scikit-rf are so different? And how can I make plotly plot like

How to make plotly.express.line lines not to connect between one another?

I am new to plotly and I am trying to draw some roads on a map in different colors based on the traffic value. This is what I tried: fig = px.line_mapbox(lat=te

How to create plot with both vertical and horizontal spikelines in plotly?

Plotly offers the option to display a moveable horizontal or vertical "spikeline" by adding layout(hovermode = "x unified") or layout(hovermode = "y unified") (

Python Plotly image how to save image to a iobuffer and read it back

Python Matplotlib image is saved like : img = io.BytesIO() plt.savefig(img, format='png') img.seek(0) encoded = base64.b64encode(img.getvalue()) but for plotly

Datashader integration for polygons in plotly mapbox

I'm using plotly's Scattermapbox to overlay a map with a shaded image of polygons created by datashader's shade function (based on https://plotly.com/python/dat

Remove "0%" labels from a plotly pie chart in Python

I need to plot a pie chart that shows all descriptions in a legend, despite the values being zero. However, I would like also to remove the "0%"s labels from th

How to split negative and positive bars by zero line in barplot?

My data have 2 numerical columns (positive and negative values) and 2 categorical variables. Now I want to plot negative and positive bars on same line, instead

Visualizing the permutohedron in 3D plot

I am trying to plot the Permutohedron in python using plotly, numpy, and pandas. This is my current code: import plotly.express as px import numpy as np import

How to modify points drawn on map using a dropdown menu?

Here's how I create the map and add a dropdown menu with option1 and option2. import pandas as pd import plotly.express as px us_cities = pd.read_csv( 'htt

How do i plot a bar graphic with the groupby made column

I'm an Environmental Engineer, trying to make a leap change to the data science area which interests me more. I'm new to Python, I work at a company that evalua

Dash DatePickerRange with Graph

I am trying to connect a graph to a DatePickerRange. However, i keep running into a problem, when trying to connect the graph and date picker. I have the follow

R Plotly Bar Chart - Add horizontal line markers

I want to draw a bar chart with two bars side by side for each category (LETTERS) and add a horizontal line to each bar (y_ref as red lines & z_ref as green

How to apply slope plot R code to another data

I have dataframe which represents sales by model within 2 different years. 'change' column stands for absolute change by models from 2020 to 2021 while 'chng.pe

R not changing Plotly colorscales for Contour plots

Okay, so I am using a generic data set to troubleshoot this problem. Here is the code I am entering into R: library(plotly) fig <- plot_ly( type = 'cont

How to embed an image in to a cell of a Plotly go table?

I've seen here that you can use DashTable to allow Markdown in a plotly table like so, app.layout = Div([ DataTable( columns=[ dict(name

Plotly python rows

I have code that looks like this. It works well, but I want to modify the size of columns: import plotly.graph_objects as go from plotly.subplots import make_su