Skip to content

bingroup #1951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 5, 2019
Merged

bingroup #1951

merged 2 commits into from
Dec 5, 2019

Conversation

Mahdis-z
Copy link
Contributor

@Mahdis-z Mahdis-z commented Dec 3, 2019

No description provided.

fig.add_trace(go.Histogram2d(
x = [ 1, 2, 2, 3, 4 ],
y = [ 1, 2, 2, 3, 4 ],
xbins = {'start':1, 'size':1}), 1,1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry one last comment: these subplots should share the same coloraxis, at the moment the colorbar has several sets of labels superimposed

bingroup=1))

fig.update_layout(
barmode="overlay",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From a quick glance at the figure one could think that the barmode is stack (that is the blue bars on top of the red ones). How about decreasing opacity and changing the sample size so that we can see both traces? Like

import plotly.graph_objects as go
import numpy as np
fig = go.Figure(go.Histogram(
    x=np.random.randint(7, size=100),
    bingroup=1))
fig.add_trace(go.Histogram(
    x=np.random.randint(7, size=100),
    bingroup=1, 
    opacity=0.5))
fig.update_layout(
    barmode="overlay",
    bargap=0.1)
fig.show()

@emmanuelle
Copy link
Contributor

So I had new ideas :-). If it's clear for you how to make these changes, 💃 once you've done the update (don't wait for me, merge it right away after doing the changes). Thanks @Mahdis-z !

@Mahdis-z Mahdis-z merged commit 795009a into doc-prod Dec 5, 2019
@nicolaskruchten nicolaskruchten deleted the bingroup2 branch June 19, 2020 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants