# Tagged Questions

{plot} is for questions concerned with plotting data or functions using TeX. For questions specific to the pgfplots package, use the {pgfplots} tag.

107 views

### How to draw irregular 3d shapes in TikZ?

I would like to draw the cylinder-like irregular shape displayed below using TikZ. I know how to plot regular cylinders using TikZ, however the commands I know don't apply for irregular 3d shapes, ...
50 views

### Move y-axis in pgfplots

I wanted to get my plot to look like this: I would like to get some help to move the y-axis to x=0. Thanks for your help and time. Here is the code that I have so far: \documentclass{article} \...
89 views

### centering tikzpicture

I have some problems concerning the command \centering. I want to put a tikzpicture in the center of the page but I can't do it. I tried with \centering and with \begin{center}...\end{center} but ...
136 views

### 2D correlation plot matrix with shapes

Is there a straightforward way to create a correlation plot matrix similar to the figure below? The image is an example of R's corrplot package using circles, which also offers other shapes and ...
48 views

### Some issues with a stacked area plot - pgfplot

I have three issues with a stacked area plot. 1: I want to make the plot more width to fit it in my presentation. But if I scale in x-direction it also scales the fonts (labels). How to avoid that? ...
45 views

### how to manipulate data more efficiently? [closed]

What's the best way to use a data set in LaTeX? More specifically, plotting a Lagrange interpolation polynomial without having to copy paste the values one by one. (Something like arrays in Python, ...
67 views

### Drawing line of best on semilogy graph and showing it's equation

I have some data which is related by the relationship y = B*exp(Cx) I want to be able to plot the data and determine the value from the relationship: ln(y) = ln(B) + Cx I have raw data values of x ...
114 views

### Plotting issue with PGFPlots `\addplot'

Can someone help with workaroung about such issue? \addplot [only marks, mark=o] table[x index=0,y index=1,col sep=comma] {data.dat}; works just fine, but \addplot [only marks, mark=bullet] ...
240 views

### How to do a chart with stacked bars, lines and “sections”

The problem I need a chart like this (this was made in Libreoffice + some gimp): Its caracteristics are bassically: Some stacked bars (if it is a stacked area, better) with its Y axis at the ...
70 views

### Insert a gnuplot-plot in tikz environment

I cant manage to get my plot into a tikz environment. I am using BaKoma Tex Word with newest MikTex. %&latex \documentclass{article} \usepackage{tikz} \begin{document} \section{About ...
84 views

### How to approach the drawing of this sort of scatter plot?

I'm trying to plot a data set that contains the results of some benchmarks across a number of tools on a set of input files. The problem is that there are more than 3000 test cases and I need to ...
110 views

### How to draw stacked area chart

I want to plot a stacked area chart. Stacked area chart => All values get stacked and the areas under the lines get's colored. Something like this: My data in a minimalistic example: \...
34 views

### Drawing 3D cylinder with Tikz [duplicate]

I wanted to draw a 3D cylinder on top of a set of axes, and I don't know how to do this. My idea is to draw two circles, one at z=-1 and the other at z=1 and the somehow fill in the region between ...
62 views

### 3D plot in Tikz - Points at the top connecting

I've made a plot of the function $z = sqrt(x^2+y^2)$. Here is my output: At the top of my plot, the points are connecting. How do I stop this from happening? Here is my code: \usepackage{...
192 views

340 views

### Plotting the graph for exp(cos(1/x))

I am having issues plotting the function exp(cos(1/x)) in the domain (0,1) with pgfplots and TikZ using a normal addplot command with the function exp(cos(deg(1/x))). It seems LaTeX is having some ...
73 views

### LaTeX + Gnuplot on Mac: Plot Not Showing

Right. Total novice here so you might need to go easy. I'm trying to use Gnuplot with TikZ to draw an elliptic curve. Using TeXShop 3.58, Gnuplot 5.0 patchlevel 1... don't know what else is relevant. ...
64 views

### White space between the writing and image [closed]

i am inserting a pdf image into my paper. After cropping my pdf images, i still have some white space left between the writing section and the image. Can i get rid of it somehow. I am doing it like ...
77 views

### Making a phase portrait of two autonomous system of differential equations with latex

I am trying to make a phase portrait of two differential equations. The equations are: x'=x-y y'=1-x^2 I have tried to google it, and looked in here, but haven't found a sufficient answer. I did ...
58 views

### PGFPlots cycle list skips first definition after every cycle

I got some problems with self-created cycle lists in PGFPlots. As you can see, the plots skip the first definition of my cycle list after every run through the cycle list. Are there any coding ...
124 views

### I am trying to plot area vs volume

I am writing a lab report in chemistry discussing the surface of catalysts. I want to show that area doesn't increase proportionally to volume. I have been trying to plot a function vs against another ...
337 views

### Coloring intersection of curves

I've made the following code: \begin{center} \begin{tikzpicture}[domain=0:6] \draw[->] (-1,0) -- (6,0) node[below right] {$x$}; \draw[->] (0,-1) -- (0,6) node[above] {$y$}; \draw[color=...
79 views

### Plotting a function without any coordinate system

I want to plot two functions about each other without any coordinate system. Can you please show me how/ give me a hint, how I can achieve this. \begin{tikzpicture} \begin{axis}[ domain=0.125:...
582 views

### Hysteresis Loop

I am new to latex. I'm doing my MA thesis on Magnetic Materials. I don't know how to draw this diagram in LaTeX. I would be grateful if you can help me with this image. Thanks.
42 views

### vertical line and extension of node in tree

I'm trying to generate a tree that has a vertical line coming through exactly in the middle, right after the 0.5 on the top node, and the 2 on the bottome node, and I would like to write 1.25,1.25 ...
26 views

### centering image generated by geogebbra latex code

I have the following code generated by geogebra and I tweaked it a little , specifically changed x,y to 3cm and scale to 4. But now I'm not sure how to center the picture, here is the code: \...