Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [axis]

The tag has no usage guidance.

1
vote
1answer
15 views

pgfplots: How to set xticklabel date year as YY instead of YYYY?

By default, xticklabel = \month/\year, will be displayed as 04/2019. However, I want to display it as 04/19 instead of 04/2019. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{...
3
votes
1answer
37 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
33 views

pgfplots: Are parentheses mandatory in axis environments?

Assumed we have this little code snippet: \begin{tikzpicture} \begin{axis}[ date coordinates in = x, table/col sep = semicolon, date ZERO ...
1
vote
1answer
14 views

Legend entries labeled incorrectly with two

I have a graph with three plots and two y-axes. Two of the plots use the left y-axis and one uses the right y-axis. In order to get a single legend with all three plots, I am using the ideas in this ...
1
vote
1answer
29 views

pgfplots: Using “x filter” to decrease point density of plot

The user esdd has posted a nice approach on how to increase point density for a certain range of data points while the remaining plot keeps low point density by using x filter. Minimum Working ...
0
votes
1answer
29 views

tikz picture: unit instead of penultimate number of the axis

Is there a way to insert the unit instead of the penultimate number of the axis like this? 0 1 2 3 m 5 Thats something my university wants to see in my Bachelor thesis... But after searching ...
2
votes
2answers
42 views

pgfplots: Restrict “each nth point” to specific domain only?

I have a huge amount of data. Therefore I want to reduce the data displayed by decreasing the amount of points with each nth point = {!value!}". Minimum Working Example (MWE): \documentclass[tikz]{...
1
vote
1answer
10 views

Changing the position of scaling

when i run this code, I get a 10^4 on the bottom right, which seem strictly false. I would like to get rid of this one. And on the top left I have the scaling for the y-axis. I would either like it to ...
1
vote
0answers
32 views

pgfplots: How to set “axis on top” only for abscissa and ordinate, but not for grid? [duplicate]

I try to format a ybar diagram nicely. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ ybar ...
2
votes
1answer
38 views

pgfplots: “axis on top” will cross out ybar value nodes?

Assumed we have a simple ybar diagram including ymajorgrids. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{...
2
votes
1answer
28 views

Insert numbers below each column of a histogram

I am trying to plot a histogram by below lines \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture}[>=stealth] \draw[<-] (7,0) node[below] {$x$} -- (-.5,0); \draw[->] (0,-...
0
votes
0answers
24 views

pgfplots: Is “scale only axis” only necessary for documents but not for standalone?

Assumed we have this kind of code: Minimum Working Example (MWE): \documentclass{article} \usepackage{showframe} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[height=\...
1
vote
1answer
25 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{...
3
votes
1answer
59 views

pgfplots: How to add time axis as second x-axis?

I preprocessed a series of data into a time column and a further column with time distance to zero, the latter as decimal value. Minimum Working Example (MWE): \documentclass[border=5mm]{standalone} ...
2
votes
1answer
51 views

Difference between having \begin{axis} blablabla \end{axis} and \draw[->]?

What is the difference between them? Which one is better for what purposes? If im writing a paper in mathematical analysis, which should i use?
0
votes
0answers
36 views

How can I embed an external image within the TikZ environment in the axis positions?

From How can I embed an external image within a tikzpicture environment? I can see that \includegraphics can be used within a TikZ environment using \node. However, my tikzpicture includes an axis ...
2
votes
1answer
48 views

pfg axis discontinuity options

is there a way to set the length of the discontinuity in the x axis? Here is the code I have used: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \...
2
votes
3answers
56 views

Inset plot in pgfplots with zero opacity - mixed grids

I am trying to draw an inset within the region of a pgf plot by creating a second pair of axes, as can seen in the following code. \documentclass{standalone} \usepackage{tikz, pgfplots} \begin{...
0
votes
1answer
45 views

“scaled ticks=true” is not working

I’m having problem with the scaled ticks options. I just would like to have 10–5 at the top of the y axis and some numbers along the y axis... I commented %scaled ticks=true in the attached ...
3
votes
1answer
57 views

Draw multiple polar graphs in different positions on a common coordination system - Tikz

I am trying to plot several polar graphs in a tikzpicture. The idea is to plot the same function but for different parameters. An idea of what I am trying to achieve can be seen below Although I am ...
0
votes
1answer
30 views

Place an arithmetic symbol between two bar charts in a tikzpicture

I want to visualize a calculation based on two bar charts. For this I want to draw two bar charts side by side and a multiplication sign between both of them. I wanted both axis environments and the ...
0
votes
1answer
29 views

Draw xy axis rotation by angle

I would like to draw axis rotation such as this. I can't find anything similar in other questions.. Can someone help me please?
4
votes
2answers
120 views

How to scale down the size of tick on an axis of graph in Tikz

How to scale down the size of tick (j-1, j and j+1) of a graph in Tikz? Moreover, as I don't have a lot of experience with Tikz, if there is a more standard/efficient way of writing the whole graph, ...
2
votes
1answer
131 views

Is there a way to place the x axis at a specific y value in PGFPlots?

I prefer single-line axes for plots, rather than the box style which is (I think) the default for PGFPlots. I'm familiar with the axis x line*=middle option, which places the x-axis at y=0. However, I ...
1
vote
1answer
57 views

Axis label is not displayed and adding labels to stacked bar chart

I have made this stacked bar chart but I can't get my x-axis label to be shown even though I have added them in the codes. Also, can anyone tell me how can I add labels to my stacked bar chart like in ...
4
votes
1answer
33 views

ticklabels for polaraxis plot

How can I add ^\circ to all xticklabels in a polaraxis plot? The following attempt adds a lot of filling zeros: \begin{tikzpicture} \def\y{50} \begin{polaraxis}[ xtick={0,30,...,...
6
votes
1answer
111 views

Plot bar chart from csv with different styles depending on row in csv

I try to plot the content of a csv file in a bar chart, where depending on the row the bar should have a different style. This is what I came up with so far: \documentclass{article} \usepackage{tikz} ...
3
votes
1answer
42 views

Timeline, using foreach

I am trying to plot an automated timeline with equidistant years on the axis, like this: \documentclass{article} \usepackage{tikz} \begin{document} \pagenumbering{gobble} \begin{tikzpicture} \def\...
2
votes
2answers
124 views

How to represent a collection of inequalities on an axis?

Here is the problem , find the condition that must be satisfied by x in order that the expression may be positive for all real values of x. The result is : I would like to polt in axis the ...
2
votes
1answer
46 views

Coordinates of an Intersection, outside of the axis-environment

I would like to access the x- and y-Coordinate of an intersection, outside of the axis environment. This is what I believed would solve my problem, based on this and this: \documentclass{article} \...
3
votes
1answer
37 views

Access Parameters of tikzpictures axis-environment

Suppose I defined a parameter, coordinate, node or similar within the axis-environment of a tikzpicture and I would like to access those. See e.g.: \documentclass{article} \usepackage{tikz} \...
2
votes
1answer
37 views

Changing format of the x-Axis

I would like to have on the x-Axis less ticks and they should be shown with 10^(-x). For example: 0.016 , 0.021 and so on. What is the easiest way? (I hope I did not miss a prior thread with the same ...
4
votes
1answer
116 views

Adding Tips to Axis Lines

I am trying to add arrows pointing on the axis lines for the following graph: \documentclass{article} \usepackage{xcolor} \usepackage{pgfplots} \usepackage{amsmath} \begin{document} \begin{figure}[...
0
votes
1answer
28 views

How to add a legend over each segment in axis environment

i would like to have in each of segments of the graph, created by the provided example, a text say n=1, n=2,... n=4. I think i would first have to change the scaling, because otherwise I have no space ...
3
votes
1answer
41 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 ...
1
vote
0answers
27 views

How can I list the X and Y values on the outside of a 6x6 matrix, as well as list the axis names outside of them? (see image) [duplicate]

Current 6x6 matrix. \begin{bmatrix} 1&2&3&4&5&6\\ 1&2&3&4&5&6\\ 1&2&3&4&5&6\\ 1&2&3&4&5&6\\ ...
1
vote
0answers
41 views

axis on top=false with addplot3 and groupplot, failed placement of colorbar [closed]

The goal is to have the grid below the graph, the axis on top=false is working for addplot but not for addplot3, to fix that I applied the solution proposed in axis on top not respected on addplot3 , ...
4
votes
1answer
258 views

Legendary entry

How can i change the picture of the legendary? I would like to have to lines insted... \documentclass[margin=5mm]{standalone} \usepackage{tikz,pgfplots} \begin{document} \begin{tikzpicture} \...
2
votes
1answer
29 views

axis on top not respected on addplot3

Despite using axis on top=false the grid is overlayed on the graph of addplot3. I applied the same on a simpler graph which is using addplot and I've got the expected behavior of the grid behind the ...
1
vote
2answers
97 views

How do I label the axis of a sinus using pi? [duplicate]

I am plotting a sinus function using a pgfplot and would like that the tick of the x axis was labeled using multiplers of pi (pi/4, pi/2, 2*pi...), for they are the "important" x values to visualize ...
3
votes
2answers
105 views

Issue with Graphing Points

So I have been trying to graph a function for my economics class. My problem is that the "axis" that are created do not match up with actual points; for example, the point (0,5) will not be on the y-...
2
votes
1answer
129 views

pgfplots: y-axis of a normal probability plot

I'm trying to recreate the following normal probability plot in pgfplots without using R. I already have the right data (percent, standardized effect). The only thing I struggle with is scaling the ...
0
votes
2answers
199 views

Adding more elements on the y axis

I am trying to plot a graph from a .csv file with tikzpicture. I can plot the graph, but I cannot modify the y-axis as I would like. My code is as follows: \begin{figure}[!h] \centering \...
2
votes
1answer
233 views

Setting axis limits (xmin, xmax, ymin, ymax) from external .dat file

I am importing the data for my plot from a .dat file produced in matlab. I would also like to set axis limits from a .dat file. Is there a way to set xmin, xmax, ymin and ymax from a table in a .dat ...
1
vote
1answer
29 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 ...
5
votes
1answer
149 views

Tikz - loglog Scale with strange powers of 10

I am trying to plot some data from numerical simulations and I want to display the data (see code below). But the powers of 10 do have strange additional decimal places (see picture). Is there a way ...
2
votes
1answer
52 views

How to have a date axis and a “normal” one linked on a plot?

I am plotting some date-based data with pgfplots where the date is on the x axis, which works so far (see MWE below). However, I would like to have a second x axis which is linked to the first one ...
1
vote
2answers
838 views

Tikzpicture horizontal curly brace

I got the axis. I did it with \begin{tikzpicture}. How do I draw this curly brace?
2
votes
1answer
49 views

Grouped bar chart y-axis at 0 and using < in the label

I'm new to LaTeX and I have a lot of small problems that all cause failure: I want my y-axis to start at 0 (not at -something arbitraty which it is now). I have tried ymin=0, but it does not respond. ...
2
votes
1answer
69 views

Is it possible to change the direction of axis in pgfplots?

Is it possible to change the direction of one (or both) axis? I could achieve the visual result by using tikz and compute the coordinate by myself but this is obviously too long for a complex picture....