Questions tagged [tikz-datavisualization]
{tikz-datavisualization} is about the datavisualization library of the {tikz-pgf} package.
97
questions
1
vote
1
answer
42
views
Best practice: Lines in tikz with datavisualization
I plot a function with tikz using datavisualization. Whats the best/shortest possibility to realize some arrows inside, see the following output?
This code works:
\documentclass[crop,tikz]{standalone}...
0
votes
0
answers
15
views
Annotate each point of scatter datavisualization with text from data
I am using TikZ \datavisualization to draw a standard scatter plot
\documentclass[tikz]{standalone}
\usepackage[]{tikz}
\usetikzlibrary{datavisualization}
\begin{document}
\begin{tikzpicture}
\...
2
votes
0
answers
40
views
How to plot function from a .csv file in Tikz? The .csv file created from the example from Tikz manual is misread (as all y values are 0) [duplicate]
Note: This question is not exactly the same as TikZ data visualization fails to load data from file because I don't have any error thrown by the code (the log don't display "! Package PGF Math ...
3
votes
1
answer
87
views
How to combine equal plot styles of different plots to a list with one style for every plot?
See the lines 62 to 97 (root locus 1 = {) of my MWE. I have to define the same plot style for every plot. Can one combine these lines similar to the lines 54 to 61 (visualize as line/.list = {) of my ...
2
votes
1
answer
71
views
Hewitt and Roberts map construction
does anyone know how to draw this map in latex ?
0
votes
0
answers
48
views
Is there a way to read multiple data sets from a single data file in the TikZ visualizer?
Given code:
\usetikzlibrary{datavisualization}
\begin{tikzpicture}
\datavisualization [
scientific axes = clean,
x axis = {attribute = t, length = 5cm, label = {$t$}},
y ...
3
votes
1
answer
207
views
Datavisualization with Tikz: how to customize the formatting of values in the axes?
Here's a screenshot of the pgf-tikz manual (section 82.2.5, page 878 on manual version 3.1.8b):
\documentclass[tikz]{standalone}
\usetikzlibrary {datavisualization.formats.functions}
\begin{document}
...
3
votes
2
answers
40
views
"Inline" array data structure from command accepting (comma separated) arguments for the elements?
I have the following code:
\documentclass{article}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{ll}
\toprule
Operation & List \\
\midrule
\texttt{create()} & \textbf{...
2
votes
1
answer
152
views
Plot factorial function in TikZ datavisualization
I'm trying to replicate this graph following the tips in this solution with TikZ datavisualization package (see Part VI).
[edit] related question: How to make a figure showing growth of functions but ...
1
vote
0
answers
61
views
TikZ data visualization legends: reverse direction strategy or add empty entries?
I use the data visualization library of TikZ. I have a scatter plot with multiple sets. I have setup a preferred style sheet combination for the plot marks. These are ordered. I have also added legend ...
1
vote
0
answers
43
views
datavisualization with more than three functions
Do my first steps with datavisualization. Find out how to plot functions. But the fourth function ist not in the plot. Found out that only the first three appear to be plotted out of the box. How can ...
3
votes
2
answers
42
views
TikZ datavisualization error, "Missing number" after closing data bracket
Hello, after a quick search I didn't find this exact question asked before, but if I overlooked something, please let me know.
I am unable to execute the following code:
Edit: notice the logarithmic ...
1
vote
1
answer
163
views
How to set up the tick labels of the a logarithmic axis?
See my MWE:
\documentclass{scrartcl}
\usepackage{tikz}
\usepackage[per-mode = fraction]{siunitx}
\usetikzlibrary{datavisualization.formats.functions}
\begin{document}
\begin{tikzpicture}
\...
0
votes
1
answer
110
views
Function of input data in TikZ datavisualization
I have a CSV file with three columns. I would like to make a scatter plot with numbers in the first column as the x-values of the plot points, and the ratio of the other two numbers on each line as ...
2
votes
1
answer
146
views
TikZ datavisualization: Is it possible to change fontsize globally?
Here my MWE:
\documentclass{scrartcl}
\usepackage{tikz}
\usetikzlibrary{datavisualization.formats.functions}
\begin{document}
Text
\begin{figure}
\centering
\begin{tikzpicture}
\...
1
vote
1
answer
44
views
TikZ Datavisualization example reports "Undefined control sequence", yet still works
The Problem
Reproducing an example from the pgf manual appears to work, yet reports an error. Does anyone have a guess what the problem is?
MWE
\documentclass{minimal}
\usepackage{tikz}
\...
0
votes
1
answer
101
views
How to emulate datavisualization's clean scientific axes in pgfplots
I really like the "clean" scientific axes generated by TikZ' datavisualization library. However, since it provides quite a bit more plotting functionality, I want to give pgfplots a shot. How can i ...
1
vote
1
answer
123
views
Use Tikz to plot different sine waves without plotting zero
I need to plot a variety of sine waves and almost have the graph looking exactly how I want. However, I am unable to remove the 0π or make it look like 3π/2.
\documentclass[tikz, border=5mm]{...
1
vote
1
answer
32
views
display images at specific positions reading an external table uses tikz
I'd like to define a set of positions and images in a data file,
x y filename
0 0 image/path/1.png
1 1 image/path/2.png
and use this data file to display the images on a 2D axis of a tikz ...
2
votes
0
answers
129
views
TikZ datavisualization with plotted expression and shade
I tried to use the datavisualization command (that uses this metod), an explicit function and shading, but it was more or less a 'dial it in' way of solving it, with having to scale the x and y ...
2
votes
1
answer
146
views
TikZ: No visualize as smooth cycle option available
On page 858 the manual mentioned the option visualize as smooth cycle for the \datavisualization[]{} command.
MWE:
\documentclass{scrartcl}
\usepackage{tikz}
\usetikzlibrary{datavisualization....
3
votes
1
answer
449
views
Is it possible to plot complicated functions with TikZ datavisualization?
Is it possible to plot complicated functions with TikZ datavisualization?
I have a transfer function G(s)=2/(20*s+1)^5*2/s. The inverse Laplace transform gives
g(t)=4-(e^(-t/20)*(3840000+192000*t+...
4
votes
3
answers
884
views
How to customize tick text in TikZ?
MWE:
\documentclass{scrartcl}
\usepackage{tikz}
\usetikzlibrary{datavisualization.formats.functions}
\begin{document}
\begin{tikzpicture}
\datavisualization[
scientific ...
0
votes
1
answer
116
views
legend={text={ multi line
I want legend = {text = {} in multi lines
The text of the legend is very long and I want to divide it into multi lines
\tikz \datavisualization [scientific axes=clean]
[
visualize as smooth line=...
2
votes
1
answer
227
views
Plot matrix from input data
I have a matrix, M, exported from Matlab to a .dat file. I want to import this into tikz and plot a density plot for the real and imaginary parts of M separately. The x-axis being the column index, y-...
0
votes
1
answer
60
views
Visualizing of routing problems over time
I'm more or less a total newbie in Latex and right now I'm in the final days of my masters thesis. I stumbled over a nice way of illustrating a sequence of visitiations in a tour. Think of a tourist ...
16
votes
1
answer
513
views
pgfplots vs datavisualization – 2019 review
TikZ' datavisualization library and the package pgfplots (based on TikZ) both produce pretty nice plots in LaTeX. To someone starting to do that, what are the differences between the two and what may ...
3
votes
1
answer
192
views
Unknown operator | when using data visualization and tikz
Problem:
I am trying to get the function y = |x| to work with data visualization library in TikZ but without success. It seems the issue is with the operator |.
Minimal Working Example (MWE):
\...
10
votes
2
answers
429
views
Illustrating symmetric key distribution
Can I draw something like this programmatically with LaTeX?
I drew these with Adobe Illustrator, but it gets pretty time-consuming.
Even with relatively few nodes. What it attempts to demonstrate ...
1
vote
1
answer
132
views
How to partition a pgfplotstable to use in multiple tikzpictures? (and duplicate a row)
I'm trying to create multiple plots from one pgfplotstable (\data below). I can create the plots by manually editing the data (\dataA and \dataB below) but this is error-prone. Essentially, I need ...
2
votes
2
answers
1k
views
Reverse axis in TikZ \datavisualization
Sorry if this doesn't seem well-researched, but I couldn't find the answer anywhere.
Is there a way to reverse an axis in a TikZ \datavisualization? Concretely, I want to reverse the y axis in a ...
0
votes
1
answer
194
views
Unexpected output with TikZ \datavisualization – reading from a csv
I am trying to display a \datavisualization with TikZ, but even after rereading the pgf/TikZ manual (part VI, section 58) and checking everything again, I'm not getting the expected plot at all. I don'...
3
votes
2
answers
1k
views
Using a data file as input in tikz
I have a sorted data in a file (named data.dat). These data should be plotted vertically. I prepared a code in latex using tikz that works. The problem is each data is typed one by one in the main ...
1
vote
1
answer
259
views
How to Label y-axis properly when plot from CSV file? [duplicate]
I would like labeling as follows:
It does not get proper labeling on y-axis when I am plotting data from CSV file in Latex. Here is the code :
\documentclass{standalone}
\usepackage{tikz,pgfplots}
...
1
vote
1
answer
369
views
Customizing single ticks in TikZ datavisualization
This question is a follow-up of my other question:
MWE:
\documentclass{scrartcl}
\usepackage{tikz}
\usetikzlibrary{datavisualization.formats.functions}
\begin{document}
\begin{tikzpicture}
\...
6
votes
2
answers
487
views
Drawing arrow between plots (table datas)
I use pfgplots to draw two sets of data, stored in .dat. Now I would like to automatically draw an arrow from one curve to the other, and only at the curves points. I tried to name the paths, but to ...
1
vote
1
answer
184
views
Pgfplots - Turn off Box when plotting a File
By default, pgfplots will draw a box around my plot. I am plotting a .dat-File with \draw table [...] {data.dat} and i want to turn that box off and just leave the x- and y-lines instead.
In the ...
2
votes
1
answer
286
views
TikZ datavisualization: pins / labels add whitespace between figure and caption
I'm using TikZ's data visualization feature to create a figure. This is working fine, up to the point where I add pins and/or labels to the figure; doing so creates a large amount of whitespace ...
2
votes
1
answer
348
views
Making a Plot: Pgfplot or Tikz [closed]
I find two possible ways in drawing a graph out of data points: Using PGFPlots with
\begin{axis}
\addplot[smooth,color=red,mark=x]
or the Data Visualization inside Tikz (p. 756 in the manual):
\...
4
votes
2
answers
603
views
Styles in datavisualization legends
I have a bunch of plots in a datavisualization environment with different styles for each plot. When I collect them into a legend, they all show up in black. I've constructed a quick MWE based on an ...
3
votes
1
answer
224
views
How to redraw a diagram with TikZ datavisualization?
The original diagram:
My try:
\documentclass{scrartcl}
\usepackage{
tikz,
amsmath
}
\usetikzlibrary{datavisualization.formats.functions}
\begin{document}
\...
2
votes
2
answers
315
views
Function plots - objective comparison for choosing between tikz data-visualisation and pgfplots [closed]
I am writing my PhD thesis now, and want to plot some results (mainly the evolution of various simulation quantities on y-axis against time on the x-axis). I estimate to have around 50 such plots in ...
1
vote
0
answers
160
views
Y axis can not be set to logarithmic scale
I want a chart with logarithmic scales on both axis' and have the working code below. If I comment in the fifth line starting with y axis the code doesn't compile.
\begin{tikzpicture} [scale=2]
\...
2
votes
0
answers
88
views
Set size of \datavisualization
I am trying to plot the function
using \datavisualization like this
\datavisualization [school book axes,
visualize as smooth line,
y axis={label},
x ...
2
votes
1
answer
628
views
TikZ: How to add additional text to datavisualization.formats.functions?
My code:
\documentclass{scrartcl}
\usepackage{tikz}
\usetikzlibrary{datavisualization.formats.functions}
\begin{document}
\begin{tikzpicture}
\datavisualization[
...
2
votes
1
answer
643
views
PGF/TikZ plot: syntax and limit range of plotted function
In this answer an example of multiple functions plot is provided, using PGF/TikZ and the datavisualization library. The documentation seems not to deal with the following issues:
1) For each plot, ...
1
vote
0
answers
322
views
Entering PGFplots data as a table of smoothing the function contourplot
I'm currently trying to make a plot of the function f(x,t)=exp(-((x)^2)/y)/sqrt(2*pi*y) in PGFplots.
As a first step I plotted this as a contourplot directly from the function (see code below). The ...
3
votes
1
answer
436
views
scatter plot in datavisualization with extra draw
In this question, it seems like adding an extra \draw to a datavisualization should be relatively straightforward. But I'm baffled:
\begin{figure}[h]
\begin{tikzpicture}
\datavisualization [...
2
votes
2
answers
807
views
Unknown data format `function`
Either I have an embarrassing typo or the latest release of tikz has a bug.
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{datavisualization}
\begin{document}
\begin{tikzpicture}
\...
3
votes
1
answer
81
views
How to reduce the code when accenting several points with the \datavisualization … info[options]{code} …; command of TikZ?
This question continuous my another.
See the code:
\documentclass{scrartcl}
\usepackage{tikz}
\usepackage[per-mode = fraction]{siunitx}
\usetikzlibrary{datavisualization.formats.functions}
\begin{...