How would we typeset a “mexican hat” like the following

in TikZ?

Skip to content
# [Tex/LaTex] Mexican hat in TikZ

tikz-pgf

How would we typeset a “mexican hat” like the following

in TikZ?

## Best Answer

Well the top of the hat looks like a statistical normal distribution. So I would plot that function. Furthermore you could use an arc for the upper part of the hat. And at last you could use a curve for the lower part of the hat. I have tried producing the hat with the following code:

I agree it's not perfect, but feel free to improve. :D