Plotting multiple overlapped histogram with pandasPlot two histograms at the same time with matplotlibCatch multiple exceptions in one line (except block)Save plot to image file instead of displaying it using MatplotlibSelecting multiple columns in a pandas dataframeRenaming columns in pandasDelete column from pandas DataFrameHow to iterate over rows in a DataFrame in Pandas?Select rows from a DataFrame based on values in a column in pandasHow to plot in a specific axis with DataFrame.hist(by=) in pandasMatplotlib / Pandas histogram incorrect alignmentMultiple histograms in Pandas
How can I repair this gas leak on my new range? Teflon tape isn't working
extracting sublists
What exactly did this mechanic sabotage on the American Airlines 737, and how dangerous was it?
Is it a good idea to leave minor world details to the reader's imagination?
Research promotions in the middle of post-doc contract
How to justify a team increase when the team is doing good?
Do we know the situation in Britain before Sealion (summer 1940)?
Seeming violation-wave travelling faster than speed of light
Could Apollo astronauts see city lights from the moon?
Comma Code - Automate the Boring Stuff with Python
What are the consequences of high orphan block rate?
List of 1000 most common words across all languages
Why are there two fundamental laws of logic?
Strange Sticky Substance on Digital Camera
Does "as soon as" imply simultaneity?
Can an integer optimization problem be convex?
Do wheelchair aircraft exist?
Are lawyers allowed to come to agreements with opposing lawyers without the client's knowledge or consent?
1, 2, 4, 8, 16, ... 33?
If an object moving in a circle experiences centripetal force, then doesn't it also experience centrifugal force, because of Newton's third law?
What is the white pattern on trim wheel for?
What benefits does the Power Word Kill spell have?
Averting Bathos
Does Sitecore have support for Sitecore products in containers?
Plotting multiple overlapped histogram with pandas
Plot two histograms at the same time with matplotlibCatch multiple exceptions in one line (except block)Save plot to image file instead of displaying it using MatplotlibSelecting multiple columns in a pandas dataframeRenaming columns in pandasDelete column from pandas DataFrameHow to iterate over rows in a DataFrame in Pandas?Select rows from a DataFrame based on values in a column in pandasHow to plot in a specific axis with DataFrame.hist(by=) in pandasMatplotlib / Pandas histogram incorrect alignmentMultiple histograms in Pandas
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have two different dataframes with 19 variables each and I'm plotting a multiple plot with the histograms of each variable like this:
fig, ax = plt.subplots(figsize=(19,10), dpi=50)
dataframe1.hist(ax=ax, layout=(3,7), alpha=0.5)
fig, ax = plt.subplots(figsize=(19,10), dpi=50)
dataframe2.hist(ax=ax, layout=(3,7), alpha=0.5)
This produce two images with 19 histograms inside. What I want to try is to plot only one image with the shared histograms in the same subplot.
I tried this:
fig, ax = plt.subplots(figsize=(19,10), dpi=50)
dataframe1.hist(ax=ax, layout=(3,7), alpha=0.5, label='x')
dataframe2.hist(ax=ax, layout=(3,7), alpha=0.5, label='y', color='red')
But its only painting the last one.
This is a similar example: Plot two histograms at the same time with matplotlib but how could I apply it two my 19 subplots?
Any ideas will be welcomed, thanks in advance!
P.S: I'm currently using Jupyter Notebooks with the %matplotlib notebook option
python pandas matplotlib
add a comment
|
I have two different dataframes with 19 variables each and I'm plotting a multiple plot with the histograms of each variable like this:
fig, ax = plt.subplots(figsize=(19,10), dpi=50)
dataframe1.hist(ax=ax, layout=(3,7), alpha=0.5)
fig, ax = plt.subplots(figsize=(19,10), dpi=50)
dataframe2.hist(ax=ax, layout=(3,7), alpha=0.5)
This produce two images with 19 histograms inside. What I want to try is to plot only one image with the shared histograms in the same subplot.
I tried this:
fig, ax = plt.subplots(figsize=(19,10), dpi=50)
dataframe1.hist(ax=ax, layout=(3,7), alpha=0.5, label='x')
dataframe2.hist(ax=ax, layout=(3,7), alpha=0.5, label='y', color='red')
But its only painting the last one.
This is a similar example: Plot two histograms at the same time with matplotlib but how could I apply it two my 19 subplots?
Any ideas will be welcomed, thanks in advance!
P.S: I'm currently using Jupyter Notebooks with the %matplotlib notebook option
python pandas matplotlib
1
I am understanding correctly that you want to show nineteen histograms on the same set of axes?
– asongtoruin
Mar 28 at 11:40
I just added one of the images. I want that each subplots have 2 histograms instead of 1. Thanks for trying to understand!
– Sergiodiaz53
Mar 28 at 11:54
add a comment
|
I have two different dataframes with 19 variables each and I'm plotting a multiple plot with the histograms of each variable like this:
fig, ax = plt.subplots(figsize=(19,10), dpi=50)
dataframe1.hist(ax=ax, layout=(3,7), alpha=0.5)
fig, ax = plt.subplots(figsize=(19,10), dpi=50)
dataframe2.hist(ax=ax, layout=(3,7), alpha=0.5)
This produce two images with 19 histograms inside. What I want to try is to plot only one image with the shared histograms in the same subplot.
I tried this:
fig, ax = plt.subplots(figsize=(19,10), dpi=50)
dataframe1.hist(ax=ax, layout=(3,7), alpha=0.5, label='x')
dataframe2.hist(ax=ax, layout=(3,7), alpha=0.5, label='y', color='red')
But its only painting the last one.
This is a similar example: Plot two histograms at the same time with matplotlib but how could I apply it two my 19 subplots?
Any ideas will be welcomed, thanks in advance!
P.S: I'm currently using Jupyter Notebooks with the %matplotlib notebook option
python pandas matplotlib
I have two different dataframes with 19 variables each and I'm plotting a multiple plot with the histograms of each variable like this:
fig, ax = plt.subplots(figsize=(19,10), dpi=50)
dataframe1.hist(ax=ax, layout=(3,7), alpha=0.5)
fig, ax = plt.subplots(figsize=(19,10), dpi=50)
dataframe2.hist(ax=ax, layout=(3,7), alpha=0.5)
This produce two images with 19 histograms inside. What I want to try is to plot only one image with the shared histograms in the same subplot.
I tried this:
fig, ax = plt.subplots(figsize=(19,10), dpi=50)
dataframe1.hist(ax=ax, layout=(3,7), alpha=0.5, label='x')
dataframe2.hist(ax=ax, layout=(3,7), alpha=0.5, label='y', color='red')
But its only painting the last one.
This is a similar example: Plot two histograms at the same time with matplotlib but how could I apply it two my 19 subplots?
Any ideas will be welcomed, thanks in advance!
P.S: I'm currently using Jupyter Notebooks with the %matplotlib notebook option
python pandas matplotlib
python pandas matplotlib
edited Mar 28 at 11:53
Sergiodiaz53
asked Mar 28 at 11:24
Sergiodiaz53Sergiodiaz53
5662 gold badges9 silver badges20 bronze badges
5662 gold badges9 silver badges20 bronze badges
1
I am understanding correctly that you want to show nineteen histograms on the same set of axes?
– asongtoruin
Mar 28 at 11:40
I just added one of the images. I want that each subplots have 2 histograms instead of 1. Thanks for trying to understand!
– Sergiodiaz53
Mar 28 at 11:54
add a comment
|
1
I am understanding correctly that you want to show nineteen histograms on the same set of axes?
– asongtoruin
Mar 28 at 11:40
I just added one of the images. I want that each subplots have 2 histograms instead of 1. Thanks for trying to understand!
– Sergiodiaz53
Mar 28 at 11:54
1
1
I am understanding correctly that you want to show nineteen histograms on the same set of axes?
– asongtoruin
Mar 28 at 11:40
I am understanding correctly that you want to show nineteen histograms on the same set of axes?
– asongtoruin
Mar 28 at 11:40
I just added one of the images. I want that each subplots have 2 histograms instead of 1. Thanks for trying to understand!
– Sergiodiaz53
Mar 28 at 11:54
I just added one of the images. I want that each subplots have 2 histograms instead of 1. Thanks for trying to understand!
– Sergiodiaz53
Mar 28 at 11:54
add a comment
|
2 Answers
2
active
oldest
votes
Your problem is that you create only one Axes
object in your plt.subplots
call, when you actually need 21 (3x7). As the amount of subplots provided does not match the amount of subplots requested, pandas creates new subplots. Because this happens twice, you only see the second set of histograms.
You can leave out the call to subplots
altogether and let pandas do all the work. The call to hist
returns all the subplots needed and this can then be used in the second call to hist
.
EDIT:
I realised that, if the amount of desired plots is not actually equal to the amount of grid cells (in this case 3x9=21), you must pass exactly the amount of subplots that you actually want to plot on (in this case 19). However, the call to df.hist
returns a subplot for each grid cell (i.e. 21) and apparently hides the unused ones. Hence you have to pass only a subset of all returned subplots to the second call to hist
. This is easiest done by converting the 2d array of subplots into a 1d array and then slicing this array, for instance with `axes.ravel()[:19]. I edited the code accordingly:
import numpy as np
from matplotlib import pyplot as plt
import pandas as pd
length=19
loc = np.random.randint(0,50,size=length)
scale = np.random.rand(length)*10
dist = np.random.normal(loc=loc, scale=scale, size=(100,length))
df1 = pd.DataFrame(data=list(dist))
axes = df1.hist(layout=(3,7), alpha=0.5, label='x')
loc = np.random.randint(0,50,size=length)
scale = np.random.rand(length)*10
dist = np.random.normal(loc=loc, scale=scale, size=(100,length))
df2 = pd.DataFrame(data=list(dist))
df2.hist(ax=axes.ravel()[:length], layout=(3,7), alpha=0.5, label='x',color='r')
plt.show()
This produces output like this:
I think you meanax=axes
rather thanax=res
– asongtoruin
Mar 28 at 14:33
@asongtoruin You are right. Thanks for the help, I'll fix it in the code.
– Thomas Kühn
Mar 28 at 14:42
add a comment
|
When you call subplots
, you can specify the number of rows and columns that you want. In your case, you want 3 rows and 7 columns. However, .plot
will be annoyed at there being 21 axes but only 19 to plot from your dataframe. So instead, we'll flatten the axes into a list and convert to a list, which will allow us to remove the last two from both the figure and the set of axes simultaneously through .pop()
fig, axes = plt.subplots(figsize=(19,10), dpi=50, nrows=3, ncols=7)
flat_axes = list(axes.reshape(-1))
fig.delaxes(flat_axes.pop(-1))
fig.delaxes(flat_axes.pop(-1))
dataframe1.hist(ax=flat_axes, alpha=0.5, label='x')
dataframe2.hist(ax=flat_axes, alpha=0.5, label='x',color='r')
add a comment
|
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55396416%2fplotting-multiple-overlapped-histogram-with-pandas%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Your problem is that you create only one Axes
object in your plt.subplots
call, when you actually need 21 (3x7). As the amount of subplots provided does not match the amount of subplots requested, pandas creates new subplots. Because this happens twice, you only see the second set of histograms.
You can leave out the call to subplots
altogether and let pandas do all the work. The call to hist
returns all the subplots needed and this can then be used in the second call to hist
.
EDIT:
I realised that, if the amount of desired plots is not actually equal to the amount of grid cells (in this case 3x9=21), you must pass exactly the amount of subplots that you actually want to plot on (in this case 19). However, the call to df.hist
returns a subplot for each grid cell (i.e. 21) and apparently hides the unused ones. Hence you have to pass only a subset of all returned subplots to the second call to hist
. This is easiest done by converting the 2d array of subplots into a 1d array and then slicing this array, for instance with `axes.ravel()[:19]. I edited the code accordingly:
import numpy as np
from matplotlib import pyplot as plt
import pandas as pd
length=19
loc = np.random.randint(0,50,size=length)
scale = np.random.rand(length)*10
dist = np.random.normal(loc=loc, scale=scale, size=(100,length))
df1 = pd.DataFrame(data=list(dist))
axes = df1.hist(layout=(3,7), alpha=0.5, label='x')
loc = np.random.randint(0,50,size=length)
scale = np.random.rand(length)*10
dist = np.random.normal(loc=loc, scale=scale, size=(100,length))
df2 = pd.DataFrame(data=list(dist))
df2.hist(ax=axes.ravel()[:length], layout=(3,7), alpha=0.5, label='x',color='r')
plt.show()
This produces output like this:
I think you meanax=axes
rather thanax=res
– asongtoruin
Mar 28 at 14:33
@asongtoruin You are right. Thanks for the help, I'll fix it in the code.
– Thomas Kühn
Mar 28 at 14:42
add a comment
|
Your problem is that you create only one Axes
object in your plt.subplots
call, when you actually need 21 (3x7). As the amount of subplots provided does not match the amount of subplots requested, pandas creates new subplots. Because this happens twice, you only see the second set of histograms.
You can leave out the call to subplots
altogether and let pandas do all the work. The call to hist
returns all the subplots needed and this can then be used in the second call to hist
.
EDIT:
I realised that, if the amount of desired plots is not actually equal to the amount of grid cells (in this case 3x9=21), you must pass exactly the amount of subplots that you actually want to plot on (in this case 19). However, the call to df.hist
returns a subplot for each grid cell (i.e. 21) and apparently hides the unused ones. Hence you have to pass only a subset of all returned subplots to the second call to hist
. This is easiest done by converting the 2d array of subplots into a 1d array and then slicing this array, for instance with `axes.ravel()[:19]. I edited the code accordingly:
import numpy as np
from matplotlib import pyplot as plt
import pandas as pd
length=19
loc = np.random.randint(0,50,size=length)
scale = np.random.rand(length)*10
dist = np.random.normal(loc=loc, scale=scale, size=(100,length))
df1 = pd.DataFrame(data=list(dist))
axes = df1.hist(layout=(3,7), alpha=0.5, label='x')
loc = np.random.randint(0,50,size=length)
scale = np.random.rand(length)*10
dist = np.random.normal(loc=loc, scale=scale, size=(100,length))
df2 = pd.DataFrame(data=list(dist))
df2.hist(ax=axes.ravel()[:length], layout=(3,7), alpha=0.5, label='x',color='r')
plt.show()
This produces output like this:
I think you meanax=axes
rather thanax=res
– asongtoruin
Mar 28 at 14:33
@asongtoruin You are right. Thanks for the help, I'll fix it in the code.
– Thomas Kühn
Mar 28 at 14:42
add a comment
|
Your problem is that you create only one Axes
object in your plt.subplots
call, when you actually need 21 (3x7). As the amount of subplots provided does not match the amount of subplots requested, pandas creates new subplots. Because this happens twice, you only see the second set of histograms.
You can leave out the call to subplots
altogether and let pandas do all the work. The call to hist
returns all the subplots needed and this can then be used in the second call to hist
.
EDIT:
I realised that, if the amount of desired plots is not actually equal to the amount of grid cells (in this case 3x9=21), you must pass exactly the amount of subplots that you actually want to plot on (in this case 19). However, the call to df.hist
returns a subplot for each grid cell (i.e. 21) and apparently hides the unused ones. Hence you have to pass only a subset of all returned subplots to the second call to hist
. This is easiest done by converting the 2d array of subplots into a 1d array and then slicing this array, for instance with `axes.ravel()[:19]. I edited the code accordingly:
import numpy as np
from matplotlib import pyplot as plt
import pandas as pd
length=19
loc = np.random.randint(0,50,size=length)
scale = np.random.rand(length)*10
dist = np.random.normal(loc=loc, scale=scale, size=(100,length))
df1 = pd.DataFrame(data=list(dist))
axes = df1.hist(layout=(3,7), alpha=0.5, label='x')
loc = np.random.randint(0,50,size=length)
scale = np.random.rand(length)*10
dist = np.random.normal(loc=loc, scale=scale, size=(100,length))
df2 = pd.DataFrame(data=list(dist))
df2.hist(ax=axes.ravel()[:length], layout=(3,7), alpha=0.5, label='x',color='r')
plt.show()
This produces output like this:
Your problem is that you create only one Axes
object in your plt.subplots
call, when you actually need 21 (3x7). As the amount of subplots provided does not match the amount of subplots requested, pandas creates new subplots. Because this happens twice, you only see the second set of histograms.
You can leave out the call to subplots
altogether and let pandas do all the work. The call to hist
returns all the subplots needed and this can then be used in the second call to hist
.
EDIT:
I realised that, if the amount of desired plots is not actually equal to the amount of grid cells (in this case 3x9=21), you must pass exactly the amount of subplots that you actually want to plot on (in this case 19). However, the call to df.hist
returns a subplot for each grid cell (i.e. 21) and apparently hides the unused ones. Hence you have to pass only a subset of all returned subplots to the second call to hist
. This is easiest done by converting the 2d array of subplots into a 1d array and then slicing this array, for instance with `axes.ravel()[:19]. I edited the code accordingly:
import numpy as np
from matplotlib import pyplot as plt
import pandas as pd
length=19
loc = np.random.randint(0,50,size=length)
scale = np.random.rand(length)*10
dist = np.random.normal(loc=loc, scale=scale, size=(100,length))
df1 = pd.DataFrame(data=list(dist))
axes = df1.hist(layout=(3,7), alpha=0.5, label='x')
loc = np.random.randint(0,50,size=length)
scale = np.random.rand(length)*10
dist = np.random.normal(loc=loc, scale=scale, size=(100,length))
df2 = pd.DataFrame(data=list(dist))
df2.hist(ax=axes.ravel()[:length], layout=(3,7), alpha=0.5, label='x',color='r')
plt.show()
This produces output like this:
edited Mar 28 at 17:41
answered Mar 28 at 12:16
Thomas KühnThomas Kühn
6,4463 gold badges25 silver badges40 bronze badges
6,4463 gold badges25 silver badges40 bronze badges
I think you meanax=axes
rather thanax=res
– asongtoruin
Mar 28 at 14:33
@asongtoruin You are right. Thanks for the help, I'll fix it in the code.
– Thomas Kühn
Mar 28 at 14:42
add a comment
|
I think you meanax=axes
rather thanax=res
– asongtoruin
Mar 28 at 14:33
@asongtoruin You are right. Thanks for the help, I'll fix it in the code.
– Thomas Kühn
Mar 28 at 14:42
I think you mean
ax=axes
rather than ax=res
– asongtoruin
Mar 28 at 14:33
I think you mean
ax=axes
rather than ax=res
– asongtoruin
Mar 28 at 14:33
@asongtoruin You are right. Thanks for the help, I'll fix it in the code.
– Thomas Kühn
Mar 28 at 14:42
@asongtoruin You are right. Thanks for the help, I'll fix it in the code.
– Thomas Kühn
Mar 28 at 14:42
add a comment
|
When you call subplots
, you can specify the number of rows and columns that you want. In your case, you want 3 rows and 7 columns. However, .plot
will be annoyed at there being 21 axes but only 19 to plot from your dataframe. So instead, we'll flatten the axes into a list and convert to a list, which will allow us to remove the last two from both the figure and the set of axes simultaneously through .pop()
fig, axes = plt.subplots(figsize=(19,10), dpi=50, nrows=3, ncols=7)
flat_axes = list(axes.reshape(-1))
fig.delaxes(flat_axes.pop(-1))
fig.delaxes(flat_axes.pop(-1))
dataframe1.hist(ax=flat_axes, alpha=0.5, label='x')
dataframe2.hist(ax=flat_axes, alpha=0.5, label='x',color='r')
add a comment
|
When you call subplots
, you can specify the number of rows and columns that you want. In your case, you want 3 rows and 7 columns. However, .plot
will be annoyed at there being 21 axes but only 19 to plot from your dataframe. So instead, we'll flatten the axes into a list and convert to a list, which will allow us to remove the last two from both the figure and the set of axes simultaneously through .pop()
fig, axes = plt.subplots(figsize=(19,10), dpi=50, nrows=3, ncols=7)
flat_axes = list(axes.reshape(-1))
fig.delaxes(flat_axes.pop(-1))
fig.delaxes(flat_axes.pop(-1))
dataframe1.hist(ax=flat_axes, alpha=0.5, label='x')
dataframe2.hist(ax=flat_axes, alpha=0.5, label='x',color='r')
add a comment
|
When you call subplots
, you can specify the number of rows and columns that you want. In your case, you want 3 rows and 7 columns. However, .plot
will be annoyed at there being 21 axes but only 19 to plot from your dataframe. So instead, we'll flatten the axes into a list and convert to a list, which will allow us to remove the last two from both the figure and the set of axes simultaneously through .pop()
fig, axes = plt.subplots(figsize=(19,10), dpi=50, nrows=3, ncols=7)
flat_axes = list(axes.reshape(-1))
fig.delaxes(flat_axes.pop(-1))
fig.delaxes(flat_axes.pop(-1))
dataframe1.hist(ax=flat_axes, alpha=0.5, label='x')
dataframe2.hist(ax=flat_axes, alpha=0.5, label='x',color='r')
When you call subplots
, you can specify the number of rows and columns that you want. In your case, you want 3 rows and 7 columns. However, .plot
will be annoyed at there being 21 axes but only 19 to plot from your dataframe. So instead, we'll flatten the axes into a list and convert to a list, which will allow us to remove the last two from both the figure and the set of axes simultaneously through .pop()
fig, axes = plt.subplots(figsize=(19,10), dpi=50, nrows=3, ncols=7)
flat_axes = list(axes.reshape(-1))
fig.delaxes(flat_axes.pop(-1))
fig.delaxes(flat_axes.pop(-1))
dataframe1.hist(ax=flat_axes, alpha=0.5, label='x')
dataframe2.hist(ax=flat_axes, alpha=0.5, label='x',color='r')
edited Mar 28 at 15:01
answered Mar 28 at 14:36
asongtoruinasongtoruin
6,6692 gold badges15 silver badges29 bronze badges
6,6692 gold badges15 silver badges29 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55396416%2fplotting-multiple-overlapped-histogram-with-pandas%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
I am understanding correctly that you want to show nineteen histograms on the same set of axes?
– asongtoruin
Mar 28 at 11:40
I just added one of the images. I want that each subplots have 2 histograms instead of 1. Thanks for trying to understand!
– Sergiodiaz53
Mar 28 at 11:54