All Questions
691 questions
7
votes
1
answer
218
views
Plotting curves with variable parameters
I have a collection of curves of the following type:
It has a description parameter (y) and another variable parameter (x) that allows to changing the horizontal position of the curve
I would like to ...
-2
votes
1
answer
76
views
Plotting a sequence and its series using tikz
i've been trying to plot a geometric sequence and its sum up to the term plotted at the same time using tikz. I've got a valid result, however I'd like to know if it's there a way to plot the ...
0
votes
0
answers
17
views
Aligning plots horizontally, TikZ [duplicate]
I am trying to align two plots horizontally, plotted using Tikz and Pfgplots. They just become vertically aligned like in the photo, no matter how I adjust the scales and this: {0.25\textwidth}.
\...
0
votes
1
answer
35
views
Weird behaviour trying to plot circumference in 3D
I'm trying to draw a circumference of radius 1 on the xy plane, centered in the origin, and I'm encountering a strange behaviour which I can't seem to figure out the reason for.
My code is
\begin{...
1
vote
1
answer
31
views
How to hide the endpoints of a curve behind the vertices
Below is the code. We notice that the endpoints of two curves are covering the lines.
\documentclass[tikz]{standalone}
\usepackage{pgfmath}
\begin{document}
\begin{tikzpicture}
[scale=0.8]
\...
1
vote
3
answers
90
views
Plot the graph of the function f(x)=\sqrt(1-x^2)
Why is the graph I drew discontinuous at the point x=1?
Is there a way to still use f(x) without it being discontinuous?
\begin{tikzpicture}[scale=1, font=\footnotesize, line join=round, line cap=...
1
vote
0
answers
67
views
Embossed bars in 2D bar plot
I like my bars to appear embossed as shown in Figure. Here's the MWE:
\documentclass{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}{scale=0.3}
\begin{axis}[width=12cm,height=...
0
votes
1
answer
19
views
Plot marks exceed round margins / look strange
Using this code:
\documentclass{scrbook}
\usepackage[dvipsnames]{xcolor}
\usepackage{float}
\usepackage{pgfplots}
\pgfplotsset{compat=newest, scale only axis}
\begin{document}
\begin{figure}[H] % ...
0
votes
1
answer
73
views
Add histogram graphic within gaussian bell
My idea is to recreate this image
The Gaussian curve worked well. What I can't do is the histogram. I would just need to recreate just one step, then I can do the rest based on the trend of the curve
...
0
votes
1
answer
37
views
Tikz heatmap, cannot put float for the rest of a line?
my issue is the following : I want to create a heatmap (for now it's only black, I'll take care of the colors after) but I cannot enter a float on the rest of a specific line even though I did before. ...
3
votes
1
answer
98
views
Having a blank space for zeros for a heatmap using TikZ?
I'm trying to make a heatmap and make 0.0 values "blank", like just a blank box, I have no clue how to do that. I have tried putting NaNs and using witchery but hasn't worked. I use the same ...
3
votes
2
answers
89
views
Simple/Efficient way of drawing plots for the modulation method of a inverter
I am trying to draw something like this with pgfplots right now:
But it is very time-consuming, especially if I have to do a few variants of it. So I was wondering how I can do it more efficiently. I ...
0
votes
2
answers
70
views
Shift differently the numbers on the top of the bars in a xbar
I want 1% to be shifted left and 4% to be shifted right. It does not matter the quantity; I would like to know how to shift the two values on the two categorical axes differently.
\usepackage{pgfplots}...
0
votes
1
answer
53
views
make negative values of the function disappear below the y-axis
I want the negative values of the function, that is, those values which are below the $|u|_{L^\infty(B)}$ axis to disappear or take value zero. I have tried some options which have been asked in ...
0
votes
1
answer
43
views
TikZ plot of square root (for example) shows breaks [duplicate]
I'm presenting some basic functions to my students, one of them being square root. When using TikZ to represent it, I always see an annoying "break" between 0 and 1, on what should be a very ...