LyXHelp centering legend

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
sousou
Posts: 1
Joined: Tue Sep 18, 2018 10:24 am

Help centering legend

Post by sousou »

I am new with LATEX and I am writing my report with LYX but I find huge difficulties in making the legend centered ! here is an exemple of my figures ( fig 1 ) , the legend is extending all the page ! I want it to be centered like (fig 2) ! I've tried the command \centering but in vain .
Attachments
fig 2
fig 2
Capture du 2018-09-18 10-37-25.png (143.42 KiB) Viewed 1563 times
fig 1
fig 1
Capture du 2018-09-18 09-22-23.png (139.24 KiB) Viewed 1563 times

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

diazdeus
Posts: 32
Joined: Fri Sep 28, 2018 9:34 pm

Help centering legend

Post by diazdeus »

With the caption package you can do that you needs... See the documentation.
Post Reply