Skip to main content

Questions tagged [axis]

For labels, markings, or other information, related to an axis of a graph

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

draw command doesn't work in axis environment

I have tried to draw an ellipse in the axis environment, but whether I use axis cs or not, and even though there are no warnings, no ellipse is drawn. This is a mwe: \documentclass{standalone} \...
Luca Maria De Vita's user avatar
1 vote
0 answers
34 views

tikz: remove the * 10^4 at the end of the xaxis [closed]

im plotting a tikzpicture and want to remove the annotation at the end of my x-axis. (*10^4) do you know how to fix it? here is my tikzplot: \begin{tikzpicture} \definecolor{darkgray176}{RGB}{176,176,...
Andre's user avatar
  • 11
1 vote
0 answers
35 views

Custom 3D Coordinate System in pgfplots

I am trying to create a custom 3D coordinate system using pgfplots in LaTeX. I want to define three direction vectors x, y, and z. However, when I define x=(-0.35,-0.35) and then define y and z, the ...
Wu Guiping's user avatar
0 votes
0 answers
20 views

How can I display the complete coordinates with ‘\addplot graphics’ on the respective axes in TIKZ?

I use ‘tikz’ and plot an ‘eps’ file in an axis. In the axis I place a coordinate system around this image. Now I have the problem that the last numbers (3 and 2.7) are not displayed in the x- and y-...
data's user avatar
  • 31
3 votes
0 answers
43 views

How to display y or x axis break with pgfplots?

Looking at this topic (Axis break in pgfplots), I found a way to "break" my x axis on some data I have. However, I am not truly satisfied with the result. Here is a minimal plot of my ...
Adrien Lebeau's user avatar
1 vote
1 answer
86 views

pgf import in LaTeX not working due to matplotlib axes font

I was plotting as usual and then after saving one of my plots as a pgf and then compiling LaTeX it didn't work anymore. As far as I'm aware of, I didn't change anything it just so happen to top ...
L_physics's user avatar
-1 votes
1 answer
94 views

Existence and uniqueness [closed]

Sorry, I am new to LaTeX. How can I make this figure or something similar from Nagle's Differential Equations book in a TikZ code?
Carlos Eduardo Velez Cantos's user avatar
1 vote
1 answer
24 views

Double the xticklabel distance to make it match y scale

I have this simple code: \usepackage{graphicx} % Required for inserting images \usepackage{pgfplots} % Gráficos de barras \pgfplotsset{compat=1.12, colormap={RedToGreen}{rgb255(0cm)=(255,0,0); rgb255(...
Alberto Gonzalez Berrio's user avatar
0 votes
1 answer
27 views

Using y right axis axis - tikz

I asked this before but somene said it needed clarification. Sorry for the oversight, I want to plot a stacked area. However, when trying to use the secondary y-axis, the "yticklabel" is not ...
Fernando's user avatar
  • 101
3 votes
1 answer
134 views

How to plot arcsin(sin(x)) with pgfplots in axis environment?

I would like to plot the function arcsin(sin(x)) within an axis environment using PGFplots. The behaviour I obtain leads me to believe that the functions arcsin and sin cancel each other before ...
Thomas Connor's user avatar
2 votes
0 answers
35 views

calculate a coordinate of a graph

I want to calculate one of the coordinates of a point using defined quantities and mathematical functions. In my case, I want to draw an arrow connecting the initial point with coordinates (0, -log Ca)...
Nicolas's user avatar
  • 1,297
3 votes
1 answer
75 views

Addplot messes with axis coordinate system?

I am trying to understand why the direction of the red arrow changes in the presence of the addplot line in the following example: \documentclass[]{standalone} \usepackage{tikz,pgfplots} \pgfplotsset{...
mimuller's user avatar
  • 872
2 votes
0 answers
62 views

pgfplots: find the intersection point of two curves and determine the y value of the intersection point

Thank you for reading my question! Introduction Now I want to draw a picture, in which I need to calculate the intersection point of the two curves and determine whether the y value of the ...
BqBPdx's user avatar
  • 39
0 votes
1 answer
28 views

Pgfplots: Axis through the origin

I do not know that my problem is but the axis of my graphs do not go through the origin. I've read this answer but it does not work for me. Here is a MWE: \documentclass{article} \usepackage{pgfplots} ...
garondal's user avatar
  • 455
0 votes
1 answer
34 views

Plotting a log graph with pgfplots

I've just found that we can draw plots from existing data directly with pgfplots : which is amazing. By curioisty, I tried to plot a series of data in a log scale and I keep having an error that I don'...
Waxler's user avatar
  • 860
0 votes
2 answers
65 views

Bar chart with multicolored bars and labels

I would like to create a bar chart with a multicolored bar. The bar chart should show the length of each section. My problem is that in the first section the number always goes before the bar chart ...
Lucas's user avatar
  • 13
0 votes
1 answer
48 views

Efficient "macro" for adding second (x-)axis to pgfplots

Lately, I have had to rely extensively on adding a second x-axis to my plots. I am doing so using the following script (see MWE), however, to me it seems quite inefficient and there's a lot of double ...
Bart Wolleswinkel's user avatar
2 votes
2 answers
49 views

How to change base value on x-achsis in a Tornado plot?

I am trying to do a tornado plot where the base value on the x-axis is different from zero, in my case 5.43. \documentclass[margin=5pt]{standalone} \usepackage{tikz,pgfplots,pgfplotstable} \...
Fantastic MsFox's user avatar
1 vote
1 answer
32 views

How to label the points of a plotted function with the "only marks" property?

I am trying to draw a function in tikzpicture, that shows only specific points and to label these points. My code looks like the following: \documentclass[12pt,a4paper]{article} \usepackage{tikz} \...
Kruemel's user avatar
  • 13
1 vote
1 answer
60 views

Connecting two points defined in two different axis combined with addplot3

I want to draw something like the following code where I try to connect two different points which are defined in two different axis. I use addplot3 to draw 3D surfaces. However, when I try to connect ...
RieMann's user avatar
  • 13
1 vote
1 answer
70 views

Intersection of 3 plane in centered axis environment

I want to make a picture of 3 plane intersecting at a point of the following linear system: 2x-y = 0 -x+2y-z=-1 -3y+4z=4 But, I stumbled upon the following problems, The first and third plot gave me ...
Draxmit's user avatar
  • 11
2 votes
0 answers
80 views

How to generate a subtotal in a bar chart (pgf tikz)

I want to generate a bar chart like this one with subtotals (here in diamond shape): I tried to work around a subtotal using a second axis, but the datapoints are not in the middle of the respective ...
Fantastic MsFox's user avatar
1 vote
1 answer
59 views

Get 1:1 ratio between pgfplot's plot and the "document's sizes"

I was trying to get my pgfplot's plot lengths the same length proportion I get in the tikz coordinates outside of the plots for exemple. Here's the image I use as exemplification: \documentclass{...
name_to_display's user avatar
0 votes
1 answer
61 views

How do I shorten the y-axis when using axis equal?

How can I get the y-axis to be the same size as the x-axis at the negative side? \documentclass[border={0.2cm 0.2cm 0.2cm 0.2cm}]{standalone} \usepackage{pgfplots,tikz} \usepackage[c]{esvect} \...
Jakob Christian Kruse's user avatar
0 votes
1 answer
91 views

New to tikz: create a new coordinate system to use with the Euclide tikz package [closed]

I want to draw some descriptive geometry applications using the Euclide Tikz package, but first of all, I need a new X, Y, and Z, coordinate system (see attached picture). The default one offered by ...
Costi's user avatar
  • 1
1 vote
1 answer
102 views

drawing a 3D axis with grid

The code I am using, produces 3D axis but only the grid appears on the x-z plane. Any help? \documentclass{standalone} \usepackage{pgfplots} \usepgfplotslibrary{colormaps} \usepackage{tikz} \...
Paul A's user avatar
  • 1,117
2 votes
1 answer
44 views

Axis labels troubles

I am new in LaTex and have some troubles with pgfplots. Why one of X axis label just 5*10^-2, it would be great if I could fix that problem. \begin{tikzpicture} \pgfplotsset{title = Зависимость ...
Gleb's user avatar
  • 23
1 vote
0 answers
52 views

Cut axes below zero in the axis environment

I am drawing a picture in the axis environment. My issue is that I would like the axes lines to end at zero and not go beyond to the left or below. However, when I set the properties xmin=ymin=0, it ...
Rubén Pérez Sanz's user avatar
0 votes
2 answers
80 views

Moving xlabel to the right (x label style does not work?)

I want to move the xlabel "t" to the right end of the x-axis. I tried x label style, but it does not work for me somehow. What else could I try? I'd be fine with a separate node or also with ...
user408858's user avatar
-1 votes
2 answers
67 views

Plotting functions with tikz [closed]

I would like to be able to plot standard function in Tikz, for a document in LaTeX I'm writing. So far, I tried and I used this piece of code \begin{tikzpicture} \draw[->] (-5, 0) -- (5, 0) node[...
Heidegger's user avatar
2 votes
1 answer
115 views

\begin and \end{axis} issue

i've got the following error messages: ! Missing } inserted. <inserted text> } l.47 \end{axis} I am using Tex in the newest version. Thanks in advance! \documentclass[a4paper,12pt]{article} \...
Finn_Dunkel's user avatar
0 votes
0 answers
42 views

Cricles not showing in TikzPicture

I'm using a pgfplotssetup for my document in order to draw 3d plots, and an axis setup for my 2d plot. Every plot or draw are shown in the document except for circles (both draw or fill) and I don't ...
Riccardo Mordente's user avatar
1 vote
1 answer
68 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
1 vote
1 answer
35 views

looks like the dimension x-axis and y-axis is a bit off

Why is the scale not the same at x-axis and y-axis, looks like the y is a litte bit smaller. \documentclass[border=1 cm]{standalone} \usepackage{amsmath} \usepackage{pgfplots,tikz} \usepackage{bm} \...
Jakob Kruse's user avatar
1 vote
1 answer
53 views

Pgfplot coordinates declared in \addplot

I am trying to plot data from a .csv with different data sets (no more than 4). I have added some additional input parameters just for debugging, at the moment the document looks like this: \...
Valentín Gutiérrez Gil's user avatar
0 votes
1 answer
43 views

Placing axes origin at xmin and ymin

How can I place the axes origin at x=-20, y=2000? \begin{tikzpicture} \begin{axis}[ legend pos=outer north east, legend cell align={left}, grid=none, ...
user3713179's user avatar
0 votes
1 answer
33 views

Executing a for loop inside PGF axis when #1 is in use

\foreach does not work inside PGF, so the alternative seems to be \pgfplotsinvokeforeach. My issue is that I want to define my own macros that will be inserted into the axis environment, something ...
Greg Zitelli's user avatar
0 votes
1 answer
70 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
1 answer
90 views

x-axis tiks label is showing separately

How to change the x-axis ticks of the plot to scientific notation? As of now the $$.10^4$$ is showing separately as marked in the red box. Code: \documentclass[tikz, border=1cm]{standalone} \...
Formal_this's user avatar
4 votes
1 answer
61 views

Is there a simple way to substitute a tick in the axis environment?

Is there a simple way to substitute a tick in the axis environment? I want to replace the tick defined by data (that is, xtick = data). Below is an example where I add an extra tick. Since I'm adding, ...
stackoverflower's user avatar
1 vote
1 answer
62 views

How to format date inputed from file in date format and percentage?

I have inputs with tuple (date, percent) in a csv file: (The date are integers with 44 000 <-> 18 June 2020) date,pct 44755,0.01925374 44756,0.01925374 44757,0.01925374 [...] 44768,0.018989264 ...
stackoverflower's user avatar
0 votes
1 answer
79 views

Tikz label angle between vectors

I'm trying to label the angle between the B vector and the y-axis but I don't know how. Can anybody help me with this? My code is the following \begin{figure}[h] \centering \begin{tikzpicture} \...
luki luk's user avatar
0 votes
2 answers
108 views

Latex drawing Argand Diagram with axes in terms of pi?

I am attempting to draw an Argand diagram, with a circle centred at (0, −16π), radius 16π. The issues are that my diagram has the real and imaginary axes adjacent to the axis, but I would like the ...
Archie C's user avatar
0 votes
0 answers
32 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
36 views

Repeating axis labels in bar chart

Using the following latex: \begin{figure}[htbp] \centering \begin{tikzpicture} \begin{axis} [ ybar, nodes near coords, bar width=0.4cm, symbolic x coords={2--3 times a week, 4--6 times ...
Boris Winter's user avatar
0 votes
1 answer
43 views

set axis limits automatically in stacked bar plot

This is a stacked bar plot: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.13} \begin{document} \begin{tikzpicture} \begin{axis}[ ybar stacked, ...
masterofpuppets's user avatar
1 vote
1 answer
105 views

Plotting eye diagram with pgfplots

I'm a student writing my master thesis and would like to be able to plot eye diagrams in LaTeX using pgfplots. I have a csv file that contains the data on the eye diagram in a "time, voltage"...
Siebe Arnout's user avatar
2 votes
1 answer
194 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
27 views

How to label the value increments on the x and y axis

I need to label the x and y axis with points like \sqrt{5} and pi on the axis correctly and proportionally to the line, how do I do this
Yilin's user avatar
  • 11
0 votes
0 answers
66 views

Changing the text format of a particular label in pgfplot

In this plot I want to change the color of a label in x-axis. For example I want to change the color of Set1 to orange. It is possible to do it simply by \textcolor{orange}{Set1}, as you see in the ...
Puya's user avatar
  • 65

1
2 3 4 5
9