New answers tagged

1

Welcome! Thanks for your clarifications! The following allows you to specify a, b and the height h of the object. This is achieved by defining functions and plotting them in a parametric plot. The angle of visibility, i.e. the point at which the solid line turns dashed, is computed numerically. \documentclass[tikz,border=3mm]{standalone} \usepackage{tikz-...


1

Welcome! You can shade the area e.g. with \path[fill=red,fill opacity=0.5] (0,0,0) -- plot[variable=\t,domain=90:\phivec] (xyz spherical cs:radius=.8,longitude=\thetavec,latitude=\t); Full code: \documentclass{article} \usepackage{tikz} %TikZ is required for this to work. Make sure this exists before the next line \usepackage{tikz-3dplot} %requires ...


2

This repeats an old answer with a slightly new tilt concerning the half cube* plot marks. \documentclass[tikz,border=3.14pt]{standalone} \usetikzlibrary{calc} \usepackage{pgfplots} \usepackage{pgfplotstable} \pgfplotsset{compat=1.16} \pgfkeys{/tikz/.cd, cube top color/.store in=\CubeTopColor, cube top color=blue!60, cube front color/.store in=\...


0

The figure in spherical coordinates can be found here The code for cylindrical coordinates is next: \documentclass{article} \usepackage[pdftex]{graphicx} \usepackage{tikz} \usepackage{amssymb,amsfonts,amsmath} \usepackage{tikz,tkz-euclide} \usetikzlibrary{arrows,calc,patterns} \begin{document} \begin{figure} \begin{center} \begin{tikzpicture} ...


4

tikz-3dplot (without an s in the end) loads the 3d library (and also calc) automatically. So it has all the features of the 3d library simply because it loads it. In addition, it has commands that allow one to install a 3d view like \tdplotsetmaincoords and \tdplotsetrotatedcoords, and means to do real 3d plots (hence the name). Other ways of installing a 3d ...


2

I interpret the question to be about defining new coordinate systems that emerge from older coordinate systems by rotation about some of the axes. This has been discussed here, and I using one of the answers there. The rotations about x, y and z axis, respectively, can then be achieved with the roll, pitch and yaws keys. I use this to reproduce large parts ...


7

The only slightly nontrivial task here is to compute the critical angle of the (curved) vertical boundary of the barrel. This answer attempts doing something potentially new. To the best of my knowledge, so far these values have been computed in a "basis-dependent" way, and the expression differs on whether one uses pgfplots, tikz-3dplot or, as in this ...


17

How about drawing a real grid in the xy plane? This fixes the problem. Why? see below. \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[usenames, dvipsnames]{xcolor} \definecolor{mgelb}{RGB}{255, 187, 0} \definecolor{mblau}{RGB}{10, 59, 104} \definecolor{mturkis}{RGB}{0, 171, 183} \definecolor{...


Top 50 recent answers are included