Skip to content

y axis labels does not appear in scatter plot when using plotly.express with 2 inputs #4455

@npcomplete2023

Description

@npcomplete2023

Hello Plotly,

I experience the following problem,
when trying to generate a figure of type 'line' with multiple traces using the plotly.express
(the traces are defined implicitly, by defining a list of list in the y argument)
the resulting figure indeed includes 2 traces as expected,
it DOES name correctly the x axis but DOESN'T name correctly the y axis label, which is set to 'value' for some reason.
See attached an example code and a resulting graph (saved as screenshot)

MOREOVER, you can see the same phenomenon in the plotly tutorial
https://www.youtube.com/watch?v=GGL6U0k8WYA&t=622s
at minutes 08:50-09:00 of the video. Notice the y-axis label in the video.

Thank you

--------------------Example code--------------

import plotly.express as px
pxFig = px.line(x=[0,1,2,3],y=[[10,11,12,13],[12,13,14,15]], labels=dict(x='xLabel', y='yLabel'), title='my Title')
pxFig.show()

Attached image
plotly_bug_expressMode_multipleYvalues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething brokensev-2serious problem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions