Questions tagged [tikz-datavisualization]

{tikz-datavisualization} is about the datavisualization library of the {tikz-pgf} package.

Filter by
Sorted by
Tagged with
3
votes
1answer
41 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): \...
7
votes
2answers
189 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
1answer
38 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
2answers
192 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
1answer
61 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
2answers
301 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
1answer
64 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
1answer
73 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
2answers
247 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
1answer
40 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
1answer
72 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
1answer
149 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
2answers
284 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
1answer
149 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} \...
1
vote
2answers
179 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
0answers
56 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] \...
1
vote
0answers
63 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
1answer
193 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
1answer
283 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
0answers
199 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
1answer
217 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
2answers
463 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
1answer
65 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{...
1
vote
1answer
121 views

tikz error with datavisualization when babel is used

I don't know if it is a bug or if I am doing something wrong. The following example works fine, but if I uncomment the babel usepackage line, it fails with the error given below. \documentclass[...
3
votes
1answer
294 views

How to add arrow tips (to achieve flow direction) to a process diagram with TikZ datavisualization?

I modified the code from here. I tried two ways. 1. (source): \documentclass{scrartcl} \usepackage{tikz} \usepackage[per-mode = fraction]{siunitx} \usetikzlibrary{datavisualization.formats.functions,...
0
votes
1answer
227 views

TikZ datavisualization unable to read from file

I am new to Tikz and hoping to use it's data visualization package, but the following simple test document fails to build; \documentclass{article} \usepackage{tikz} \usetikzlibrary{datavisualization} ...
12
votes
2answers
10k views

Add a vertical line to tikzpicture plot

So I havethe code below to create a plot. Now I need to add a vertically dotted line at x = 1.5. Is it possible? \documentclass[ 12pt, % font size a4paper, % paper format oneside, % one-sided pages ]{...
3
votes
1answer
397 views

Line width of plotted data in \tikz \datavisualization

Does anybody know how to set line-width of plotted data using command data[]{} in the command \tikz \datavisualization?
1
vote
1answer
225 views

Why Tikzplot overlapping graph for many data?

When I am plotting the following data with tikzpicture give graph not good looking. The code is here: \begin{filecontents*}{data.dat} X P $Q_B$ $Q_C$ $Q_D$ $Q_E$ 1 A1 0.2500 0.2500 ...
1
vote
1answer
138 views

How to plot fractional data with PGFPlots?

We can easily plot the following data: \RequirePackage{filecontents} \begin{filecontents}{data.dat} X P $Q_B$ $Q_C$ $Q_D$ 1 A1 2 6 7 2 A2 3 65 87 3 A3 1 45 65 4 A4 4 54 45 5 A5 ...
5
votes
1answer
592 views

How to draw a vector diagram with TikZ datavisualization?

I decided to use TikZ datavisualization because of many possibilities: adjustments for axes, grid, legend and ticks automatic placement of labels and legend automatic drawing of data value sets style ...
1
vote
1answer
186 views

Dimension too large-errors by TikZ datavisualization

This question is a continuation of a similar one. My task is to draw two hysteresis loops in one graph. I took the function (which represents my hysteresis loops) from here. My code: \documentclass{...
4
votes
1answer
522 views

How to draw a hysteresis loop with TikZ datavisualization?

Sorry for my incorrect english. I have modified the code from here to adapt it for the TikZ datavisualization. Here is the adapted code: \documentclass{scrartcl} \usepackage{tikz} \usepackage[per-...
2
votes
1answer
252 views

Is it possible to use arrays in a function of TikZ datavisualization?

Sorry for my incorrect english. I have some data values. I choose an array as a data structure (it could be any another data structure). I wish to use those data values to calculate some other data ...
2
votes
1answer
344 views

Logarithmic axis with more ticks

I have a problem with y-axis of my graph produced with this code: \documentclass{book} \usepackage{tikz} \usetikzlibrary{datavisualization} \begin{document} \begin{figure}[htbp] \centering \begin{...
0
votes
1answer
548 views

Shading the area bounded by graphs in TikZ

Thanks to Torbjørn T.'s answer at Best way to generate a nice function plots in LaTeX?, there is an easy way to show multiple graphs using TikZ's datavisualization. Is there a way to shade i.e. fill ...
8
votes
1answer
575 views

Why “same size” pgfplots and datavisualization plots are so different?

Consider the MWE below: \documentclass{standalone} \usepackage{filecontents} \usepackage{tikz,pgfplots} \usetikzlibrary{datavisualization} \begin{filecontents}{test.csv} x y -2 7 -1 2 0 5 1 4 2 8 \...
2
votes
1answer
382 views

Using only a range of a csv file in TikZ using \datavisualization

I would like to create a data visualization in TikZ. I am using the following code: \documentclass{standalone} \usepackage{filecontents} \usepackage{tikz} \usetikzlibrary{datavisualization} \begin{...
0
votes
1answer
315 views

Transform both axes in tikz, plot f(x,y) vs g(x,y) where x, and y are Cartesian axis

It is easy to do with \addplot3 but I want a 2d plot. I want to plot a scatter plot: g(x,y) value on vertical axis and f(x,y) on horizontal axis. AFAIK, The parametric plot syntax allows only one ...
1
vote
2answers
3k views

Plot logged data from external CSV file

Is it possible to plot data of the following sort in LaTeX? Since the data is huge, sourcing it from an external file would be desired, but not necessary.
1
vote
1answer
245 views

Tikz datavisualization: errorbar plot working with logarithmic axis

I'm trying to plot some data with errorbars using tikz. So far i'm successful plotting a examples with linear axis using a different visualizer. Used chapter 78.4 "Creating New Visualizers" as ...
0
votes
1answer
593 views

Draw square and add values

I want to add coordinates in the corners of a square grid. Do you know how to place values in the vertices of square?
3
votes
1answer
545 views

Hide ticks numbers / labels in a plot using PGF/TikZ datavisualization library

The datavisualization library in PGF/TikZ has many capabilities, but one thing I cannot find is how to remove ticks labels, keeping ticks themselves. The scientific axes use such style (by default) ...
2
votes
1answer
421 views

pgfplots boxplot first column as draw position

I have data like this in a file. 1 0.1 0.2 0.3 0.8 ... 5 0.3 0.5 0.6 0.9 ... 10 0.2 0.3 0.7 0.10 .. ... How do I tell boxplot to use the first column as draw position and compute the box for the ...
2
votes
1answer
285 views

Emulate “MATLAB-like” exponential ticks in tikz visualization

I am trying to include some plots in my LaTeX document using the data visualization library of TikZ, but I am not satisfied with the number format of the axis ticks for high values: \documentclass{...
0
votes
0answers
71 views

TikZ data visualization (still?) not working properly for external file? [duplicate]

I have some troubles using external files for the data visualization library of TikZ. This is my MWE: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{datavisualization} \begin{document} ...
4
votes
2answers
568 views

How to align more than one datavisualization within a single tikzpicture environment

Consider the following situation. I have three plots, where basically the axes are the same and I want to place them side by side. Since it doesn't make sense to repeat the axis labels for every plot, ...
3
votes
0answers
58 views

Thickness of pgfplot line makes data look jagged [duplicate]

I am using matlab2tikz to generate a plot from experimental data and have a problem with the appearance of the plot. Changing the line thickness makes the data look very jagged. This is hard to ...
6
votes
2answers
1k views

Tikz and exponential style tick label

I have a particular question on how to properly modify the style of tick labels, to get them in exponential style. What I actually want to have is them to be of the style 10^n at the ticks ...
1
vote
0answers
517 views

\datavisualization and csv data

I'm quite new using tikz and pgf. I use Texmaker. I get this error: PGF Math Error: Sorry, an internal routine of the floating point unit got an ill-formatted floating point number `'. The unreadable ...