figures

Is there a way to get LaTeX to place figures in the same page as a reference to that figure?

I am using LaTeX and the figure environment. I am well familiar with the parameters to that environment: [htbp], and I am also generally familiar with the strategies that LaTeX takes, by default, to decide where to put each figure. For example, by placing figures at the top or bottom of the page. What I am wondering is whether there is...

In LaTeX, is there a way to put a float automatically after where it is first referenced?

I am currently writing a long one-column document that contains a lot of floats (figures and tables). I know the usual b/h/p/t options for placing floats in latex. However, I was wondering if there exists a package or macro that would let me do the following automatically: place a float automatically right after it was first reference. S...

Rendering and image quality in MATLAB figures

I have a contour plot and I am using the current rendering: set(gcf, 'renderer', 'zbuffer'); but it is giving me this thick red line in the plot and I don't know how to get rid of it. I tried switching to: set(gcf, 'renderer', 'opengl'); but the quality is poor and I really need to have high quality images. Any suggestions? ...

Python with matplotlib - drawing multiple figures in parallel

I'm have functions that contribute small parts of a figure generation. What I'm trying to do is to use these functions to generate multiple figures? So something like this: work with Figure 1 do something else work with Figure 2 do something else work with Figure 1 do something else work with Figure 2 If anyone could help, that'd be ...

Python with matplotlib - reusing drawing functions

I have a follow up question to this question. Is it possible to streamline the figure generation by having multiple python scripts that work on different parts of the figure? For example, if I have the following functions: FunctionA: Draw a histogram of something FunctionB: Draw a box with a text in it FunctionC: Draw a plot ...

centering only header of LaTeX table

I'd like to center just the header, but not the body of particular columns in a table. For example: \begin{table}[!t] \centering \caption{ \bf{My table}} \begin{tabular}{l|c|} ... \end{tabular} \end{table} will make a left-aligned column, and a center-aligned column. I'd like the headers to all be centered, but the body of the table t...

Assigning figure size to a figure with a given handle (MATLAB)

Hi, is there a way to assign the outerposition property of a figure to a figure with a given handle? For example, if I wanted to define a figure as say figure 1, I would use: figure(1) imagesc(Arrayname) % I.e. any array I can also change the properties of a figure using the code: figure('Name', 'Name of figure','NumberTitle','o...

Pythagoras tree with g2d

I'm trying to build my first fractal (Pythagoras Tree): in Java using Graphics2D. Here's what I have now : import java.awt.*; import java.awt.geom.*; import javax.swing.*; import java.util.Scanner; public class Main { public static void main(String[] args) { int i=0; Scanner scanner = new Scanner(System.in); System.o...

EPS figure in pdf output is transparent and placed over text - a Latex problem

I have generated eps figures in MATLAB and am using them in Latex. (Miktex 2.9 with TexnicCenter). I dont understand why the output ( PS-> pdf ) shows the figure on top of the text below it. Also the figure appears to have a transparent background through which you can see the text over which it is placed. the name of the figure file ...

Prevent figures/listings from being inserted into specific parts of a LaTeX document

I have a part A in a document with some text and listings/figures in between. The figures and listings are positioned using htb. Following this part A, there is the bibliography. However a couple of figures do not fit and are therefore are offset to another page, which is fine. But: I do want to limit the offset space to part A and not ...