Skip to content

Violin plots print subplot grid information by default #535

Closed
@pjbull

Description

@pjbull
  1. Create a violin plot, e.g.:
    https://plot.ly/python/violin-plot/#multiple-violins

Result:
Grid information is printed to stdout and can't be turned off:

This is the format of your plot grid:
[ (1,1) x1,y1 ]  [ (1,2) x2,y1 ]  [ (1,3) x3,y1 ]  [ (1,4) x4,y1 ]  [ (1,5) x5,y1 ]

Expected:
No grid information to print, or a setting to control verbosity.

Possible fix:

  • Pass print=False explicitly to make_subplots
  • Make print=False the default parameter to make_subplots
  • Switch to logging rather than print statements so output can easily be controlled/redirected.

Here are the violin plot calls where print=True, though True is also the default parameter"
https://github.com/plotly/plotly.py/blob/master/plotly/tools.py#L2730
https://github.com/plotly/plotly.py/blob/master/plotly/tools.py#L2798
https://github.com/plotly/plotly.py/blob/master/plotly/tools.py#L2899

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions