Top "Figure" questions

A container for images, plots or other graphical elements with some optional meta-information.

Error in plot.new() : figure margins too large, Scatter plot

I've looked in different questions for a solution and I've tried what was suggested but I have not found a …

r plot figure margins
How do I tell Matplotlib to create a second (new) plot, then later plot on the old one?

I want to plot data, then create a new figure and plot data2, and finally come back to the original …

python matplotlib plot figure
In Matplotlib, what does the argument mean in fig.add_subplot(111)?

Sometimes I come across code such as this: import matplotlib.pyplot as plt x = [1, 2, 3, 4, 5] y = [1, 4, 9, 16, 25] fig = plt.figure() fig.add_…

python matplotlib figure
Matplotlib different size subplots

I need to add two subplots to a figure. One subplot needs to be about three times as wide as …

python plot matplotlib figure
How to create a new figure in MATLAB?

Usually when I plot in MATLAB, it always draws on the same figure. How do I make it draw in …

matlab plot figure
Matplotlib (pyplot) savefig outputs blank image

I am trying to save plots I make using matplotlib; however, the images are saving blank. Here is my code: …

python image matplotlib figure
Python Matplotlib figure title overlaps axes label when using twiny

I am trying to plot two separate quantities on the same graph using twiny as follows: fig = figure() ax = fig.…

python matplotlib title figure
How to save a figure in MATLAB from the command line?

Is there a command in MATLAB which allows saving a figure in FIG or JPEG or both formats automatically?

matlab save figure
How to force two figures to stay on the same page in LaTeX?

I have two images that I want to display on a page as figures. Each eats up little less than …

image layout latex figure
matplotlib savefig in jpeg format

I am using matplotlib (within pylab) to display figures. And I want to save them in .jpg format. When I …

matplotlib jpeg figure