Questions tagged [ticks]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
3answers
66 views

Tikz no border where rectangles touch

How can i achieve, that the rectangles, where they touch, there is no black border. \begin{figure}[h] \begin{tikzpicture}[xscale=6,yscale=0.5] \draw[thick] (0,0) -- (1,0); \draw[thick] (0,.1) -- (...
1
vote
1answer
17 views

On fixing the issue with ytick alignment in groupplot

I am experiencing some issues while trying to have a common y axis scale as well as ticks. I tried some solutions like every plot/.style to ensure the range of the axes over the groupplot is the same ...
0
votes
1answer
23 views

How can I make \newcommand work together with \ticknum

I'm trying to make a lot of different variations of PGFplots label styles so I'm trying to define different values and use \ticknum to pick one of them for example \newcommand{\x0}{0.3} \newcommand{\...
0
votes
1answer
31 views

How to draw a linear axis with tick labels at different alternative distances?

I need help to draw a linear axis that have a ticks labels below of axis in progresive diferent distance one from the other like a stair. I try draw this using tikz package, but I don't know do that. ...
1
vote
1answer
50 views

Changing some specific xticklabel styles

I would like to change some xticklabel styles but not all of them only few and not in specific positions (so it wont be 1st or last always). How could I change only lets say (3,5) labels to (Hello, ...
1
vote
1answer
31 views

pgfplots: How to add steps in xticklabels from table?

I have a plot with too many xticklabels, they overlap side by side. To solve this, I would like to print only each 7th xtick (each week gets one tick.) How can I add a step-logic ti the xtick-labels? ...
3
votes
2answers
54 views

Single ytick label not moving

Code: \documentclass[12pt]{article} \usepackage{pgfplots} \usepackage{float} %\pgfplotsset{compat=1.16} \usepackage{tikz} \usepackage{siunitx} \usetikzlibrary{shapes, arrows.meta, automata, ...
0
votes
0answers
26 views

Adding axis ticks to a PDF in Latex

I have been trying to find a way to add axis ticks and axis label on a PDF. Thus far I have only found a way to add the axis label. Could someone help me? I am trying to go from this: to axis ticks,...
0
votes
1answer
46 views

Disabling scaled x ticks causes “Dimension too large” in pgfplots

I want to change my x axis tick labels to read 0K 20K 40K 60K 80K similar to my y axis tick labels in this chart: My LaTeX MVP generating the image: \begin{filecontents*}{data.csv} iter;prod 0;-...
1
vote
0answers
23 views

Minor log y ticks dissapear randomly

Does anybody know how to force y log minor ticks? In the following example, the ticks do show up: \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{...
0
votes
0answers
16 views

pgfplots: use dimensions instead of ticks [duplicate]

I need to build a graphic in pgfplots with symbolic distances between the keypoints, as shown in the figure below. I know how to use symbolic coords, but if I was to represent the x coordinates as ...
0
votes
1answer
26 views

How can I keep pgfplots bar chart from autoskipping unused axis labels?

I'm making a bar chart. This is the code: \begin{tikzpicture}[xscale=.7] \begin{axis}[ symbolic x coords={2, 3, 5}, xtick={2, 3, 5}, ytick={0,1,2,3,4,5}, ...
2
votes
2answers
67 views

Draw invisible axes with visible labels

I was fiddling with how to plot raw signals to LaTeX and it turned out that there is no good solution (tikzexternalize, R+kniter, matlatb2tikz are cool but exhaust TeX memory if is really raw data)... ...
1
vote
0answers
47 views

How to offset and fill extra tick labels with same size boxes

in the code provided below, I wanted the extra x tick labels to show up better by including an opacity filled box around the text so that the text shows up better with the boxes above the x-axis and ...
1
vote
1answer
77 views

How to individually customise tick marks and labels in histogram

I need to mark three x values in a histogram. I thought a way would be introducing extra x ticks and customising major tick length and thickness so they show up more conspicuously. Is it possible to ...
3
votes
1answer
108 views

Creating a audio volume dial using tikz

I've managed using this stack exchange info to build the following MWE: \documentclass{article} \pagestyle{empty} \usepackage{tikz} \usepackage{geometry} \usetikzlibrary{positioning,calc} \geometry{...
3
votes
1answer
64 views

Remove tick scale label without changing values

I am trying to remove the tick scale label (10^n) without changing the values on the axis. The idea being that I want to give the base as the unit of the graph, not as a scale label. I have the ...
1
vote
1answer
53 views

Opposite ticklabel positions using middle axes

I need to change the position of my ticklabels because they are not readable: \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[axis lines=middle,% ...
0
votes
1answer
38 views

How to separate a column bar plot with a differente scale in the same figure?

I have been trying to plot some column bars but some results are overwhelming and make the other disappear from the plot. Is it possible to separate those values in another plot next to the other one? ...
1
vote
1answer
29 views

make xtick label in multiplication format

Here is what I've got. \begin{tikzpicture}[scale=1.2] \begin{axis}[ xmax=20,xmin=4, ymin=0,ymax=0.6, xlabel=\emph{Number},ylabel=\emph{F1 Score}, xtick={20,16,...,4}, ytick={0,...
2
votes
1answer
38 views

remove the tick mark but keep the label

I am working on a bar chart. Would like to remove the tick mark on x-axis as shown in the picture. I have tried xtick = none but that remove the label completely. So how can I remove the tick marks ...
2
votes
1answer
64 views

Tick generation with and without scale label (DIN 461)

Some time ago, I requested your help on creating axis labeling, that is compliant with the German standard DIN 461 (my older question). Thanks Jake for the good answer, that is working well in most ...
2
votes
1answer
73 views

axis x line* = top with axis line on the bottom

My question is almost the same as this, but in the linked question the user (an the answer) manually drawn the bottom line of the axis. The problem with that is that the tick marks aren't drawn as ...
11
votes
3answers
706 views

Graph with cropped letters

If I compile this file: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.16,every axis/.append style={ axis x line=middle, axis y line=middle, ticks=none}} \pagestyle{empty} \...
0
votes
0answers
31 views

Pgfplots mixes scientific and decimal labels as plot ticks [duplicate]

I am creating a simple plot like this \begin{tikzpicture} \begin{axis}[% width=14cm, ] \addplot table{% -0.02 0.976511902149045 0.02 0.974250140430107 0.06 0.92759014496851 0.10 ...
1
vote
1answer
31 views

change plot axes

Any idea how to change X axis to 0-100? And also delete that 10^-2 and change Y axis to 0-0.025? Thanks. \begin{figure} \resizebox{\linewidth}{!}{ \begin{tikzpicture} \begin{axis} \...
3
votes
1answer
88 views

pgfplots: Missing one group of bars

I'm trying to draw a bar diagram with 4 value groups each consisting of 5 bars. I think it's a scaling problem, so not all the groups were drawn. I already had a look at the documentation but I couldn'...
2
votes
1answer
249 views

How could one show xtick labels in multiple lines?

I have the following code for my bar chart. \documentclass[12pt,a4paper,oneside]{report} \usepackage{pgfplots} \usepgfplotslibrary{colorbrewer} \pgfplotsset{width=14cm,compat=1.9} \pgfplotstableread[...
7
votes
2answers
598 views

Tikzpicture - how to make major ticks longer or thicker

I am trying to make the major ticks (11,12,13,14,15,16,17,18,19 and 20) either thicker or longer so that the box plot statistics are easier to see. Does Anyone know how to achieve this? \...
2
votes
1answer
64 views

Error using extra y ticks, trying to evaluate it : Package PGF Math Error

Hello there here is a minimal code : \documentclass[border=2pt]{standalone} \usepackage[utf8]{inputenc} \usepackage{graphics} \usepackage{tikz,pgfplots} \begin{document} \...
1
vote
2answers
122 views

Setting Pi as colorbar tick with pgfplots

I am trying to set the colorbar ticks as -pi and pi. Is this possible within the colorbar style settings? This is what I have tried so far but it doesn't work. colorbar style={ %at={(0,1.0)}, ...
2
votes
1answer
230 views

Tell pgfplots to put tick labels between tick marks

Is it possible to tell pgfplots to put tick labels between the tick marks instead of at the tick marks? MWE: \documentclass[margin=5pt]{standalone} \usepackage{tikz} \usepackage{pgfplots} \begin{...
2
votes
1answer
490 views

pgfplots: How to set xticklabel as two line?

I want to design xticklabels as two line texts: First line: Date, e.g. \month/\day Second line: Time, e.g. \hour:\minute Minimum Working Example (MWE): \documentclass{standalone} \usepackage{...
1
vote
1answer
339 views

How to remove Tikz pgfplot ticks from the top, bottom and right borders?

I am creating a histogram, which I've managed to do with the following code: \begin{tikzpicture} \centering \begin{axis}[ ymin=0, ymax=50, minor y tick num = 2, axis background/.style={...
0
votes
1answer
56 views

Removing ticks from top, bottom and right-hand side of column chart and rename x-axis labels

I am trying to make a nice looking histogram of my data, and have managed to produce the following so far: \begin{tikzpicture} \centering \begin{axis}[ ymin=0, ymax=8000, minor y tick num = 2,...
1
vote
2answers
400 views

How to add ticks in a circle in TikZ

Referring to the question How to make add tick to node in tikz, how do I extend this to a circle shape in TikZ. A simple approach is to draw lines as ticks by calculating the coordinates. Sample ...
2
votes
1answer
43 views

Ticks not showing up as intended in a group plot

I am working on a groupplot (still in progress). The problem I have here is that the ticks are not showing up as expected. I have looked into my code and I don't seem to understand how to fix them. ...
1
vote
1answer
71 views

pgfplots: How to force datetime to only display xticks with even times (18:00) instead of odd times (18:34)?

Assumed we have the following plot from user darthbith to display a pgfplot with a time axis: Minimum Working Example (MWE): \documentclass{standalone} \usepackage{pgfplots} \usepgfplotslibrary{...
1
vote
2answers
62 views

xticklabel distance for math expression

I have a pgfplot and the labels in the x axis are not centered as I expected and this is because one of them is higher than the other because of the superscript. \documentclass[]{article} % Use the "...
2
votes
1answer
154 views

TikZ 3D plot : how to add spaces between tick labels to prevent them from colliding?

I have a 3D plot with colliding yticklabels, which I have been unable to fix for now. Here is my minimum working example: \documentclass[10pt]{standalone} % \usepackage[utf8]{inputenc} \usepackage{...
0
votes
1answer
28 views

How to get rid of small ticks at the top of pgfplots

I am looking for a way to get rid of the small ticks at the top of my figure (the small grey ones), but keep them intact along the x-axis? My code is the following: \begin{figure}[h] \caption{...
2
votes
1answer
49 views

why do the first and last ticks of my pgfplot graph have different width?

I have noticed that when I choose the tick marks of my graph to be outside, the first and the last ticks are thinner. Anybody know how to fix that? Here is the code I used. Below is the screenshot of ...
2
votes
2answers
158 views

A diagram with matrices

I want to draw the following diagram which contains two matrices (2x2 on left and 4x4 on right) and a box. Could someone help?
1
vote
1answer
274 views

Adding different Greek characters to individual axis tick labels in pgfplots

I've been scouring the web and the pgfplots manual trying to find an example of labelling different x-axis ticks with different Greek characters. The closest i've found is using xticklabel={$\...
1
vote
1answer
165 views

Scale ticklabels

How can I scale the ticklabels in Tikz to replicate the Matlab command set(gca, 'XTick', xt, 'XTickLabel', xt.^3) As an example, the xtick labels should be converted to the following xtick={10,15,...
1
vote
1answer
27 views

Individually moving z labels gives error in pgfplots

If I add the vertical blue plane to this tikzpicture I lose the ability to individually move the z tick label, i.e. I get the error Undefined control sequence. <argument> (\tick ...
3
votes
1answer
50 views

Moving Tick Markers in a TikZ Picture

How can I move the marker <2A> slightly up in the picture? \documentclass [12pt, a4paper, onecolumn, fleqn] {article} \usepackage [portuguese] {babel} \usepackage [utf8] {inputenc} \usepackage ...
3
votes
1answer
220 views

How to lift ticks=none for plots

Hi tikzpicture experts. I am having trouble re-instating ticks after I suppress it. See how in the second graph(the one with feasible region), all the tick labels are missing even though I am ...
10
votes
2answers
424 views

TikZ being fickle about manually drawing tick marks for marking congruent angles

I am marking two angles of a cyclic quadrilateral on a TikZ diagram with "||". (I am doing this manually; I am not using the angles package.) It didn't look right. I drew the angle bisectors with a ...
0
votes
0answers
150 views

pgfplots: Reduce number of minor ticks in a log log plot

I want to reduce the number of ticks in my log log plot to exactly 3. But I can't tamper with the max space between ticks option, otherwise I'll lose the minor ticks on the y axis. I tried to give ...