Questions tagged [axis]
For labels, markings, or other information, related to an axis of a graph
444 questions
1 vote
0 answers
30 views
axis 2nd and 3rd quadrant: arrows
I need to draw a graph in the 3rd quadrant. I'd like to have the arrows poiting left (x) en down (right) with the axis labels left (x) en botton (y) is there a way to do this? \documentclass{...
1 vote
1 answer
67 views
Selectively Shift Axis Ticks in 3D Plot
I am currently working on a 3D surface plot in which both x-, and y-axis are logarithmic. The issue I am facing and why I am posting is that the measurements are too close to each other, and I hence ...
4 votes
1 answer
112 views
Wrong axis label position in PGFPlots with extra ticks
I noticed an issue with the placement of axis labels in PGFPlots when all of the following conditions are met: tick align=center or tick align=outside is used (not with tick align=inside), there is ...
2 votes
1 answer
168 views
Tips of METAPOST arrows as in TikZ
Considering that I not know a very good manual of METAPOST, is it possible to have the same tips of METAPOST also in TikZ? \documentclass{article} \usepackage{luamplib} \mplibtextextlabel{enable} \...
2 votes
1 answer
69 views
Enable minor ticks without changing major grid in logarithmic axis
I have a semi-logarithmic plot, and I noticed that when the range is to large, minor ticks for the logarithmic axis disappear. I tried using max space between ticks=20, but it actually changes also ...
3 votes
1 answer
93 views
Align draw endpoints with x-axis ticks
I am trying to draw a line between two x-values using \draw[|-|], and I want the endpoints to exactly align with the x-axis ticks (e.g., at x = -1 and x = 1). However, in the output below, the bar ...
1 vote
1 answer
88 views
Programmatically draw 3D barplot using addplot3D
I was trying to understand how the programming tools work on Latex in the tikzpicture environment. Can someone explain me how to reduce this big code to a cleaner version that can be write with a ...
5 votes
1 answer
112 views
Pgfplots tick label values are incorrect
I have the x axis of my data in volts, but I want to show it in millivolts, therefore I want to multiply the tick label numbers by 1000 while positioning the labels correctly relative to my data. I ...
2 votes
1 answer
89 views
How to automatically adjust the x-axis spacing in a bar chart with pgfplots?
I'm trying to define a reusable style in pgfplots to improve the spacing of the x-axis (or y-axis) in bar plots. By default, pgfplots adds a significant horizontal margin to the left and right of the ...
1 vote
1 answer
71 views
axis environment inside tikzpicture does not work
The following MWE with axis environment inside a tikzpicture is not working. Do I forget a package? \documentclass{article} \usepackage{pgfplots} \pgfplotsset{width=10cm,compat=1.9} \begin{document} ...
3 votes
1 answer
199 views
Tikz library spy: Undefined control sequence
I have problem with plotting data from tables. I try plot in tikz environment and zoom a piece of axis plot, but error on string with \spy is occurring: Undefined control sequence. Thank u in advance. ...
2 votes
2 answers
102 views
pgfplots: Setting the height depending on (non)default width
I'd like to achieve that, using pgfplots, an axis is half as high as it is wide (or, in a slightly different scenario, half as high as it "should" be). Consider this MWE \documentclass[11pt,...
1 vote
1 answer
103 views
Customizing Axis Positions in TikZ: Adjusting Secondary Y-Axis and Shifting X/Y Axes
How can I: Move the second y-axis to the left-hand side of the plot? Shift the x-axis horizontally to the left (west) away from the plot? Shift the y-axis vertically downward (south) away from the ...
1 vote
1 answer
61 views
How can I adjust a tikzpicture axis with two y-axes to fit the text width?
I am encountering a problem where my tikzpicture exceeds the text width in my document on the right-hand side. How can I ensure that the tikzpicture fits within the text width? my code \documentclass{...
4 votes
3 answers
271 views
Why Does My TikZ/Beamer Animation Render All Elements in the First Frame?
I am trying to create a dynamic plot in a beamer presentation using TikZ and pgfplots. The goal is to gradually display elements across multiple slides: Slide 1: Display an empty coordinate system. ...