Questions tagged [ticks]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
23 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
92 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{...
2
votes
1answer
20 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
39 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
34 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
25 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
29 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
43 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
27 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
689 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} \...
2
votes
1answer
210 views

How to configure LaTeX in Visual Studio Code to compile PSTricks or dvips?

I would like to know how I should configure or what I should install to be able to compile graphics with PSTricks, for example in an editor such as TeXMaker, simply compile in the form latex + dvips + ...
0
votes
0answers
28 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
30 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
66 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'...
1
vote
1answer
62 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
354 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
54 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
99 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)}, ...
1
vote
1answer
106 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
197 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
148 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
44 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,...
0
votes
2answers
240 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
30 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
41 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
39 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
94 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
27 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
47 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
135 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
146 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
118 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
26 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
46 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
183 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
331 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
109 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 ...
1
vote
1answer
56 views

Set the secondary x axis limits the same as the first one on a data plot

I want to plot a data with two x axis (top and bottom) and a y axis. The first x and y axes are set from data. The second x axis limits should be same as the first one. I also need to label some ticks ...
3
votes
1answer
864 views

yticklabels and ytick wont work

I am plotting a graph using TikZ, but the yticks and yticklabels wont be set correctly. This is the code that I use: \documentclass[dvipsnames]{standalone} \usepackage{pgfplotstable} \pagestyle{...
2
votes
1answer
808 views

Change position of individual tick label

Using a ycomb plot which goes below 0 means one of my tick labels is obscured by the line. How do I move this individual tick to above the x axis? Is there a way to do it without having to use the ...
2
votes
1answer
372 views

Two y axes in bar plot with different scales

I am trying to visualize measurements in seconds on the lower x axis, while the upper x axis is supposed to display a different variable (message count). I read the similar questions, but they did not ...
2
votes
2answers
124 views

Get the units of a pgfplot between ticks on both axes (DIN 461)

As in thread Get the auto generated tick distance of a pgfplot (DIN 461) already asked, i am searching for a way to get the units between last two ticks. The solution from the mentioned thread works ...
1
vote
1answer
179 views

Draw a rounded corner frame on all pages using tikz package

I made a standard frame. It should appears on all pages of my document. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{eso-pic} \...
1
vote
1answer
222 views

Dateplot doesn't work if xmin/xmax are specified

Here is a simple datafile data.csv: Time,Value "2017-01-31 12:51:05",500 "2017-01-31 12:51:05",820 "2017-01-31 13:48:14",820 "2017-01-31 13:48:14",500 Here is a simple plot of it: \documentclass[...
4
votes
1answer
1k views

How to remove minor tick marks while keeping grid lines?

I have created the following plot, but I am unable to remove the minor y ticks on the y-axis and keeping the grid lines. Is there any method to achieve this? I searched for a solution, but I believe ...
4
votes
4answers
712 views

pgfplots: How can I customize number formatting styles for log plots based on the numbers?

We have seen in another question how to set the tick numbers on logarithmic axes in a sans serif font when the style is for 10^x numbering. Pgfplots offers additional options for numbering log ticks, ...
2
votes
1answer
143 views

How to remove mantissa on semilogarithmic pgfplots graph (while retaining modifications for sans serif tick font)

Semilogarithmic plots normally mark major ticks with powers of 10 and no mantissa or separator, e.g., 10^3, 10^4,..., rather than 1.10^3, 1.10^4, etc. Pgfplots provides this capability through ...
1
vote
1answer
340 views

How can I remove 10^(−n) notation for values less than 1 in pgfplots?

I have the following semi-logarithmic plot (y-axis() that has the ticks with 10 raised to non-integer powers as shown in figure. I have referred to both these answers [1,2]. However, both failed to ...
3
votes
1answer
356 views

Get the auto generated tick distance of a pgfplot (DIN 461)

I would like to set up my pgfplots to comply with the German Standard "DIN 461". To make it short: We are asked to place the unit of the axis between the last and the second last tick label or replace ...
3
votes
1answer
200 views

Minor xtick marked incorrectly?

I am using the following code to plot same experimental data, and for some reason, minor xticks appear to be misaligned from their intended position. As the x value incrases, there is more and more ...