Skip to main content
Became Hot Network Question
added 91 characters in body
Source Link
Vaggelis_Z
  • 8.8k
  • 6
  • 35
  • 81

Let's consider the following simple data set

data = {{0,1.48},{1,0},{2.3,6.22},{3.1,0.01},{3.45,2.66},{5.34,0.11},
        {7.98,3.18},{8.12,4.11},{8.32,0},{9.65,3.56},{10,5.22}};

The list contains pairs $(x,y)$. I want to use this data for creating a histogram where the $x$ values are the horizontal values of the histogram, while the corresponding $y$ values indicate the height of the respective bar of the histogram. I also should be able to control the width of the bars, let's say to be equal to 0.001.

Any suggestions on how to create the desired histogram?

Let's consider the following simple data set

data = {{0,1.48},{1,0},{2.3,6.22},{3.1,0.01},{3.45,2.66},{5.34,0.11},
        {7.98,3.18},{8.12,4.11},{8.32,0},{9.65,3.56},{10,5.22}};

The list contains pairs $(x,y)$. I want to use this data for creating a histogram where the $x$ values are the horizontal values of the histogram, while the corresponding $y$ values indicate the height of the respective bar of the histogram. Any suggestions on how to create the desired histogram?

Let's consider the following simple data set

data = {{0,1.48},{1,0},{2.3,6.22},{3.1,0.01},{3.45,2.66},{5.34,0.11},
        {7.98,3.18},{8.12,4.11},{8.32,0},{9.65,3.56},{10,5.22}};

The list contains pairs $(x,y)$. I want to use this data for creating a histogram where the $x$ values are the horizontal values of the histogram, while the corresponding $y$ values indicate the height of the respective bar of the histogram. I also should be able to control the width of the bars, let's say to be equal to 0.001.

Any suggestions on how to create the desired histogram?

fixed typo
Link

Creating a hidtogramhistogram using custom data

Source Link
Vaggelis_Z
  • 8.8k
  • 6
  • 35
  • 81

Creating a hidtogram using custom data

Let's consider the following simple data set

data = {{0,1.48},{1,0},{2.3,6.22},{3.1,0.01},{3.45,2.66},{5.34,0.11},
        {7.98,3.18},{8.12,4.11},{8.32,0},{9.65,3.56},{10,5.22}};

The list contains pairs $(x,y)$. I want to use this data for creating a histogram where the $x$ values are the horizontal values of the histogram, while the corresponding $y$ values indicate the height of the respective bar of the histogram. Any suggestions on how to create the desired histogram?