Skip to main content
removed duplicate pic of instructions
Source Link
DavidC
  • 16.9k
  • 1
  • 43
  • 96

I'm assuming you want to use the same PlotRange for cell (2,2) as for the other cells.

You can change the order: show Plot before ListPlot. Note that Plot will now set the PlotRange; as I understand it, the first function called by Show controls the graphics settings (if there should be a conflict).

Show[Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}, PlotRange -> {{0, 30}, {0, 1}}], ListPlot[data2] ] 

PlotRange

The following questions remain:

  • "Why isn't the full plot range displayed when ListPlot comes before Plot?

  • "Why can't you specify the PlotRange in Show as follows?"

    Show[Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}], ListPlot[data2], PlotRange -> {{0, 30}, {0, 1}}] According to the documentation, this latter approach should work (but it does not):

instruction

Either of these result in the following:

PlotRange2


Edit

You can display the data points beneath the model using. Note, however that the points will lie beneath the axes.

Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}, PlotRange -> {{0, 30}, {0, 1}}, PlotRangePadding -> {{.3, 3}, {0.1, 0}}, Prolog -> {Red, PointSize[Large], Point[data2]}] 

points shown

I'm assuming you want to use the same PlotRange for cell (2,2) as for the other cells.

You can change the order: show Plot before ListPlot. Note that Plot will now set the PlotRange; as I understand it, the first function called by Show controls the graphics settings (if there should be a conflict).

Show[Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}, PlotRange -> {{0, 30}, {0, 1}}], ListPlot[data2] ] 

PlotRange

The questions remain:

  • "Why isn't the full plot range displayed when ListPlot comes before Plot?

  • "Why can't you specify the PlotRange in Show as follows?"

    Show[Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}], ListPlot[data2], PlotRange -> {{0, 30}, {0, 1}}] According to the documentation, this latter approach should work (but it does not):

instruction

Either of these result in the following:

PlotRange2


Edit

You can display the data points beneath the model using. Note, however that the points will lie beneath the axes.

Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}, PlotRange -> {{0, 30}, {0, 1}}, PlotRangePadding -> {{.3, 3}, {0.1, 0}}, Prolog -> {Red, PointSize[Large], Point[data2]}] 

points shown

I'm assuming you want to use the same PlotRange for cell (2,2) as for the other cells.

You can change the order: show Plot before ListPlot. Note that Plot will now set the PlotRange; as I understand it, the first function called by Show controls the graphics settings (if there should be a conflict).

Show[Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}, PlotRange -> {{0, 30}, {0, 1}}], ListPlot[data2] ] 

The following questions remain:

  • "Why isn't the full plot range displayed when ListPlot comes before Plot?

  • "Why can't you specify the PlotRange in Show as follows?"

    Show[Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}], ListPlot[data2], PlotRange -> {{0, 30}, {0, 1}}] According to the documentation, this latter approach should work (but it does not):

instruction

Either of these result in the following:

PlotRange2


Edit

You can display the data points beneath the model using. Note, however that the points will lie beneath the axes.

Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}, PlotRange -> {{0, 30}, {0, 1}}, PlotRangePadding -> {{.3, 3}, {0.1, 0}}, Prolog -> {Red, PointSize[Large], Point[data2]}] 

points shown

response to overlaying of data by model.
Source Link
DavidC
  • 16.9k
  • 1
  • 43
  • 96

I'm assuming you want to use the same PlotRange for cell (2,2) as for the other cells.

You can change the order: show Plot before ListPlot. Note that Plot will now set the PlotRange; ifas I understand correctlyit, the first function called by Show controls the graphics settings (if there should be a conflict).

Show[Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}, PlotRange -> {{0, 30}, {0, 1}}], ListPlot[data2] ] 

PlotRangePlotRange

The questions remain:

  • "Why isn't the full plot range displayed when ListPlot comes before Plot?

  • "Why can't you specify the PlotRange in Show as follows?"

    Show[Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}], ListPlot[data2], PlotRange -> {{0, 30}, {0, 1}}] According to the documentationdocumentation, this latter approach should work (but it does not):

instruction

Either of these result in the following:

PlotRange2


Edit

You can display the data points beneath the model using. Note, however that the points will lie beneath the axes.

Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}, PlotRange -> {{0, 30}, {0, 1}}, PlotRangePadding -> {{.3, 3}, {0.1, 0}}, Prolog -> {Red, PointSize[Large], Point[data2]}] 

points shown

I'm assuming you want to use the same PlotRange for cell (2,2) as for the other cells.

You can change the order: show Plot before ListPlot. Note that Plot will now set the PlotRange; if I understand correctly, the first function called by Show controls the graphics settings.

Show[Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}, PlotRange -> {{0, 30}, {0, 1}}], ListPlot[data2] ] 

PlotRange

The questions remain:

  • "Why isn't the full plot range displayed when ListPlot comes before Plot?

  • "Why can't you specify the PlotRange in Show as follows?"

    Show[Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}], ListPlot[data2], PlotRange -> {{0, 30}, {0, 1}}] According to the documentation, this latter approach should work (but it does not):

instruction

Either of these result in the following:

PlotRange2

I'm assuming you want to use the same PlotRange for cell (2,2) as for the other cells.

You can change the order: show Plot before ListPlot. Note that Plot will now set the PlotRange; as I understand it, the first function called by Show controls the graphics settings (if there should be a conflict).

Show[Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}, PlotRange -> {{0, 30}, {0, 1}}], ListPlot[data2] ] 

PlotRange

The questions remain:

  • "Why isn't the full plot range displayed when ListPlot comes before Plot?

  • "Why can't you specify the PlotRange in Show as follows?"

    Show[Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}], ListPlot[data2], PlotRange -> {{0, 30}, {0, 1}}] According to the documentation, this latter approach should work (but it does not):

instruction

Either of these result in the following:

PlotRange2


Edit

You can display the data points beneath the model using. Note, however that the points will lie beneath the axes.

Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}, PlotRange -> {{0, 30}, {0, 1}}, PlotRangePadding -> {{.3, 3}, {0.1, 0}}, Prolog -> {Red, PointSize[Large], Point[data2]}] 

points shown

documentation included.
Source Link
DavidC
  • 16.9k
  • 1
  • 43
  • 96

I'm assuming you want to use the same PlotRange for cell (2,2) as for the other cells.

You can change the order: show Plot before ListPlot. Note that Plot will now set the PlotRange; by defaultif I understand correctly, the first function called by Show controls the graphics settings.

Show[Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}, PlotRange -> {{0, 30}, {0, 1}}], ListPlot[data2] ] 

PlotRange

The questions remain:

  • "Why isn't the full plot range displayed when ListPlot comes before Plot?

  • "Why can't you specify the PlotRange in Show as follows?"

    Show[Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}], ListPlot[data2], PlotRange -> {{0, 30}, {0, 1}}] According to the documentation, this latter approach should work (but it does not):

instruction

Either of these result in the following:

PlotRange2

I'm assuming you want to use the same PlotRange for cell (2,2) as for the other cells.

You can change the order: show Plot before ListPlot. Note that Plot will now set the PlotRange; by default, the first function called by Show controls the graphics settings.

Show[Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}, PlotRange -> {{0, 30}, {0, 1}}], ListPlot[data2] ] 

PlotRange

The questions remain:

  • "Why isn't the full plot range displayed when ListPlot comes before Plot?

  • "Why can't you specify the PlotRange in Show as follows?"

    Show[Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}], ListPlot[data2], PlotRange -> {{0, 30}, {0, 1}}]

Either of these result in the following:

PlotRange2

I'm assuming you want to use the same PlotRange for cell (2,2) as for the other cells.

You can change the order: show Plot before ListPlot. Note that Plot will now set the PlotRange; if I understand correctly, the first function called by Show controls the graphics settings.

Show[Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}, PlotRange -> {{0, 30}, {0, 1}}], ListPlot[data2] ] 

PlotRange

The questions remain:

  • "Why isn't the full plot range displayed when ListPlot comes before Plot?

  • "Why can't you specify the PlotRange in Show as follows?"

    Show[Plot[cumulativeGauss[x, fit2[[1]], fit2[[2]]], {x, 0, 30}], ListPlot[data2], PlotRange -> {{0, 30}, {0, 1}}] According to the documentation, this latter approach should work (but it does not):

instruction

Either of these result in the following:

PlotRange2

added 417 characters in body
Source Link
DavidC
  • 16.9k
  • 1
  • 43
  • 96
Loading
Source Link
DavidC
  • 16.9k
  • 1
  • 43
  • 96
Loading