Hot answers tagged

5 votes

A proper plot of this function with TikZ

Like this: Code: \documentclass[margin=3mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \begin{document} \begin{tikzpicture} \begin{axis}[ axis lines=middle, ...
Raffaele Santoro's user avatar
2 votes
Accepted

A proper plot of this function with TikZ

A solution with tikz: Code (modified from the @Henry one): \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture} ...
Raffaele Santoro's user avatar
2 votes
Accepted

Trying to plot using tikz

you need to use \tkzFct . This macro takes into account the values of xstep and ystep \documentclass{scrartcl} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{tkz-fct} \begin{document} \...
Alain Matthes's user avatar
2 votes

How to assign a single figure-number for a group of plots?

I'm pretty sure that your question is duplicate, but temporary I cant find it ... You should use only table and remove all subcaption environments. However, you should be aware that after than the ...
Zarko's user avatar
  • 293k
2 votes

How to place nodes on a Tikz plot

So I went to the TikZ manual as suggested by @Celdor and I did the following \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw [cyan,line width=1mm] (0,0) .. ...
Andros's user avatar
  • 167
2 votes

to plot the plane of intersection of the sphere $x^2+y^2+z^2=1$ and the plane $x+z=0$

You can use 3dtools \documentclass[border=2mm]{standalone} \usepackage{tikz} \usetikzlibrary{3dtools}% https://github.com/marmotghost/tikz-3dtools \begin{document} \begin{...
minhthien_2016's user avatar
2 votes

Coordinates not plotting correctly

It is not recommended to mix pgfplots and pure tikz syntax for drawing lines in diagram. if for some (unknown) reason need to do this, than drawing by tikz commands should be inside axis environments. ...
Zarko's user avatar
  • 293k
1 vote

Tell pgfplots not to try to plot where the function is not defined

The sagetex package gives access to an open source computer algebra system (CAS) called Sage along with the Python programming language. The CAS Sage is similar to Mathematica except it's free. As a ...
DJP's user avatar
  • 12.3k
1 vote

Tell pgfplots not to try to plot where the function is not defined

This is not a full soution, but an approach to it. Instead of nesting deg() and rad(), try the r syntax that tells PGF that the value passed to trigonometric functions should be interpreted as radians....
Jasper Habicht's user avatar
1 vote

A proper plot of this function with TikZ

to my opinion the correct way to draw your diagram is given in the second example with us of the pgfplots package in his second answer here is some small variation of it, just for exercise (...
Zarko's user avatar
  • 293k
1 vote
Accepted

Coordinates not plotting correctly

TikZ uses centimetre as default unit. Pgfplots uses it's own coordinate system to fit your graph in the available space. Both systems are normally not the same. If you'd like to give tikz coordinates ...
samcarter_is_at_topanswers.xyz's user avatar
1 vote

How to plot a Hyperbolic paraboloid in a style of the attached figure

One solution would be to split the paraboloid in two, to achieve some sort of layering. I did the same thing with the coordinate axes. I modified the code according to @hpekristiansen kind remark ...
Daniel N's user avatar
  • 4,982
1 vote
Accepted

Making an axis break

This is how you can do it to line chart. \documentclass{minimal} \usepackage{tikz} \usepackage{pgfplots} \tikzset{ axis break gap/.initial=0mm } \begin{document} \begin{tikzpicture} \begin{...
Hasalanka Nagahawaththa's user avatar

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