Questions tagged [figure]

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

A figure is a container that encompasses graphical elements in a larger context.

Matlab

From the official docs:

A figure is a MATLAB window that contains graphic displays (usually data plots) and UI components. You create figures explicitly with the figure function, and implicitly whenever you plot graphics and no figure is active."

LaTeX

A figure is a kind of float, a container for things that can't be split over different pages. A figure is define with the equally named environment.

HTML5

The <figure> Element represents self-contained content, frequently with a caption (), and is typically referenced as a single unit. (From the Mozilla HTML docs)

1521 questions
12
votes
1 answer

How to add two figures side by side, and insert captions to each of them?

In Word, I can add two figures side by side, however, when I insert captions to each of them, the figure number doesn't change, both of them have the same figure number. How can I solve this problem?
bing
  • 179
  • 1
  • 1
  • 6
12
votes
2 answers

Remove white border when using subplot and imshow in python (Matplotlib)

import numpy as np import sys import matplotlib as mpl import matplotlib.pyplot as plt i use the following code to save an image fig, ax = plt.subplots(frameon=False) ax.axis ('off') ax.imshow …
refle
  • 587
  • 3
  • 6
  • 19
12
votes
1 answer

Get current figure size in MATLAB

Simple question: How do you get the current figure size in MATLAB? Example: figure(1) [width, height] = ****some function I'm not aware of**** Googling this always returns how to change the window size but not how to just get the current window…
Darcy
  • 619
  • 2
  • 5
  • 15
12
votes
1 answer

Latex: Page number suppressing when a figure covers the whole page

I want to suppress page number in a page where a figure covers the whole page. \thispagestyle{empty} \begin{figure}[H] \centering \fbox{\includegraphics[height=0.95\textheight]{853}} \caption{Whole Model Part 1} …
Mert Nuhoglu
  • 9,695
  • 16
  • 79
  • 117
11
votes
1 answer

Matlab area() edge colors cover the axes lines, is there a work around?

figure('Color', 'w') box on x = 1:10; y = 5 * x + 2; area(x, y, 'FaceColor', 'b', 'EdgeColor', 'b') This code creates a figure with the area under the curve shaded blue. The EdgeColor property sets the trapezoidal line around the filled area to…
moorepants
  • 1,813
  • 2
  • 22
  • 23
11
votes
2 answers

Save Matlab figure without plotting it?

Is there a way of saving a figure plot without actually plotting it? I mean, let's say I want to save the graph for plot(1:10, (1:10).^2), can I save it without showing it? I want to make the run time shorter by cutting off the unnecessary plotting…
shahar_m
  • 3,461
  • 5
  • 41
  • 61
11
votes
1 answer

html5, figure/figcaption inside a paragraph gives unpredictable output

The following markup uses the figure element to display an image, inline with the text of a paragraph -- hence the figure is 'included' inside the first

.

Daryl
  • 1,469
  • 5
  • 18
  • 30
11
votes
3 answers

Drawing manually on a figure

I have generated a graph: library(DiagrammeR) grViz(" digraph boxes_and_circles { # a 'graph' statement graph [layout = neato, overlap = true, fontsize = 10, outputorder = edgesfirst] # several 'node' statements node [shape = circle, …
histelheim
  • 4,938
  • 6
  • 33
  • 63
11
votes
1 answer

How to hide figures in knitr, but create them as png?

I am currently doing some statistical analysis in R and use knitr to generate results and an overview document. There are some additional plots, which I want to be done and saved as a .png (with specified file name and location), but not included in…
Tim
  • 1,430
  • 15
  • 36
11
votes
1 answer

Margin Figures in Latex

I would like to put some figures in margin in my latex documents. I want them to be non-float. Is there any package for it. thanks
ahmet nurlu
  • 111
  • 1
  • 1
  • 4
11
votes
3 answers

Change resolution of Matplotlib Figure window when saving plot?

I'm using Windows XP v3/Python 2.7 with Canopy and Anaconda package managers/editors. I am using Python/Matplotlib to produce some Bland-Altman plots (statistical scatter plots) for publication. After processing the data, the plt.show() command…
Dave
  • 515
  • 1
  • 8
  • 17
10
votes
0 answers

How to Change Figure Plot Size using Seaborn Package FacetGrid

I am making a plot using seaborn FacetGrid with dataframe: df. I am using sns because of the hue functionality. See code: import seaborn as sns import matplotlib.pyplot as plt grid = sns.FacetGrid(df,hue='var') grid.map(plt.scatter, x,…
J.A.Cado
  • 715
  • 5
  • 13
  • 24
10
votes
2 answers

In knitr, how to set figure width with \textwidth from Latex

I have tried the following to set figure width with knitr and LaTeX: \documentclass{paper} \begin{document} <> x = runif(1000) plot(x) @ \end{document} However, I get the following error:
Marc Kees
  • 206
  • 2
  • 15
10
votes
3 answers

Adjusting figure margins in Rmarkdown

I am trying to adjust the piechart figure in my Rmarkdown document so that it spans the width of the page or at least becomes wide enough to fit all of the labels. I have tried everything - adjusting figure.height and figure.width, margins with…
iskandarblue
  • 7,208
  • 15
  • 60
  • 130
10
votes
1 answer

How to have a common legend for subplots?

I am trying to create a figure of subplots. I don't want the subplots to have legends but instead the figure to have an overall legend. I read that it is possible either by adding a legend only to the last subplot and adjusting its location in the…
Whitebeard13
  • 411
  • 1
  • 7
  • 17