question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

box/violin vs bar positioning inconsistency

See original GitHub issue

Not sure we can fix it in the context of the fix for #3402, but logging for reference:

Violin/box auto-populates x-axis categories here:

Plotly.newPlot(
  document.getElementById("gd"),
  {
    data: [{
      type: "violin",
      y: [1]
    },{
      type: "violin",
      y: [1]
    }],
  }
)

image

But bar does not:

Plotly.newPlot(
  document.getElementById("gd"),
  {
    data: [{
      type: "bar",
      y: [1]
    },{
      type: "bar",
      y: [1]
    }],
  }
)

image

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
nicolaskruchtencommented, Feb 8, 2019

OK, fair enough.

0reactions
etpinardcommented, Feb 8, 2019

Ok, but then setting x0 or y0 will solve the issue? How is that different from adding a new box/violin attribute?

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Complete Guide to Violin Plots | Tutorial by Chartio
Violin plots are used to compare the distribution of data between groups. Learn how violin plots are constructed and how to use them...
Read more >
1.5. Box plots — Process Improvement using Data
Box plots are an efficient summary of one variable (univariate chart), ... It summarizes variations of this plot, such as the violin plot,...
Read more >
Data Pre-processing and Visualization for Machine Learning ...
The violin plot shows a clear smooth curve i.e. the combination of box and KDE plot. With the above plot you can easily...
Read more >
Guitar building for violin makers - Andrew Carruthers
The precise placement and dimensions of the bass bar and soundpost are crucial to the overall tone and playability of the instrument, but...
Read more >
Violin plots of the burden score and variant number per ...
A violin plot is a box plot with the width of the box proportional to the ... and the thin black vertical bar...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found