Graphics, Figures & TablesInsert space between tick labels and axis in Pgfplots

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Deve
Posts: 8
Joined: Mon May 18, 2015 10:12 am

Insert space between tick labels and axis in Pgfplots

Post by Deve »

Hi all,

I'd like to add some vertical space between the tick labels and the axis in a Pgfplots plot. Is this possible?

Background: I have two subfigures arranged next to each other (horizontally) using the subfig package. Both subfigures contain a Pgfplot. The left plot uses a logarithmic x axis and thus an exponential number format for the ticks. The right plot uses a linear scale x axis and thus ticks like 0, 100, 600, ... As a consequence, the left plot needs a tiny bit more of vertical space and is thus not aligned horizontally with the right plot. My goal is to have the two plots vertically aligned. The following screenshots illustrates the issue.

Image

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

Post Reply