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
Graphics, Figures & Tables ⇒ pgfplots | Problems in LyX on Mac
-
- Posts: 3
- Joined: Wed Jun 29, 2011 12:37 pm
pgfplots | Problems in LyX on Mac
Last edited by Andrew Lindsay on Wed Jun 29, 2011 4:54 pm, edited 3 times in total.
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
Your problem is not related to the pgfplots package but more a general one with float placement. Give appropriate placement parameters to your floats.
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
Code: Select all
\begin{figure}[!ht]
% figure content
\end{figure}
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 3
- Joined: Wed Jun 29, 2011 12:37 pm
Re: pgfplots | Problems in LyX on Mac
Excellent!!!
that worked perfectly. The pgfplot is placed in as Latex coe, so it was just a simple matter of adding the [!ht].
Andrew
that worked perfectly. The pgfplot is placed in as Latex coe, so it was just a simple matter of adding the [!ht].
Andrew