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
0answers
12 views

Add axis label to subfloat images

I need to set an x-label and a y-label to each subfigure, can I add labels to \subloat[]? \begin{figure}[H]% \centering \subfloat[]{{\includegraphics[width=6.75cm]{ProfitV1.png}}}% \qquad ...
1
vote
1answer
23 views

Draw a line from the center of a circle to the edge:

I'm trying to draw a circle with some radius vector drawn from the center of the circle to the edge (preferably at 45˚) and then a bunch of smaller circles – all on the xy-axis. I have the following ...
3
votes
3answers
56 views

Minimal page size for 2 tikzpictures

I am trying to prepare a graph for a colleague to use. I have created the graph but wanted to crop the white space surrounding it. I have tried to use the standalone document class but this results ...
0
votes
1answer
18 views

How can I underbrace the x-axis in PGFPlots?

I don't know why, but the command \draw doesn't seem to work in my code. Ideally, I would like to see this: My code is: \begin{tikzpicture} \begin{axis}[ axis lines = left, xmin=0, xmax=...
2
votes
1answer
42 views

tikz node exceeding axis

I have an axis environment in a tikzpicture with a straight line exceeding the axis. At the end of the line I add a node whose text partially also exceeds the axis and is clipped. Clipping the line is ...
0
votes
0answers
13 views

pgfplots input axis settings from an external file [duplicate]

I want to plot multiple figures with the same settings, but different content. I would then like to be able to change the settings in all plots at the same time. To achieve this, I'd like to store the ...
1
vote
1answer
37 views

Position common factor when scaling axis

I am drawing 8 pretty small scatterplots (4x2) using groupplots. On one of those the x-values range from around 1600 to 5500. Since the plots are pretty small, the labels for the ticks overlap. ...
1
vote
0answers
26 views

pgfplots: How to align dateplot with two x axis?

Assumed we have this Minimum Working Example (MWE) to display a dateplot with two completely identical x axis, but with different xtick positions: \documentclass{standalone} \usepackage{pgfplots} \...
0
votes
3answers
49 views

How to create axis with annotations?

I want to get horizontal axis with annotations, like in attached picture. What package would be most suitable for such task?
2
votes
1answer
28 views

pgfplots: Change names of weekdays to German language?

The user Torbjørn T. has posted a nice approach on how to display the names of the days of the week in dateplots. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{pgfplots} \...
3
votes
1answer
38 views

pgfplots: How to add names of the days of the week to dateplot?

Assumed we have the following code: Minimum Working Example (MWE): \documentclass{standalone} \usepackage{pgfplots} \usepackage{filecontents} \usepgfplotslibrary{dateplot} \begin{filecontents}{data....
0
votes
0answers
33 views

Tikz x labels as images creates asymmetrical spacing

I sort of stumbled upon the idea of using pictures as x-axis labels for my graph in a thesis. However, I have run into the problem of the last label being further away (not symmetric) to the other ...
2
votes
1answer
26 views

pgfplots: Difference between “xmin” and “date ZERO” when using dateplot?

Assumed we have the following code: Minimum Working Example (MWE): \documentclass{standalone} \usepackage{pgfplots} \usepackage{filecontents} \usepgfplotslibrary{dateplot} \begin{filecontents}{data....
1
vote
1answer
36 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{...
2
votes
1answer
45 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
37 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
57 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
32 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
54 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
57 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{...
1
vote
1answer
31 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
37 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
28 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
100 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
53 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
41 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 ...
1
vote
1answer
60 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
68 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
48 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
76 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
33 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
38 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
131 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
204 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
65 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
35 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
152 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
53 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
144 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
51 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
41 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
131 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
30 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
42 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
28 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
45 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 , ...