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

learn more… | top users | synonyms

1
vote
1answer
283 views

How to plot a curve between two nodes?

I've got two nodes and would like to draw a specific curve between the two nodes, such that the curve begins at the first node and ends at the second node. The curve and its domain are already ...
4
votes
0answers
251 views

Sage + Latex - How to change a font for axes label? [closed]

I use Sage and LaTeX and when I do this: \begin{sagesilent} p2 = list_plot(zip(H, f(5)), True, color='blue', axes_labels=[u'$H,$ км',u'$\mu, c$']) p2.fontsize(14) \end{sagesilent} and run sage ...
8
votes
1answer
326 views

proper tool for charts in tex

I have scanned data graphics in a large ms written in TeX (of course). For copyright reasons I need to redraw these. My publisher may (sadly) decide not to use my source directly, so will need access ...
5
votes
1answer
310 views

Making a log plot with negative values “continuous”

I'm trying to plot some data on a log axis using PGFplots. The data include negative values. Obviously, these can't be displayed on the plot, but I'd like the plot to "run into" the lower edge to ...
8
votes
1answer
429 views

plotting the sequence x_n using tikz

I want to plot the sequence x_1 = \sin(pi root(2)) x_2 = \sin(pi root(6)) x_3 = \sin(pi root(12)) In short my x_n = sin( pi root(n^2 + n)). I want to plot this as an animation as n goes to ...
3
votes
1answer
759 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{% ...
8
votes
1answer
2k 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} ...
42
votes
2answers
2k 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
51 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
2k 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
139 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
110 views

IEEEtran and using plots [closed]

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
202 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 ...
11
votes
1answer
257 views

Join two function-based 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}); ...
3
votes
2answers
927 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
54 views

A question on consistency of fonts in figures and in text [duplicate]

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 ...
5
votes
1answer
548 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, ...
3
votes
1answer
197 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
693 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.
4
votes
1answer
680 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
465 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 ...
3
votes
5answers
450 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 ...
7
votes
2answers
544 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
197 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 ...
5
votes
2answers
354 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
1k 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
222 views

Scatterplot with TikZ/pgfplots [duplicate]

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 ...
3
votes
1answer
245 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
197 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} ...
10
votes
4answers
1k 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
2k 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 ...
9
votes
3answers
615 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: ...
9
votes
3answers
493 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} ...
0
votes
1answer
2k 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
355 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
880 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 ...
5
votes
1answer
651 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
355 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
78 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
144 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
201 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 ...
11
votes
1answer
2k 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
468 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
269 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
3k 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 : ...
9
votes
1answer
878 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}; ...
8
votes
1answer
974 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
831 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
77 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
77 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 ...