# Tag Info

Accepted

### Having a blank space for zeros for a heatmap using TikZ?

\documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture}[scale=0.6] \foreach \y [count=\n] in { {74,25,39,20,3,3,3,3,3}, {25,53,31,17,7,7,2,3,2}, {39,31,37,24,3,3,3,3,...

### make negative values ​of the function disappear below the y-axis

Solution: domain=-0:9.5, samples=1000 , without smooth What you see is an artifact from having not enough samples to plot. See the 4 plots below, using some x- and yshifts: with 1000 samples both ...
• 14.4k

### TikZ plot of square root (for example) shows breaks

\documentclass[tikz, border=1cm]{standalone} \begin{document} \begin{tikzpicture} \draw[->] (0,0) -- (10,0) node[right] {$x$}; \draw[->] (0,0) -- (0,4) node[above] {$y$}; \draw[blue, line width=...
• 38.9k
Accepted

### Any way to have colormap on 3D area plots?

\documentclass[tikz, border=1cm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture} \begin{axis}[ view={15}{40}, x dir=reverse, mesh/cols=1, ] \addplot3[...
• 38.9k

### Simple/Efficient way of drawing plots for the modulation method of a inverter

Let's take my previous approach a step further: How do you arrive here? General remarks As you can see, the new things are: all stripes previous digital signals, with new adjustments the relevant ...
• 14.4k
1 vote

### Tikz heatmap, cannot put float for the rest of a line?

Thanks to samcarter : % heatmap tiles \foreach \x [count=\m] in \y { \pgfmathparse{\x} % Parse the value \pgfmathsetmacro{\xvalue}{\pgfmathresult} % Store the result in a variable \...
• 43
1 vote
Accepted

### Simple/Efficient way of drawing plots for the modulation method of a inverter

Here is something to get you started, following my outline in the comment: derive intersections of sine and saws outside of Tikz/Latex AND take these points in time as input here (it certainly can be ...
• 14.4k
1 vote
Accepted

### Plot the fractional part function

With jump mark mid all the lines are horizontal and when you increase the samples to something extreme like 5000 they become very short. A thick horizontal very short line appears vertical. 5000 of ...
• 38.9k

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