How can I close the plot area with black lines in the top and right side when I save a plot?
I don't have any idea how to make it or how to search, if anyone knows please tell me.
For example look at the plot shown below, where the lines are missing:
Before you save your image, use the
box
command. This will enclose your plot to have the surrounding black box as you have specified in your example image. Simply call:To turn it off, do:
Example:
This is what the plot looks like:
If you were to turn boxing off, this is what the plot looks like:
box off;
is the default behaviour forplot
, as you have seen in the example image you have shown. Simply callbox on;
after the plot is shown and before you save your image to get the desired effect.