Plot in 2D with 2 plot in 1D

Hi All ,
I have a .root file with 2 histograms in 1D , I wonder if some command exist for make a new 2D histogram with the previous 1D one.
Thanks for your answer !

The way to do it would be:

  1. create a new 2D histogram
  2. loop over the 1D histos bin, get the bins content and fill the 2D histo.
    I am not aware of any method doing that directly.

Using two 1D histograms will never let you fill a 2D histogram because you have lost the correlations between the variables. You could write a piece of code that assumes no correlations and does something silly, but I don’t think it would really be what you want. You really need to start filling a 2D histogram.

Cheers,
Charles