Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [ticks]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
22 views

Define tick labels in PGFPlots with a variable

When I try to specify ticks / tick labels in PGFPlots using a variable (for automatic report generation for example), it works for the ticks, but not for the tick labels. Here is the code I use: \def\...
Philippe's user avatar
1 vote
1 answer
33 views

Hiding all tick-marks except for ones with custom labels

I've looked at many similar questions but none describe quite what I'm trying to do. I would like to hide all the tick-marks on my axis except for one, under which I have a custom label. Here's a MWE: ...
Giacomo Amaducci's user avatar
0 votes
1 answer
30 views

Place tick scale label on top of plot contents

I came up with a pretty neat way to avoid overlap between tick scale labels and axis bounds for stacked plots by moving the tick scale labels into the axis windows, but unfortunately the lines are ...
mcmuffin6o's user avatar
0 votes
2 answers
55 views

How to remove ticks outside intervals ends

\documentclass[border=5pt]{standalone} \usepackage{statistics} \begin{document} \StatsRangeData \tips = { 15.95, 12.60, 20.75, 22.20, 8.80, 15.60, 19.50, 20.60, 24.15, 9.85, 11.80, 12.75, 15.40, ...
tatojo's user avatar
  • 1,341
4 votes
1 answer
132 views

How to put \SI in a yticklabel?

How can I get my pgfplot to let siunitx write labels on the form \SI{10}{\milli\metre}? The following does not work: \documentclass{standalone} \usepackage{pgfplots} \usepackage{siunitx} \pgfplotsset{...
Anna's user avatar
  • 837
2 votes
1 answer
33 views

change negative y-axis labels to right side in pstricks

I have not been able to change the negative y-axis labels to the right side of the y-axis. This is what I need: And this is what I currently have compiled with XeLaTex: \documentclass{article} \...
raulevm's user avatar
  • 21
1 vote
1 answer
66 views

PGFPlots: add custom labels to alternative x axis

I have the following plot: \begin{tikzpicture} \begin{semilogxaxis} [ width=\textwidth, height=0.4\textwidth, xlabel={Frequency [Hz]}, ylabel={Volume [dB]}, xmin=10, xmax=...
Stewart's user avatar
  • 703
0 votes
1 answer
14 views

Set specific values on x axis on a logarithmic plot [closed]

I made the following plot And it comes from data that I stored on a .csv, now the x axis is on a logarithmic scale and I only want ticks right below the points that are plotted. Fortunately, all of ...
Leonardo Lovera's user avatar
0 votes
1 answer
66 views

Error in alignment of tick-labels in sub-figures [duplicate]

The tick labels are not aligning with the axis, but they are sort of differently aligned. As marked by the red vertical line. Image: MWE Code: \documentclass[12pt, a4paper, parskip=...
Formal_this's user avatar
0 votes
0 answers
40 views

Use fractions for coordinate ticks [duplicate]

So I have some issues with the rounding of fractions, and I know that calculating fractions is notoriously difficult for a computer, so I am not too surprised this is not as easy as I want it to be. I ...
lurgold's user avatar
  • 13
0 votes
0 answers
30 views

TikZ environment ignores vertical axis range

I am attempting to create a TikZ graph where the vertical axis ranges from 0 to 1, and tick points at 0.33 and 0.67 with corresponding labels. \begin{tikzpicture}[scale=0.75] \begin{axis} [...
David A. Lee's user avatar
0 votes
1 answer
50 views

Why last xtick of my PGFPlots graph is not showing?

I'm trying to draw a graph in Overleaf. I'm using this template that I found online: \begin{tikzpicture} \begin{axis}[ title={C++ Threads performance}, xlabel={Number of particles}, ylabel=...
Giovanni Casini's user avatar
1 vote
0 answers
22 views

Adding labels and ticks to chronodex

Upon @MS-SPO's suggestion, I've included the refactored code here. I still need to add some ticks, labels indicating time and nodes for hours (12, 3, 6, 9). I did figure out adding nodes but they aren'...
crypto's user avatar
  • 757
1 vote
1 answer
72 views

Mimic GeoGebra's grid lines with pgfplots

Using pgfplots, I want to have grid lines similar to GeoGebra's. That is four minor ticks in between major ticks and a lighter color for the minor grid lines: With the help of this post, I managed to ...
Roysten R.'s user avatar
2 votes
1 answer
169 views

Ticks scaling - How to change the common factor multiplier to an offset value?

I am plotting the following figure using Python and I obtain this render: Here, Python is automatically adding an constant value offset (+9.192682e9) on the y axis to read more easily the data. Now, ...
Clement's user avatar
  • 21
1 vote
0 answers
29 views

pgfplot yticks missing depending on values of ymin and ytickdistance

I have the following minimal exmaple: \documentclass{standalone} \usepackage{pgfplots} \begin{document} \definecolor{mycolor1}{rgb}{0.85000,0.32500,0.09800}% \definecolor{mycolor2}{rgb}{0.92900,0....
Marc Hüttenberger's user avatar
1 vote
0 answers
53 views

Connect 2 nodes with an arrow from different figures

I am trying to connect 2 nodes from 2 different figures; is there a solution? this is my attempt. \documentclass [conference] \usetikzlibrary{tikzmark, shadows.blur,arrows.meta,bending, shadings, ...
bighero's user avatar
  • 11
0 votes
1 answer
181 views

x,y graph with labeled point

New to graphing on latex. But I started something based on what I was seeing. Current code: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture}...
Ag_Fort Worth's user avatar
1 vote
2 answers
97 views

Add unit as single tick label

I want to use the second to last tick label as the place for my unit, as shown below. Is there a way to replace it? MWE: \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{...
fuj36840's user avatar
  • 550
1 vote
0 answers
33 views

Is there a way to center the output of this assessment table custom environment?

The custom environment is created in the answer by Niel de Beaudrap here: Assessment table. However I can unfortunately cannot center the table in my tex file. I have tried to use centering, \begin{...
Dhruvin Doshi's user avatar
0 votes
0 answers
27 views

Shift second right y-axis label and ticks [duplicate]

I would like to shift the second right y-axis label to the right along with the ticks so it does not interfere with the first right y-axis label and ticks. Here is the code and its output: \begin{...
el_maxx's user avatar
  • 163
1 vote
1 answer
766 views

Adjust decimal precision of single ticks in tikzpicture [duplicate]

I have a little question regarding the decimal precision of certain single ticks in a plot generated by tikzpicture. Minimal example: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{...
Schiweg's user avatar
  • 13
2 votes
1 answer
173 views

PGFplots: x,y ticklabel overlapping with the plot

I'm trying to plot two boxes using pgfplots. However, the tick labels are overlapping with the plot itself, which is quite annoying: Ideally I want them so that, e.g. k_2^- is on the top of the red ...
gouhaha's user avatar
  • 79
1 vote
2 answers
55 views

How to get rid of unwanted tick?

How do I get rid of unwanted ticks like those specific ones I marked blue in the picture? \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{filecontents}{data.txt} 1 ...
Friedrich Falkner's user avatar
1 vote
0 answers
31 views

Error in grid of log scaled .tikz file generated by matlab2tikz

I have generated a tikz file by matlab2tikz. The figure has grids in log mode. However, it does not show the grid at 2x10^7 although xmax=3x10^7, as shown here: When I increase the xmax=4x10^7, it ...
vefa's user avatar
  • 43
1 vote
1 answer
140 views

How to draw a bar as a node

Could anyone tell me how is it possible to add "bars" as a node such as in the image below : I would like to implement the "dl" segment : \documentclass{article} \usepackage{...
Waxler's user avatar
  • 776
0 votes
1 answer
112 views

pgfplots, multiply values, add ticks without numbers

I am new to Latex and want to add some plots with pgfplots. I want to make musical tempo graphs. So the x-axis indicates the respective beat and the y-axis indicates the bpm value. I need a tick for ...
Friedrich Falkner's user avatar
2 votes
1 answer
81 views

Change to log axis using `contour prepared` in pgfplot

I have data that becomes almost linear when plotting it in a logarithmic contour plot. Therefore I want to generate the contour lines externally and store the data logarithmically. Then I want to use ...
Jan Hajer's user avatar
  • 874
1 vote
1 answer
76 views

Why aren't empty ticks working with empty plots?

I need to do an empty plot for my students to fill. Surprisingly the options xtick=\empty and ytick=\empty do not work when the plot is empty: \documentclass{standalone} \usepackage{pgfplots} \...
Tobard's user avatar
  • 1,209
0 votes
1 answer
214 views

missing a tick label that has been named

So I made this graph, and this graph can't show me the tick $\frac{5}{2}\pi$ at 7.85. I've tried to enlarge the x max range, give extra ticks (and extra tick label) but nothing works. Anyone can help ...
Wilory Lu's user avatar
  • 101
0 votes
0 answers
442 views

Setting y axis discontinuity at a certain value

I got the following diagram, that I want to make discontinous at a certain value, so that the "unneccessary" parts are skipped. I already tried adding an "axis y discontinuity", ...
AnInterestingName's user avatar
0 votes
1 answer
197 views

Is it possible to have a plot with ticks but without their numbers?

I want to save space when stacking many axes over each other. The plots have common domain, and I don't want to lose space for the same information repeated (the numbers on the x-axis). Is it possible ...
Physor's user avatar
  • 431
0 votes
1 answer
166 views

Ticks formatting in PGF, how to switch to completely decimal without powers of 10 [duplicate]

The ticks are sticking close to each other, almost overlapping. How to change the ticks from $2.5\cdot 10^{-2}$ to just $0.025$ without changing the dimensions of the diagram ? \begin{tikzpicture} \...
Physor's user avatar
  • 431
3 votes
1 answer
605 views

Regular tick marks set to draw=none, but extra tick marks also not being drawn?

In the following code \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.17} \definecolor{gold}{RGB}{255, 184, 0} \begin{document} \begin{tikzpicture} \begin{...
D.R's user avatar
  • 771
3 votes
1 answer
204 views

Pgfplot with two y-axes not showing correct ytick values

I am trying to plot a graph with two y-axes but the values keep showing something else than what I intended. Any tips on how to fix this? Appreciate it. \begin{tikzpicture} \centering \...
Michaela 's user avatar
1 vote
1 answer
263 views

Imaginary unit automatic setup in tick marks for imaginary axis

I have seen solutions like this and this (in the question section), but they don't use the axis subenvironment in the tikzpicture environment. If I make a 2-D plot, the ticks, tick marks, and tick ...
Superman's user avatar
  • 1,625
1 vote
1 answer
370 views

No tick labels in gnuplot epslatex

I am trying to plot a function in gnuplot with epslatex terminal to be included in a Latex file: reset set terminal epslatex color set xlabel '$x$' set ylabel "$f(x)$" rotate by 90 set ...
K. Gabor's user avatar
0 votes
1 answer
933 views

How to shift bars in bar graph?

I have plotted the following figure: I would like to shift the green bars to the right, so they become adjacent on the right of the blue bars. Yet the green and blue bars have the same vertical axis,...
aaa's user avatar
  • 161
1 vote
0 answers
62 views

Tikz Bar graphs with many coordinates per y value [duplicate]

I have a few problems with the following code: \begin{figure} \caption{test}\label{fig:sourceType} \begin{center} \begin{tikzpicture} \begin{axis}[ xbar, reverse legend, ...
Joschi8's user avatar
  • 11
0 votes
1 answer
299 views

Ticks on the y axis not working as anticipated

I am trying to have a plot where the ticks on the y axis are 1, 1.004, 1.008, 1.012, 1.016, and 1.02. However, only the ticks 1, 1, 1.01, 1.01, 1.02, 1.02 are shown in the figure (see below). I was ...
graphtheory123's user avatar
2 votes
2 answers
84 views

Improving that tikzpicture pgfplot by breaking the domain

I'm trying to improve that figure: \documentclass{standalone} \begin{document} \usepackage{tikz} \usepackage{pgfplots} \begin{tikzpicture} \begin{axis} [axis lines=center, height=46mm, width=120mm, ...
fgrieu's user avatar
  • 179
1 vote
2 answers
427 views

histogram ticks alignment

I'm trying to create a histogram in latex but the ticks are not aligning with the bars and i'm not sure why. this is what i have so far: \documentclass[12pt]{article} \usepackage{fancyhdr} \...
texstar's user avatar
  • 65
2 votes
1 answer
342 views

Increase the thickness of an arrow in xy and tikz-cd package

We start from these simples MWE. The first is done with xy package, with your tips: \documentclass[a4paper,12pt]{article} \usepackage[all]{xy} \begin{document} \xymatrix{A \ar[r]& B} \end{document}...
Sebastiano's user avatar
  • 55.3k
2 votes
1 answer
473 views

How to define specific styles for each tick?

I want to change the style (such as color, font, size and shape of tick mark) for each tick. In this example I want to change the color of the numbers (2,3,4) to something different and define a ...
Planer's user avatar
  • 21
1 vote
1 answer
266 views

Tick labels not showing when using `contour gnuplot` and `axis line = middle`

The following code is the modified answer of @user121799 in TikZ: Plot contour lines. The difference is that I added axis x line = middle, axis y line = middle in the first line of the axis ...
Faceb Faceb's user avatar
3 votes
1 answer
251 views

Placing some tick labels on the right in pgfplots

Consider the following plot. \documentclass{scrartcl} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis} [ width=5cm, height=7cm, domain=-90:90, ...
schtandard's user avatar
1 vote
1 answer
141 views

Logo only in some slides

I am using a presentation available on Overleaf ["TU Chemnitz Beamer Presentation Template"]. A circle has been created in each slide and through the code shown here the logo is inserted ...
Alessandra Stoppelli's user avatar
1 vote
1 answer
351 views

How to hide axis labels (except some of them) inside axis environment without disabling a grid?

Let's say you want to draw a plot: \documentclass[dvipsnames]{article} \usepackage{pgfplots} \usetikzlibrary{babel,calc,backgrounds,quotes,angles,patterns,decorations.markings,intersections,arrows,...
Allok's user avatar
  • 405
1 vote
0 answers
189 views

rotate numbers on x axis [closed]

I tried a lot, but since gouplot is new, and I can't handle it very well, i couldn't rotate the number on the x_axis. \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \pgfplotsset{...
Noob_Latex's user avatar
-1 votes
1 answer
589 views

why I am not able to see minor ticks on one of the axes on log scale?

I am plotting a graph using pgfplots wherein both axes are on the log scale. I am not able to see minor ticks on y-axis, though there is nothing that should prevent it from appearing. \documentclass[...
Parag's user avatar
  • 141