# Tag Info

## Hot answers tagged plot

5

For drawing of your sinus function I would use plot macro: \documentclass[tikz, margin=3mm]{standalone} \begin{document} \begin{tikzpicture} \draw[gray,thin] (0,-2) grid[xstep=pi/2,ystep=1] (8*pi,2); %Grid \draw (0, 0) -- (8*pi,0) %X-Axis (0,-2) -- (0 ,2); %Y-Axis % Sine-Wave, \x r means to convert '\x' from degrees to radians \draw[...

4

A very crude starting point with foreach loops. Not elegant (IMO), but gives one possibility. \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[gray!20] (0,-2) grid (32,2); %Grid \draw[black,-] (0, 0) -- (32,0); %X-Axis \draw[black,-] (0,-2) -- (0 ,2); %Y-Axis %% incorporating @marmot's (...

4

Giving frequency, period and amplitude of sine wave with color as options in pic set. The grid is drawn according to the frequency, period and amplitude values. foreach loop in tikzset is started with zero, and the frequency is drawn with 0 to f-1. Drawing the sinusoid is based on TiKz fundamentals. \documentclass[tikz,border=10pt]{standalone} \tikzset{% ...

2

Here is a version of Bamboo's first code, where instead of explicit xshift and yshift, I use the group name feature, make an invisible axis in the "big" groupplot and place the first small groupplot on the top left corner of that invisible axis. Instead of using scale I set appropriate widths for small groupplots. To get the subcaptions you could load the ...

2

A quick and ugly solution, use a scope around the second groupplot \documentclass[10pt,a4paper,tikz]{standalone} \usepackage{pgfplots} \usepgfplotslibrary{groupplots} \begin{document} \begin{tikzpicture} \begin{groupplot}[ at={(0,0)}, group style={group size=2 by 2}, cycle multiindex* list = {very thick\nextlist red\...

1

The sagetex package can handle this. It's documentation is located on CTAN here. This allows you to farm out the work to a computer algebra system, SAGE, which has its website here. This means you will need to download SAGE to your computer and install it properly or open up a free Cocalc account. If you have a Cocalc account, just paste create a LaTeX ...

1

Here is something - just to get you started. \documentclass[border=10pt]{standalone} \usepackage{pgfplots} \pgfplotsset{width=7cm,compat=1.8} \begin{document} \begin{tikzpicture} \begin{axis}[ ] \addplot3[ surf, colormap/blackwhite, shader=interp, domain=-1:1, domain y=-1.3:1.3, ] {exp(-x^2-y^2)}; \addplot3[fill=magenta, opacity=0.5] ...

Only top voted, non community-wiki answers of a minimum length are eligible