{plot} is for questions concerned with plotting data or functions using TeX. For questions specific to the pgfplots package, use the {pgfplots} tag.
3
votes
1answer
37 views
Getting correct labels on axes with PSTricks
Consider the following example.
Code
% latex test.tex
% dvips test.dvi
% ps2pdf test.ps
\documentclass{article}
\usepackage{pst-coil,pstricks-add}
\def\turister#1#2{%
...
3
votes
1answer
55 views
How can I display tick marks on only one axis of a pgfplots graph?
How can I display tick marks on only one axis of a pgfplots graph?
Here is some simple code to work with:
\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
...
32
votes
2answers
539 views
Draw polarized light
I was trying to draw something like that
Searching through the net to see if it already exists in tikz I came accross in texample.net the following image which looks a lot like what I want to draw.
...
2
votes
0answers
47 views
X-Y plot with variable diameter points [duplicate]
I want to draw an X-Y plot where each point has a kind of "third dimensional" value that I want to represent using different points "size" (points are circles with different diameters).
I already ...
4
votes
2answers
99 views
drawing a line in polar coordinates
I have a point in polar coordinates (110:2cm), but from here I want to draw a line straight down.
Doing (110:1cm) is a line towards the center along 110 degrees. Without taking 2*sin(110) and ...
1
vote
1answer
55 views
Eps Position Problem [duplicate]
I am trying to put a graph inside my TeX file it somehow misses its original places and moves somewhere else. What can I do to fix it?
Here is my code:
\documentclass{article}
...
1
vote
0answers
45 views
IEEEtran and using plots
Within a IEEEtran 2 column document, 2 plots are too small concerning their width.
Should I place them (a) vertical or (b) interrupt the 2 column layout?
btw it will be submitted to a conference.
...
2
votes
1answer
75 views
Multithread integral function executing picture
I need to make a picture that should look like
I saw a similar question here but the red function line appears neither when I use --shell-escape nor when I use --enable-write18. I use TeXstudio, by ...
6
votes
1answer
85 views
Join two function-defined curves in Tikz
I have the following:
\begin{tikzpicture}[line cap=round,line join=round]
\draw[dashed,domain=0:9,samples=20] plot (\x,{1/(\x+.5)+3});
\draw[dashed,domain=0:9,samples=20] plot (\x,-{1/(\x+.5)+2});
...
2
votes
2answers
130 views
Similar to Excel's line charts?
How could I create charts as the follow ones, which were produced by Microsoft Excel?
0
votes
0answers
41 views
A question on consistency of fonts in figures and in text
Suppose I output a figure of some function from Matlab, without adding the x-axis label and y-axis label. The figure is then saved as a PDF file.
Now I want to input this figure into LaTeX, and I ...
3
votes
1answer
142 views
Plotting a 2D gaussian sample
Can you please help me with making a 2D Guassian sample with specified means and variances?
I only know how to make a guassian curve :D
\documentclass{article}
\usepackage{paralist,pst-func, ...
2
votes
0answers
81 views
Pgfplots: How to make the plot exceed the axes
I am plotting a spike using pgfplots. I want to make the y-axis until (4) only. However I want the plot of the spike itself to continue beyond the y-axis (say until 10).
Is there a possible way to do ...
3
votes
1answer
234 views
How to draw industry schematic diagram in LaTeX?
Is it possible to create the following diagram in LaTeX ? I am interested in the main body, any colour inside the box is fine.
3
votes
1answer
83 views
pgfplots: Points with no marks but errorbars?
How can I plot data points with pgfplots that have no marks, but error bars? If I try marks=none and enable errobars, I get big filled circles with errobars. If I change my mark to mark=+, for ...
6
votes
2answers
250 views
Rindler coordinate chart (family of parametric curves) in TikZ
Is it possible to make a plot like this with TikZ or other drawing packages?
This plot visualizes a two parameter family of curves, given by
T = x Sinh(t)
X = x Cosh(t)
The pink curves are ...
2
votes
5answers
218 views
How to write y = (x / 6) ^ {3 / 7} in TikZ format to plot its graph?
How to write y=(x/6)^{3/7} in TikZ format to plot its graph in the following code?
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw ...
6
votes
2answers
230 views
How to plot a discontinuous function curve and diagram of Markov chain with TikZ?
Please apologize my ingnorance of tips to use for asking questions.
I would like to realise the plots and the diagram like those shown on page 158,
160
and 161
on this document Chaine de ...
5
votes
1answer
83 views
pgfplots: Read expression from file
For my lab reports I often have to do complex fitting and transformations to my data (like fitting cauchy distributions or FFT). Fitting with gnuplot sometimes fails and including it directly in the ...
4
votes
2answers
102 views
plotting graphs with dspPlot functions
I have tried plotting graphs with dspPlot as explained by Prof. Paolo Prandoni and Prof. Martin Vetterli in their site but failed. They have run the following code to generate curve in their DSP book ...
3
votes
1answer
237 views
Bell curve with multiple x-axes and annotations
I've just started working with pgfplots and I'm getting good results, but I'm having difficulties getting this one done in LaTeX:
The curve itself is not a problem, but the multiple x-axes (I don't ...
2
votes
0answers
170 views
Scatterplot with TikZ/pgfplots
I have 7 *.txt files each with 2 columns of data thus:
time(mins) contacts
3.25 8
1.166666667 4
3.2 6
3.2 7
2.25 8
5.466666667 12
2.25 3
2.166666667 7
I'd like to plot them in separate ...
2
votes
1answer
128 views
tikz does not plot correctly
@Jake: this is the whole document
\documentclass[11pt, a4paper]{book}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{tikz}
\usepackage{pgfplots}
...
4
votes
1answer
101 views
Join point by using Tikz in Beamer document class
I know my question is trivial. By the way, I can not show points given by their coordinates with a Bezier curve using Tikz.
\documentclass{article}
\usepackage{tikz}
\begin{document}
...
6
votes
4answers
427 views
What is the easiest way to plot a function and its tangent lines at the turning points?
I want to plot graphs like this and embed them as Tikz or Pstricks code in my handouts. I know that there are software such as Ipe, LaTeXDraw etc. But none of them can satisfy me. Because Ipe doesn't ...
7
votes
2answers
267 views
Easy creation of logarithmic grid with TikZ
Is it possible to create a logarithmic grid using the command below with TikZ?
\draw (-0.1,-0.1) grid (4.1,4.1);
It would be great to be able to create a logarithmic grid without having to specify ...
8
votes
2answers
237 views
Drawing spherical harmonics with pst-3dplot
For my lecture notes in theoretical physics (namely quantum mechanics) I'm trying to visualize the spherical harmonics. I got Mathematica to plot them an this is what I did:
...
7
votes
2answers
274 views
How to draw two intersecting graphs?
I want to make the following figure.
My efforts are:
\documentclass{standalone}
\usepackage{pgfplots}
\usetikzlibrary{calc,shadings}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
...
-1
votes
1answer
242 views
Quality of R plots in LaTeX [closed]
In R, I use par to prepare four boxplots (using boxplot) as a single image, which I save with the png() command. This image is included in a LaTeX document with \includegraphics. I have experimented ...
8
votes
1answer
224 views
how to draw plots without data in tikz?
I want to draw this plot. I know how to do it with data. But here I don't have any data. And I want to draw this. How would I do it?
3
votes
1answer
161 views
How to run gnuplot/latex from inside texshop?
I was able to write a piece of code that drew a graph in gnuplot and then
using tikz embedded that into my TeX document and run it via Texshop. I am
not able to do that anymore. I need to run
...
3
votes
1answer
204 views
how to create an histogram with a string label using pgfplots?
Dear i try to generate an histogram / barplot
result.csv:
overlap,hit,organism
100,274,Unknowns
100,228,Coccomyxa subellipsoidea
100,11,Eukaryota
-500,153,Unknowns
-500,145,Coccomyxa subellipsoidea
...
7
votes
1answer
135 views
How to draw dash-dotted curves using MetaPost?
Is it possible to (easily) draw dash-dotted curves in MetaPost, i.e. curves that alternate between a dash and a dot?
For either dashed or dotted curves, I use the draw command and end it with dashed ...
2
votes
1answer
60 views
Plots going to the wrong page [duplicate]
Possible Duplicate:
Keeping tables/figures close to where they are mentioned
In the end of a section, I added two plots and. So, I finished this section and started a new one. However, this ...
2
votes
1answer
108 views
Multiple plots under a same caption error
I want to plot multiple figures under a same caption but the code doesn't work.
This code doesn't appeared in plot:
\begin{figure}[htp]
\centering
\subfloat[a]{%
...
1
vote
2answers
97 views
Multiple Plot query under a same caption with different labales problem [closed]
I have 6 figures and I want to plot them under a same caption with different labels.
I have tried two codes for plotting but they are not working.
Codes:
\begin{figure}[htp]
\centering
...
8
votes
1answer
355 views
pgfplots - Placing Nodes on x Coordinates of a Plot
I want to plot some graphs in pgfplots and want to place nodes on the exact same x coordinate of the plot. The position of the note has to be set in x direction but free in y direction.
Here is one ...
0
votes
1answer
174 views
Winbugs plots in latex
I conducted a bayesian analysis and obtained some plots in winbugs. Does any one how to put the history graphs in WinBUGS in Latex? I could not save the plots as pdf.
8
votes
1answer
180 views
Tikz plots distorted mark
Consider the following code:
\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{plotmarks}
\begin{document}
\tikz{\draw (0,0) -- plot[mark=o] (0.5,0) -- (1,0);}
\end{document}
It seems ...
4
votes
4answers
439 views
Multiple subfigures not appearing on the same line
Multiple figures under a single caption. I have tried a code to put two images in a together under a same caption. The subfigures do not appear on the same line.
The code is :
...
7
votes
1answer
334 views
Plot functions and their point of intersection
We are plotting three functions as follows
\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[enlargelimits=false]
\addplot[domain=0:1,blue] {(1-x)/5};
...
6
votes
1answer
375 views
Pgfplots contour gnuplot crazy labels
This is driving me mad. I am tryng to create some contour plots, but I get them full of labels, so that they are unreadable! I can't even see the lines or read the values because they are too much. I ...
5
votes
1answer
173 views
Scaled ticks with ymin and ymax
For a publication I am preparing multiple plots with PGFPlots and would like to have them all look alike, i.e. having the same axis and identical ticks. For this I intended to use ymin and ymax, but ...
0
votes
0answers
62 views
Is there any good XY plot tools using latex [duplicate]
Possible Duplicate:
Comparison of plotting packages?
Let us say I have x-axis data and the corresponding y-axis data. I was wondering if latex had any graphing abilities. I might want to ...
4
votes
0answers
71 views
LaTex Pgfplots Two axes 1 legend [duplicate]
Possible Duplicate:
Using a pgfplots-style legend in a plain-old tikzpicture
I'm trying to accomplish this: I have a plot with two y-axes. The first y has two plots, the second has one. I ...
20
votes
3answers
926 views
How can I make plots with TikZ which look like the new Mathematica 9 plots
The new Mathematica 9 is out! I would love to know how to make similar plots to the one's advertized, particularly the following:
and
Here is a simple plot to get started.
%& -shell-escape
...
5
votes
2answers
747 views
How to plot data from a CSV file using tikz and csvsimple?
Here is a minimal example :
\begin{filecontents*}{data.csv}
a,b,c,d
1,4,5,1
2,3,1,5
3,5,6,1
4,1,4,9
5,3,4,7
\end{filecontents*}
\documentclass{article}
\usepackage[utf8]{inputenc}
...
5
votes
2answers
215 views
How to plot the graph below?
May I know how to draw the graph as shown below?
below is a code I have try but with look and feel that is quite far away from the example:
\begin{tikzpicture}
\begin{axis}[
legend pos=north ...
6
votes
3answers
203 views
Calculate function with integers as input and plotting
I'd like to plot the function 1/2*x(x+1) in for integer values ranging from 3 to 20 and in particular I'd like the function to be plotted in those points. I have managed to create the following graph ...
14
votes
1answer
625 views
Drawing timeline
I have a dataset which consists of repeating events over time. Each event takes an arbitrary amount of time. I could plot this using gnuplot but am unable to produce correct keys because of the ...





