# Redrawing and Combining Plots

The Wolfram Language saves information about every plot you produce, so that you can later redraw it. When you redraw plots, you can change some of the options you use.

Show[plot,option->value] | redraw a plot with options changed |

Show[plot_{1},plot_{2},…] | combine several plots |

GraphicsGrid[{{plot_{1},plot_{2},…},…}] | draw an array of plots |

InputForm[plot] | show the underlying textual description of the plot |

Functions for manipulating plots.

In[1]:= |

Out[1]= |

In[2]:= |

Out[2]= |

In[3]:= |

Out[3]= |

By using Show with a sequence of different options, you can look at the same plot in many different ways. You may want to do this, for example, if you are trying to find the best possible setting of options.

You can also use Show to combine plots. All of the options for the resulting graphic will be based upon the options of the first graphic in the Show expression.

In[4]:= |

Out[4]= |

In[5]:= |

Out[5]= |

In[6]:= |

Out[6]= |

In[7]:= |

Out[7]= |

All Wolfram Language graphics are expressions and can be manipulated in the same way as any other expression. Doing these kinds of manipulations does not require the use of Show.

In[8]:= |

Out[8]= |

Using Show[plot_{1},plot_{2},…] you can combine several plots into one. GraphicsGrid allows you to draw several plots in an array.

GraphicsGrid[{{plot_{11},plot_{12},…},…}] | draw a rectangular array of plots |

GraphicsRow[{plot_{1},plot_{2},…}] | draw several plots side by side |

GraphicsColumn[{plot_{1},plot_{2},…}] | draw a column of plots |

GraphicsGrid[plots,Spacings->{h,v}] | put the specified horizontal and vertical spacing between the plots |

In[9]:= |

Out[9]= |

In[10]:= |

Out[10]= |

GraphicsGrid by default puts a narrow border around each of the plots in the array it gives. You can change the size of this border by setting the option Spacings->{h,v}. The parameters h and v give the horizontal and vertical spacings to be used. The Spacings option uses the width and height of characters in the default font to scale the h and v parameters by default, but it is generally more useful in graphics to use Scaled coordinates. Scaled scales widths and heights so that a value of represents the width and height of one element of the grid.

In[11]:= |

Out[11]= |

When you make a plot, the Wolfram Language saves the list of points it used, together with some other information. Using what is saved, you can redraw plots in many different ways with Show. However, you should realize that no matter what options you specify, Show still has the same basic set of points to work with. So, for example, if you set the options so that the Wolfram Language displays a small portion of your original plot magnified, you will probably be able to see the individual sample points that Plot used. Options like PlotPoints can only be set in the original Plot command itself. (the Wolfram Language always plots the actual points it has; it avoids using smoothed or splined curves, which can give misleading results in mathematical graphics.)

In[12]:= |

Out[12]= |

In[13]:= |

Out[13]= |