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
28
votes
5 answers

How do you just show the text label in plot legend? (e.g. remove a label's line in the legend)

I want to show the text for a line's label in the legend, but not a line too (As shown in the figure below): I have tried to minimise the legend's line and label, and overwrite only the new-label too (as in the code below). However, the legend…
Java.beginner
  • 871
  • 2
  • 19
  • 37
28
votes
2 answers

Can We Use Video Tag In Figure Tag In HTML5

I am trying to build a clean HTML5 structure for my projects, I didnt get the usage variety for Figure tag; Can we really use Video in Figure as this page said: http://oopeducation.com/html5/html5-figure-tag/ Or is it only for images? Thank you!
Digerkam
  • 1,826
  • 4
  • 24
  • 39
24
votes
8 answers

How to plot arrow with data coordinates in Matlab?

I know there is a function named annotation can plot arrows or double arrows. But annotation can only plot in normalized unit. For example: annotation('arrows',[x1 x2],[y1 y2]) Here, [x1, x2] should be a ratio number less than one. So, my question…
datcn
  • 751
  • 5
  • 13
  • 20
23
votes
2 answers

Knitr ignoring fig.pos?

I am trying to insert a figure in a RMarkdown document but am having trouble getting it to appear in the right place. The figure below shows the problem: when using a figure caption, the figure appears at the top of the page rather than below the…
jkeirstead
  • 2,881
  • 3
  • 23
  • 26
23
votes
1 answer

Can a figure tag contain an anchor tag wrapping the image?

I am trying to create a figure tag that has inside an anchor tag wrapping the image. I was wondering if that structure is legal or not. Here is the code showing how I want it to work.
armellini13
  • 377
  • 1
  • 3
  • 11
22
votes
4 answers

R Markdown HTML Number Figures

Does anyone know how to number the figures in the captions, for HTML format R Markdown script? For PDF documents, the caption will say something like: Figure X: Some Caption Text However, the equivalent caption for the HTML version will simply…
Nicholas Hamilton
  • 10,044
  • 6
  • 57
  • 88
22
votes
4 answers

How can I extract data from a .fig file in MATLAB?

I know this is really basic, but I am new to MATLAB. After opening a .fig file, how do you actually work with the plotted data in the command window? All I see is the plot. I'm not sure how to actually get the data.
sylvester
  • 221
  • 1
  • 2
  • 3
22
votes
2 answers

Latex: Text cannot be placed below image

I'm having a problem with an image and some text. I have this code: Some text...\\ \begin{figure}[ht] \centering \includegraphics[scale=0.75]{picture.jpg} \caption{The caption} \label{fig:picture} \end{figure} Some more text... Basically, I…
Frederik Wordenskjold
  • 10,031
  • 6
  • 38
  • 57
21
votes
1 answer

Is it possible to get LaTeX to link to the top of a figure rather than to its caption?

In my TeX file I have the following code: \begin{figure}[H] \begin{center} \includegraphics[width=5in]{screens/main.png} \caption{\label{fig:MainScreen} Screenshot of the main screen of TADA.} …
celestialorb
  • 1,901
  • 7
  • 29
  • 50
20
votes
1 answer

Why does my figure appear to be animated (when it shouldn't be)?

Consider the following code which draws a figure: figure('Renderer', 'opengl'); N = 50; tL = linspace(0.5, 6, N).'; tB = sort(randi(100,N,20),1); yyaxis right; plot(tL, tB); xlim([2 6]); When I run this code, I get a haunted figure with moving…
Dev-iL
  • 23,742
  • 7
  • 57
  • 99
20
votes
1 answer

How to have R corrplot title position correct?

Code and its output where title is wrongly positioned outside the window page: library('corrplot') #options(error=recover) # http://stackoverflow.com/a/15031603/54964 #debugger() # load("last.dump.rda"); debugger(last.dump) # run if…
Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697
20
votes
3 answers

How to close a python figure by keyboard input?

I'm trying to write a python program that displays a figure for indefinite time and closes it after any keyboard key is pressed. In fact, the python program should do the same as this Matlab code: t = 0:0.01:2; s = sin(2 * pi *…
Boris L.
  • 936
  • 2
  • 12
  • 28
19
votes
4 answers

How do I ref a figure in LaTeX before it occurs?

I always like my figures to be placed in between text as opposed to the top or bottom of the page. I also like to talk about the figure before it is shown. So I am trying to have something like this: By looking at Figure~\ref{fig:VCO} you can see…
Adam
  • 191
  • 1
  • 1
  • 3
19
votes
5 answers

Program to open .fig files saved by Matlab

Is there any program able to open .fig files saved by Matlab?
Cleiton
  • 271
  • 2
  • 5
  • 14
18
votes
4 answers

Using PyCharm I want to show plot extra figure windows

After installing Anaconda3 & PyCharm in new PC, I tried to test the same code as uploaded here And I got a window like this. But usually I use the plot window like this format (from google image search) I think the first view is useful for…
Gangil Seo
  • 256
  • 1
  • 3
  • 16