plotly.py
plotly.py copied to clipboard
The interactive graphing library for Python :sparkles: This project now includes Plotly Express!
Adding an `updatemenu` button to toggle the legend, the button shifts to the left on 2nd click under certain conditions. https://user-images.githubusercontent.com/30958850/151654960-7786bdbb-3949-44a2-922a-a9e4cb045629.mp4 **Minimal Example** ```py import plotly.express as px df =...
Hello, Plotly.py doesn't display x axis well when using a `TimedeltaIndex` ```python import pandas as pd from pandas.compat import StringIO import plotly from plotly.graph_objs import Scatter, Layout dat = """millis;ax;ay;az...
Dependency versions for tests (specified in `packages/python/plotly/test_requirements/`) are years out of date; e.g. most of the files specify `pytest==6.2.3` or `pytest==7.4.4` which came out in 2021 and 2023 respectively. General...
Hi, I am using Python and Plotly in my web application. In my plots, I'd like to set the order of the traces appearing in the legend in a custom...
create_streamline breaks with the test example below. This seems to fix it: ``` - if ((x[index + 1] - x[index]) - (x[1] - x[0])) > 0.0001: + if any(((x[index +...
I noticed, that in `Scattergl` points start to disappear from the graph when resizing and reaching certain thresholds in size difference. Minimal example: ``` from dash import Dash, html, dcc,...
Hi! I wanted to display a Mapbox layer that requires authentication through bearer tokens, i.e. when doing something like: ```python fig.update_layout( mapbox_style="white-bg", mapbox_layers=[ { "below": 'traces', "sourcetype": "raster", "sourceattribution": "My...
``` import plotly.graph_objects as go fig = go.Figure( data=[go.Scattergl(x=[0, 1], y=[0, 1])], layout=go.Layout( xaxis=dict(range=[0, 5], autorange=False), yaxis=dict(range=[0, 5], autorange=False), title="Start Title", updatemenus=[dict( type="buttons", buttons=[dict(label="Play", method="animate", args=[None])])] ), frames=[go.Frame(data=[go.Scattergl(x=[1, 2], y=[1,...
Because of the way [px.strip works under the hood](https://github.com/plotly/plotly.py/blob/586aeebaad67e013799be8ad84b2c2362ce91d26/packages/python/plotly/plotly/express/_chart_types.py#L677) (generates a go.Box() with the fill color rgba set to 0,0,0,0 and the width set to None), there does not appear...
I was trying to use the multi-axes functionality in Plotly with the tickmode='sync' option, but the result was not as I expected. The grid axes are not aligned at y...