Skip to content

how to use fillbetween? #21

Open
Open

Description

@dswah

yo, im trying to get pw.fill_between to plot a translucent shaded area with no lines and no label, but i can't seem to massage it correctly...

x = np.arange(5)
pw.fill_between(x=x, ylow=x, yhigh=x+10, mode='line', color='000', opacity=0.5, width=0, label=False).show()

actually the opacity doesn't do anything for me, nor does the width, nor the label.

any clue?

image

Activity

  1. jwkvam commented on Nov 1, 2017

    @jwkvam
    Owner

    Thanks for letting me know about those issues. I'm not sure what's going on yet. In the meantime you can use this snippet to adjust the opacity of the fill.

    import plotlywrapper as pw
    x = np.arange(5)
    chart = pw.fill_between(x=x, ylow=x, yhigh=x+5)
    chart.data[1]['fillcolor'] = '#cccccc44'
    

    The fill color is #RGBA format.
    newplot 1

  2. dswah commented on Nov 1, 2017

    @dswah
    Author

    ok. i'll keep that in mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions