Graphics, Figures & Tablespgfplots | Problems in LyX on Mac

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Andrew Lindsay
Posts: 3
Joined: Wed Jun 29, 2011 12:37 pm

pgfplots | Problems in LyX on Mac

Post by Andrew Lindsay »

Hello,

I am using Lyx and pgfplot to write a report.

When I start a new section with a graph just below the introduction text, the intro text and section header are moved below the graph, no matter what I do, the graph keeps on 'floating' to the top of the page.

How do I force the graph to stay 'in-line' or after the section title and paragraph of text?

Any assistance would be greatly appreciated.

Regards

Andrew Lindsay
Last edited by Andrew Lindsay on Wed Jun 29, 2011 4:54 pm, edited 3 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

pgfplots | Problems in LyX on Mac

Post by localghost »

Your problem is not related to the pgfplots package but more a general one with float placement. Give appropriate placement parameters to your floats.

Code: Select all

\begin{figure}[!ht]
% figure content
\end{figure}
To find out how to do this in LyX is your job. I haven't got the slightest idea because I'm not a LyX user.


Thorsten
Andrew Lindsay
Posts: 3
Joined: Wed Jun 29, 2011 12:37 pm

Re: pgfplots | Problems in LyX on Mac

Post by Andrew Lindsay »

Excellent!!!

that worked perfectly. The pgfplot is placed in as Latex coe, so it was just a simple matter of adding the [!ht].

Andrew
Post Reply