Graphics, Figures & Tables ⇒ Tikz curved rectangle
Tikz curved rectangle
I would like to curve a R^2 plane in Tikz so that it looks similar to the file attached. I've searched the internet but found nothing. Do anyone know how I could realize this?
- Attachments
-
- photo_2021-06-01_15-37-32.jpg (21.31 KiB) Viewed 3621 times
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 274
- Joined: Fri Feb 05, 2010 10:15 pm
Tikz curved rectangle
Here is a link that can help you with the rectangular prism. Please try to create a MWE
https://tex.stackexchange.com/questions ... dimensions
Here is a link that may help with the curved plane
https://tex.stackexchange.com/questions ... -a-surface
https://tex.stackexchange.com/questions ... dimensions
Here is a link that may help with the curved plane
https://tex.stackexchange.com/questions ... -a-surface
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Tikz curved rectangle
Hi Prakhor,
welcome to the forum!
That looks like a job for pgfplots. For example, taken from the
pgfplots manual and changed a bit:
Stefan
welcome to the forum!
That looks like a job for pgfplots. For example, taken from the

Code: Select all
\documentclass[border=10pt]{standalone}
\usepackage{pgfplots}
\usepgfplotslibrary{colormaps}
\pgfplotsset{width=7cm,compat=newest,ticks=none}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
% title={$x \exp(-x^2-y^2)$},
% xlabel=$x$, ylabel=$y$,
small,
3d box=complete,
]
\addplot3[
surf,
colormap/bone,
domain=-2:2,
domain y=-1.3:1.3,
]
{exp(-x^2-y^2)*x};
\end{axis}
\end{tikzpicture}
\end{document}
LaTeX.org admin